2020-08-05 15:55:03 +08:00
|
|
|
|
<?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>
|
|
|
|
|
|
2021-03-05 09:15:53 +08:00
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
|
2020-08-05 15:55:03 +08:00
|
|
|
|
|
2019-09-10 16:20:34 +08:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<OutputType>Exe</OutputType>
|
2021-03-05 09:15:53 +08:00
|
|
|
|
<TargetFrameworks>netcoreapp3.1;net5.0-windows</TargetFrameworks>
|
2022-02-05 09:18:48 +08:00
|
|
|
|
<TargetFrameworks Condition="'$(VisualStudioVersion)'=='17.0'">$(TargetFrameworks);net6.0-windows</TargetFrameworks>
|
2019-09-10 16:20:34 +08:00
|
|
|
|
<RootNamespace>CefSharp.MinimalExample.OffScreen</RootNamespace>
|
|
|
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
|
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
2021-03-05 09:15:53 +08:00
|
|
|
|
<Platforms>x86;x64;AnyCPU</Platforms>
|
|
|
|
|
<!--
|
|
|
|
|
Run on a newer version of .Net if the specified version (.Net Core 3.1) is not installed
|
|
|
|
|
https://github.com/dotnet/docs/issues/12237
|
|
|
|
|
-->
|
|
|
|
|
<RollForward>Major</RollForward>
|
2021-08-25 11:59:37 +08:00
|
|
|
|
<StartupObject>CefSharp.MinimalExample.OffScreen.Program</StartupObject>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
.Net 5.0 Publish Settings for PublishSingleFile
|
|
|
|
|
https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file
|
|
|
|
|
Defaults differ compared to .Net Core 3.1
|
|
|
|
|
-->
|
|
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net5.0-windows' AND '$(PublishSingleFile)' == 'true'">
|
|
|
|
|
<!-- Extract all files to disk at runtime -->
|
|
|
|
|
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
|
|
|
|
<!-- Include our native files in the resulting exe -->
|
|
|
|
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
|
|
|
|
<StartupObject>CefSharp.MinimalExample.OffScreen.ProgramPublishSingleFile</StartupObject>
|
2021-03-05 09:15:53 +08:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(PlatformTarget)' == 'x86'">
|
|
|
|
|
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == ''">win-x86</RuntimeIdentifier>
|
|
|
|
|
<SelfContained Condition="'$(SelfContained)' == ''">false</SelfContained>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(PlatformTarget)' == 'x64'">
|
|
|
|
|
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == ''">win-x64</RuntimeIdentifier>
|
|
|
|
|
<SelfContained Condition="'$(SelfContained)' == ''">false</SelfContained>
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</PropertyGroup>
|
2020-08-26 14:15:39 +08:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Compile Remove="bin\**" />
|
|
|
|
|
<Compile Remove="obj\**" />
|
|
|
|
|
<EmbeddedResource Remove="bin\**" />
|
|
|
|
|
<EmbeddedResource Remove="obj\**" />
|
|
|
|
|
<None Remove="bin\**" />
|
|
|
|
|
<None Remove="obj\**" />
|
|
|
|
|
</ItemGroup>
|
2021-03-05 09:15:53 +08:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Remove="app.config" />
|
|
|
|
|
</ItemGroup>
|
2019-09-10 16:20:34 +08:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2022-03-31 10:22:23 +08:00
|
|
|
|
<PackageReference Include="CefSharp.OffScreen.NetCore" Version="99.2.140" />
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</ItemGroup>
|
2021-08-10 13:39:50 +08:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Update="crash_reporter.cfg">
|
|
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
|
|
|
</None>
|
|
|
|
|
</ItemGroup>
|
2021-09-05 08:10:47 +08:00
|
|
|
|
|
|
|
|
|
<Target Name="CefSharpAfterBuildDebug" AfterTargets="AfterBuild">
|
2021-09-14 08:18:42 +08:00
|
|
|
|
<CallTarget Targets="CefSharpAfterBuildDiagnostic" />
|
2021-09-05 08:10:47 +08:00
|
|
|
|
</Target>
|
2020-08-05 15:55:03 +08:00
|
|
|
|
|
2021-03-05 09:15:53 +08:00
|
|
|
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
2019-09-10 16:20:34 +08:00
|
|
|
|
</Project>
|