mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
b1ff27c1ba
Use Project Sdk="Microsoft.NET.Sdk" to avoid warning that neither UseWPF or UseWindowsForms is set
55 lines
2.5 KiB
XML
55 lines
2.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
|
<RootNamespace>CefSharp.Core</RootNamespace>
|
|
<AssemblyName>CefSharp.Core</AssemblyName>
|
|
<DocumentationFile>$(BaseOutputPath)$(PlatformTarget)\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
<SignAssembly>true</SignAssembly>
|
|
<AssemblyOriginatorKeyFile>..\CefSharp.snk</AssemblyOriginatorKeyFile>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
<NoWarn>CS1591,CS0436</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!-- <PropertyGroup Condition="'$(Configuration)'=='Release'"> -->
|
|
<!-- <ProduceReferenceAssembly>true</ProduceReferenceAssembly> -->
|
|
<!-- </PropertyGroup> -->
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\CefSharp\CefSharp.netcore.csproj">
|
|
<Private>false</Private>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\CefSharp.Core\CefSharp.Core.netcore.vcxproj">
|
|
<Private>false</Private>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
|
|
<!-- GenApi -->
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20374.3" GeneratePathProperty="true" />
|
|
</ItemGroup>
|
|
<PropertyGroup>
|
|
<GenerateReferenceAssemblySource>false</GenerateReferenceAssemblySource>
|
|
<IntermediateTargetPath>$(SolutionDir)CefSharp.Core\bin.netcore\x64\$(Configuration)\CefSharp.Core.dll</IntermediateTargetPath>
|
|
<GenAPITargetDir>$(ProjectDir)</GenAPITargetDir>
|
|
<GenAPITargetPath>$(GenAPITargetDir)$(AssemblyName).cs</GenAPITargetPath>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Call GenApi before we compile as to generate the source which is then used
|
|
to by this project to generate the dll
|
|
-->
|
|
<Target Name="GenApiBeforeCompile" BeforeTargets="Compile">
|
|
<Message Text="BeforeCompile" Importance="high" />
|
|
|
|
<CallTarget Targets="GenerateReferenceAssemblySource"/>
|
|
|
|
<!--
|
|
GenApi generates our VC++ dispose/finalise methods are public sealed override void Dispose()
|
|
which won't compile, this just replaces that with public void Dispose
|
|
-->
|
|
|
|
<WriteLinesToFile File="$(GenAPITargetPath)" Lines="$([System.IO.File]::ReadAllText($(GenAPITargetPath)).Replace('public sealed override void Dispose()','public void Dispose()'))" Overwrite="true" Encoding="utf-8" />
|
|
</Target>
|
|
</Project>
|