Net Core - Add .Net 6.0 PublishSingleFile support

- SelfHost BrowserSubprocess when targeting .Net 6.0 and PublishSingleFile
This commit is contained in:
Alex Maitland 2022-06-16 11:11:42 +10:00
parent 983b230d72
commit 8f3bba483c
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file
Defaults differ compared to .Net Core 3.1 Defaults differ compared to .Net Core 3.1
--> -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net5.0-windows' AND '$(PublishSingleFile)' == 'true'"> <PropertyGroup Condition="('$(TargetFramework)' == 'net5.0-windows' OR '$(TargetFramework)' == 'net6.0-windows') AND '$(PublishSingleFile)' == 'true'">
<!-- Extract all files to disk at runtime --> <!-- Extract all files to disk at runtime -->
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<!-- Include our native files in the resulting exe --> <!-- Include our native files in the resulting exe -->

View File

@ -42,7 +42,7 @@
https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file
Defaults differ compared to .Net Core 3.1 Defaults differ compared to .Net Core 3.1
--> -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net5.0-windows' AND '$(PublishSingleFile)' == 'true'"> <PropertyGroup Condition="('$(TargetFramework)' == 'net5.0-windows' OR '$(TargetFramework)' == 'net6.0-windows') AND '$(PublishSingleFile)' == 'true'">
<!-- Extract all files to disk at runtime --> <!-- Extract all files to disk at runtime -->
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<!-- Include our native files in the resulting exe --> <!-- Include our native files in the resulting exe -->