Files
cefsharp/CefSharp/CefSharp.netcore.csproj
T
Alex Maitland 1fb3f17599 AnyCPU - Add CefRuntime.SubscribeAnyCpuAssemblyResolver/LoadCefSharpCoreRuntimeAnyCpu
Simplify using CefSharp when targeting AnyCPU, it's now possible to include this as library code
now that CefSharp.dll targets AnyCPU.

There is no .Net Core/.Net 5.0 implementation of this class as the CefSharp.Core.Runtime.dll
is already loaded dynamically based on architecture.

- Call CefRuntime.LoadCefSharpCoreRuntimeAnyCpu to immediately load the CefSharp.Core.Runtime.dll
and all dependant resources will be loaded based on this instance
- Call LoadCefSharpCoreRuntimeAnyCpu.SubscribeAnyCpuAssemblyResolver to use load assembly
  when required.
2021-06-04 16:57:53 +10:00

52 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Note: We cannot use the recommended style of specifying <Project Sdk=...> because we need
to set BaseIntermediateOutputPath and BaseOutputPath before the SDK props are imported. -->
<PropertyGroup>
<BaseIntermediateOutputPath>obj.netcore\</BaseIntermediateOutputPath>
<BaseOutputPath>bin.netcore\</BaseOutputPath>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>CefSharp</RootNamespace>
<AssemblyName>CefSharp</AssemblyName>
<DocumentationFile>$(BaseOutputPath)$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\CefSharp.snk</AssemblyOriginatorKeyFile>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<EmbedAllSources>True</EmbedAllSources>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<!-- Don't include items from the "bin" and "obj" folders used by the .NET Framework projects. -->
<EmbeddedResource Remove="Internals\Wcf\**" />
<None Remove="bin/**/*.*" />
<None Remove="Internals\Wcf\**" />
<None Remove="obj/**/*.*" />
<Compile Remove="Internals\Wcf\**" />
<Compile Remove="obj/**/*.*" />
</ItemGroup>
<ItemGroup>
<Compile Remove="CefRuntime.cs" />
<Compile Remove="DevTools\DevToolsClient.Generated.cs" />
<Compile Remove="Internals\Partial\ChromiumWebBrowser.Partial.cs" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>