|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | | - <PropertyGroup> |
4 | | - <TargetFrameworks>netstandard1.4;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks> |
5 | | - <LangVersion>9.0</LangVersion> |
6 | | - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
7 | | - <Nullable>enable</Nullable> |
8 | | - <Title>Windows Community Toolkit Diagnostics .NET Standard</Title> |
9 | | - <Description> |
10 | | - This package includes .NET Standard code only helpers such as: |
11 | | - - Guard: Helper methods to verify conditions when running code. |
12 | | - - ThrowHelper: Helper methods to efficiently throw exceptions. |
13 | | - </Description> |
14 | | - <PackageTags>UWP Toolkit Windows IncrementalLoadingCollection String Array extensions helpers</PackageTags> |
15 | | - </PropertyGroup> |
16 | | - <Choose> |
17 | | - <When Condition=" '$(TargetFramework)' == 'netstandard1.4' "> |
18 | | - <ItemGroup> |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFrameworks>netstandard1.4;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks> |
| 5 | + <LangVersion>9.0</LangVersion> |
| 6 | + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 7 | + <Nullable>enable</Nullable> |
| 8 | + <Title>Windows Community Toolkit Diagnostics .NET Standard</Title> |
| 9 | + <Description> |
| 10 | + This package includes .NET Standard code only helpers such as: |
| 11 | + - Guard: Helper methods to verify conditions when running code. |
| 12 | + - ThrowHelper: Helper methods to efficiently throw exceptions. |
| 13 | + </Description> |
| 14 | + <PackageTags>UWP Toolkit Windows IncrementalLoadingCollection String Array extensions helpers</PackageTags> |
| 15 | + </PropertyGroup> |
| 16 | + <Choose> |
| 17 | + <When Condition=" '$(TargetFramework)' == 'netstandard1.4' "> |
| 18 | + <ItemGroup> |
19 | 19 |
|
20 | | - <!-- .NET Standard 1.4 doesn't have the Span<T> type, ValueTuple or the [Pure] attribute --> |
21 | | - <PackageReference Include="System.Diagnostics.Contracts" Version="4.3.0" /> |
22 | | - <PackageReference Include="System.ValueTuple" Version="4.5.0" /> |
23 | | - <PackageReference Include="System.Memory" Version="4.5.4" /> |
24 | | - </ItemGroup> |
25 | | - </When> |
26 | | - <When Condition=" '$(TargetFramework)' == 'netstandard2.0' "> |
27 | | - <ItemGroup> |
| 20 | + <!-- .NET Standard 1.4 doesn't have the Span<T> type, ValueTuple or the [Pure] attribute --> |
| 21 | + <PackageReference Include="System.Diagnostics.Contracts" Version="4.3.0" /> |
| 22 | + <PackageReference Include="System.ValueTuple" Version="4.5.0" /> |
| 23 | + <PackageReference Include="System.Memory" Version="4.5.4" /> |
| 24 | + </ItemGroup> |
| 25 | + </When> |
| 26 | + <When Condition=" '$(TargetFramework)' == 'netstandard2.0' "> |
| 27 | + <ItemGroup> |
28 | 28 |
|
29 | | - <!-- .NET Standard 2.0 doesn't have the Span<T> type --> |
30 | | - <PackageReference Include="System.Memory" Version="4.5.4" /> |
31 | | - </ItemGroup> |
32 | | - </When> |
33 | | - <When Condition=" '$(TargetFramework)' == 'netstandard2.1' "> |
34 | | - <PropertyGroup> |
35 | | - <DefineConstants>NETSTANDARD2_1_OR_GREATER</DefineConstants> |
36 | | - </PropertyGroup> |
37 | | - <ItemGroup> |
| 29 | + <!-- .NET Standard 2.0 doesn't have the Span<T> type --> |
| 30 | + <PackageReference Include="System.Memory" Version="4.5.4" /> |
| 31 | + </ItemGroup> |
| 32 | + </When> |
| 33 | + <When Condition=" '$(TargetFramework)' == 'netstandard2.1' "> |
| 34 | + <PropertyGroup> |
| 35 | + <DefineConstants>NETSTANDARD2_1_OR_GREATER</DefineConstants> |
| 36 | + </PropertyGroup> |
| 37 | + <ItemGroup> |
38 | 38 |
|
39 | | - <!-- .NET Standard 2.1 doesn't have the Unsafe type --> |
40 | | - <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" /> |
41 | | - </ItemGroup> |
42 | | - </When> |
43 | | - <When Condition=" '$(TargetFramework)' == 'net5.0' "> |
44 | | - <PropertyGroup> |
45 | | - <DefineConstants>NETSTANDARD2_1_OR_GREATER</DefineConstants> |
46 | | - </PropertyGroup> |
47 | | - </When> |
48 | | - </Choose> |
| 39 | + <!-- .NET Standard 2.1 doesn't have the Unsafe type --> |
| 40 | + <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" /> |
| 41 | + </ItemGroup> |
| 42 | + </When> |
| 43 | + <When Condition=" '$(TargetFramework)' == 'net5.0' "> |
| 44 | + <PropertyGroup> |
| 45 | + <DefineConstants>NETSTANDARD2_1_OR_GREATER</DefineConstants> |
| 46 | + </PropertyGroup> |
| 47 | + </When> |
| 48 | + </Choose> |
49 | 49 |
|
50 | | - <!-- T4 service used by the Guard APIs --> |
51 | | - <ItemGroup> |
52 | | - <Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" /> |
53 | | - </ItemGroup> |
| 50 | + <!-- T4 service used by the Guard APIs --> |
| 51 | + <ItemGroup> |
| 52 | + <Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" /> |
| 53 | + </ItemGroup> |
54 | 54 |
|
55 | 55 | </Project> |
0 commit comments