Skip to content

Commit f75b991

Browse files
NetCore - Generate Reference Assemblies building with VS2022 (#4559)
* Ensure reference assemblies are copied to output folders The .NET 6.0 SDK introduced a breaking change meaning that reference assemblies are no longer automatically copied from the intermediate build directory to the output directory. An additional MsBuild property is now required. * Specify VS2022 for reference assembly copy condition --------- Co-authored-by: Bernard Mason <[email protected]>
1 parent d9ca051 commit f75b991

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

CefSharp.Core/CefSharp.Core.netcore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2626
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
27+
<ProduceReferenceAssemblyInOutDir Condition="'$(VisualStudioVersion)'=='17.0'">true</ProduceReferenceAssemblyInOutDir>
2728
<EmbedAllSources>True</EmbedAllSources>
2829
<DebugType>embedded</DebugType>
2930
</PropertyGroup>

CefSharp.OffScreen/CefSharp.OffScreen.netcore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2626
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
27+
<ProduceReferenceAssemblyInOutDir Condition="'$(VisualStudioVersion)'=='17.0'">true</ProduceReferenceAssemblyInOutDir>
2728
<EmbedAllSources>True</EmbedAllSources>
2829
<DebugType>embedded</DebugType>
2930
</PropertyGroup>

CefSharp.WinForms/CefSharp.WinForms.netcore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2727
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
28+
<ProduceReferenceAssemblyInOutDir Condition="'$(VisualStudioVersion)'=='17.0'">true</ProduceReferenceAssemblyInOutDir>
2829
<EmbedAllSources>True</EmbedAllSources>
2930
<DebugType>embedded</DebugType>
3031
</PropertyGroup>

CefSharp.Wpf/CefSharp.Wpf.netcore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2727
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
28+
<ProduceReferenceAssemblyInOutDir Condition="'$(VisualStudioVersion)'=='17.0'">true</ProduceReferenceAssemblyInOutDir>
2829
<EmbedAllSources>True</EmbedAllSources>
2930
<DebugType>embedded</DebugType>
3031
</PropertyGroup>

CefSharp/CefSharp.netcore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2424
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
25+
<ProduceReferenceAssemblyInOutDir Condition="'$(VisualStudioVersion)'=='17.0'">true</ProduceReferenceAssemblyInOutDir>
2526
<EmbedAllSources>True</EmbedAllSources>
2627
<DebugType>embedded</DebugType>
2728
</PropertyGroup>

0 commit comments

Comments
 (0)