Skip to content

Commit 77b20c7

Browse files
committed
Examples - Add .Net 5.0 and conditionally .Net 6.0 as target frameworks
- .Net 6.0 requires VS2022 This may need to be changed if Appveyor doesn't like building the .Net 5.0 targets
1 parent b160c1d commit 77b20c7

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<!-- Note: We cannot use the recommended style of specifying <Project Sdk=...> because we need
44
to set BaseIntermediateOutputPath and BaseOutputPath before the SDK props are imported. -->
@@ -11,7 +11,8 @@
1111

1212
<PropertyGroup>
1313
<OutputType>Exe</OutputType>
14-
<TargetFramework>netcoreapp3.1</TargetFramework>
14+
<TargetFrameworks>netcoreapp3.1;net5.0-windows</TargetFrameworks>
15+
<TargetFrameworks Condition="'$(VisualStudioVersion)'=='17.0'">$(TargetFrameworks);net6.0-windows</TargetFrameworks>
1516
<RootNamespace>CefSharp.OffScreen.Example</RootNamespace>
1617
<AssemblyName>CefSharp.OffScreen.Example</AssemblyName>
1718
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>

CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<!-- Note: We cannot use the recommended style of specifying <Project Sdk=...> because we need
44
to set BaseIntermediateOutputPath and BaseOutputPath before the SDK props are imported. -->
@@ -11,7 +11,8 @@
1111

1212
<PropertyGroup>
1313
<OutputType>WinExe</OutputType>
14-
<TargetFramework>netcoreapp3.1</TargetFramework>
14+
<TargetFrameworks>netcoreapp3.1;net5.0-windows</TargetFrameworks>
15+
<TargetFrameworks Condition="'$(VisualStudioVersion)'=='17.0'">$(TargetFrameworks);net6.0-windows</TargetFrameworks>
1516
<RootNamespace>CefSharp.WinForms.Example</RootNamespace>
1617
<AssemblyName>CefSharp.WinForms.Example</AssemblyName>
1718
<UseWindowsForms>true</UseWindowsForms>

CefSharp.Wpf/CefSharp.Wpf.netcore.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" />
1111

1212
<PropertyGroup>
13-
<TargetFramework>netcoreapp3.1</TargetFramework>
13+
<TargetFrameworks>netcoreapp3.1;net5.0-windows</TargetFrameworks>
14+
<TargetFrameworks Condition="'$(VisualStudioVersion)'=='17.0'">$(TargetFrameworks);net6.0-windows</TargetFrameworks>
1415
<RootNamespace>CefSharp.Wpf</RootNamespace>
1516
<AssemblyName>CefSharp.Wpf</AssemblyName>
1617
<DocumentationFile>$(BaseOutputPath)$(PlatformTarget)\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>

0 commit comments

Comments
 (0)