|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 | <PropertyGroup>
|
3 |
| - <TargetFrameworks>net35;net452;netcoreapp1.1;netcoreapp2.0;net5.0;net5.0-windows;net6.0;net6.0-windows</TargetFrameworks> |
| 3 | + <TargetFrameworks>net462;netcoreapp2.1;netcoreapp3.1;net5.0;net5.0-windows;net6.0;net6.0-windows</TargetFrameworks> |
4 | 4 | <UseWindowsForms Condition="'$(TargetFramework)' == 'net5.0-windows'">true</UseWindowsForms>
|
5 | 5 | <UseWPF Condition="'$(TargetFramework)' == 'net5.0-windows'">true</UseWPF>
|
6 |
| - <DefineConstants Condition="'$(TargetFramework)' != 'net6.0' AND '$(TargetFramework)' != 'netcoreapp1.1'">$(DefineConstants);SYSTEM_DRAWING</DefineConstants> |
7 |
| - <DefineConstants Condition="'$(TargetFramework)' == 'net35' or '$(TargetFramework)' == 'net452' or '$(TargetFramework)' == 'net5.0-windows' or '$(TargetFramework)' == 'net6.0-windows'">$(DefineConstants);TEST_XAML</DefineConstants> |
| 6 | + <DefineConstants Condition="'$(TargetFramework)' != 'net6.0'">$(DefineConstants);SYSTEM_DRAWING</DefineConstants> |
| 7 | + <DefineConstants Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net5.0-windows' or '$(TargetFramework)' == 'net6.0-windows'">$(DefineConstants);TEST_XAML</DefineConstants> |
8 | 8 | <DefineConstants Condition="'$(TargetFramework)' == 'net5.0-windows'">$(DefineConstants);NET5_0_WINDOWS</DefineConstants>
|
9 | 9 | <DefineConstants Condition="'$(TargetFramework)' == 'net6.0-windows'">$(DefineConstants);NET6_0_WINDOWS</DefineConstants>
|
10 | 10 | <IsPackable>false</IsPackable>
|
11 | 11 | <IsTestProject>true</IsTestProject>
|
12 | 12 | <DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
|
13 |
| - <NoWarn>$(NoWarn);NU1903</NoWarn> |
| 13 | + <NoWarn>$(NoWarn);CA1416</NoWarn> |
| 14 | + <SuppressTfmSupportBuildErrors>true</SuppressTfmSupportBuildErrors> |
| 15 | + <CheckEolTargetFramework>false</CheckEolTargetFramework> |
| 16 | + </PropertyGroup> |
| 17 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> |
| 18 | + <RuntimeFrameworkVersion>2.1.30</RuntimeFrameworkVersion> |
14 | 19 | </PropertyGroup>
|
15 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' or '$(TargetFramework)' == 'net5.0-windows' or '$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net6.0-windows' "> |
16 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" /> |
17 |
| - <PackageReference Include="xunit" Version="2.4.1" /> |
18 |
| - <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" /> |
19 |
| - <PackageReference Include="shouldly" Version="4.0.3" /> |
20 |
| - </ItemGroup> |
21 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net35' or '$(TargetFramework)' == 'net452' "> |
22 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> |
23 |
| - <PackageReference Include="xunit" Version="1.9.2" /> |
24 |
| - <PackageReference Include="xunit.runner.visualstudio" Version="2.0.1" /> |
25 |
| - <PackageReference Include="shouldly" Version="2.8.3" /> |
26 |
| - </ItemGroup> |
27 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' or '$(TargetFramework)' == 'netcoreapp2.0'"> |
28 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> |
29 |
| - <PackageReference Include="xunit" Version="2.4.1" /> |
30 |
| - <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /> |
31 |
| - <PackageReference Include="shouldly" Version="3.0.2" /> |
32 |
| - </ItemGroup> |
33 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net35' "> |
34 |
| - <Reference Include="PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
35 |
| - <Reference Include="WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
36 |
| - </ItemGroup> |
37 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> |
38 |
| - <Reference Include="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
39 |
| - <Reference Include="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
40 |
| - </ItemGroup> |
41 | 20 | <ItemGroup>
|
42 |
| - <PackageReference Include="coverlet.collector" Version="3.0.3"> |
| 21 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.3" /> |
| 22 | + <PackageReference Include="xunit" Version="2.9.2" /> |
| 23 | + <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" /> |
| 24 | + <PackageReference Include="shouldly" Version="4.3.0" /> |
| 25 | + <PackageReference Include="System.Drawing.Common" Version="6.0.0" Condition="'$(TargetFramework)' == 'net6.0'" /> |
| 26 | + <PackageReference Include="System.Management" Version="6.0.1"> |
| 27 | + <ExcludeAssets>buildTransitive</ExcludeAssets> |
| 28 | + </PackageReference> |
| 29 | + <PackageReference Include="System.CodeDom" Version="6.0.0"> |
| 30 | + <ExcludeAssets>buildTransitive</ExcludeAssets> |
| 31 | + </PackageReference> |
| 32 | + <PackageReference Include="coverlet.collector" Version="6.0.4"> |
43 | 33 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
44 | 34 | <PrivateAssets>all</PrivateAssets>
|
45 | 35 | </PackageReference>
|
46 |
| - <PackageReference Include="coverlet.msbuild" Version="3.0.3"> |
| 36 | + <PackageReference Include="coverlet.msbuild" Version="6.0.4"> |
47 | 37 | <PrivateAssets>all</PrivateAssets>
|
48 | 38 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
49 | 39 | </PackageReference>
|
50 |
| - <PackageReference Include="SshNet.Security.Cryptography" Version="1.3.0" /> |
| 40 | + </ItemGroup> |
| 41 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net462' "> |
| 42 | + <Reference Include="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
| 43 | + <Reference Include="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
| 44 | + </ItemGroup> |
| 45 | + <ItemGroup> |
51 | 46 | <ProjectReference Include="..\QRCoder\QRCoder.csproj" />
|
52 | 47 | </ItemGroup>
|
53 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net35' or '$(TargetFramework)' == 'net452' or '$(TargetFramework)' == 'net5.0-windows' or '$(TargetFramework)' == 'net6.0-windows' "> |
| 48 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net5.0-windows' or '$(TargetFramework)' == 'net6.0-windows' "> |
54 | 49 | <ProjectReference Include="..\QRCoder.Xaml\QRCoder.Xaml.csproj" />
|
55 | 50 | </ItemGroup>
|
56 | 51 | <ItemGroup>
|
57 |
| - <None Update="assets\noun_Scientist_2909361.svg"> |
58 |
| - <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
59 |
| - </None> |
60 |
| - <None Update="assets\noun_software engineer_2909346.png"> |
61 |
| - <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
62 |
| - </None> |
| 52 | + <EmbeddedResource Include="assets\noun_Scientist_2909361.svg" /> |
| 53 | + <EmbeddedResource Include="assets\noun_software engineer_2909346.png" /> |
63 | 54 | </ItemGroup>
|
64 | 55 | </Project>
|
0 commit comments