Files
cefsharp/CefSharp.Core.RefAssembly/CefSharp.Core.RefAssembly.csproj
T
amaitland b1ff27c1ba Net Core - Core RefAssembly Change Sdk Target
Use Project Sdk="Microsoft.NET.Sdk" to avoid warning that neither UseWPF or UseWindowsForms is set
2020-08-18 17:24:58 +10:00

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>