|
1 | 1 | <Project>
|
2 |
| - <PropertyGroup Label="Project"> |
3 |
| - <Product>MyCSharp.HttpClientHints</Product> |
4 |
| - <Authors>MyCSharp.de, Benjamin Abt, Günther Foidl and Contributors</Authors> |
5 |
| - <Company>MyCSharp.de</Company> |
6 |
| - </PropertyGroup> |
| 2 | + <PropertyGroup Label="Project"> |
| 3 | + <Product>MyCSharp.HttpClientHints</Product> |
| 4 | + <Authors>MyCSharp.de, Benjamin Abt, Günther Foidl and Contributors</Authors> |
| 5 | + <Company>MyCSharp.de</Company> |
| 6 | + </PropertyGroup> |
7 | 7 |
|
8 |
| - <PropertyGroup Label="Vars"> |
9 |
| - <IsWindows Condition="$([MSBuild]::IsOSPlatform('Windows'))">true</IsWindows> |
10 |
| - <IsOSX Condition="$([MSBuild]::IsOSPlatform('OSX'))">true</IsOSX> |
11 |
| - <IsLinux Condition="$([MSBuild]::IsOSPlatform('Linux'))">true</IsLinux> |
| 8 | + <PropertyGroup Label="Vars"> |
| 9 | + <IsWindows Condition="$([MSBuild]::IsOSPlatform('Windows'))">true</IsWindows> |
| 10 | + <IsOSX Condition="$([MSBuild]::IsOSPlatform('OSX'))">true</IsOSX> |
| 11 | + <IsLinux Condition="$([MSBuild]::IsOSPlatform('Linux'))">true</IsLinux> |
12 | 12 |
|
13 |
| - <IsTestProject>$(MSBuildProjectName.EndsWith('Tests'))</IsTestProject> |
14 |
| - <IsUnitTestProject>$(MSBuildProjectName.EndsWith('UnitTests'))</IsUnitTestProject> |
15 |
| - <IsIntegrationTestProject>$(MSBuildProjectName.EndsWith('IntegrationTests'))</IsIntegrationTestProject> |
16 |
| - <IsBenchmarkProject>$(MsBuildProjectName.EndsWith('Benchmarks'))</IsBenchmarkProject> |
17 |
| - </PropertyGroup> |
| 13 | + <IsTestProject>$(MSBuildProjectName.EndsWith('Tests'))</IsTestProject> |
| 14 | + <IsUnitTestProject>$(MSBuildProjectName.EndsWith('UnitTests'))</IsUnitTestProject> |
| 15 | + <IsIntegrationTestProject>$(MSBuildProjectName.EndsWith('IntegrationTests'))</IsIntegrationTestProject> |
| 16 | + <IsBenchmarkProject>$(MsBuildProjectName.EndsWith('Benchmarks'))</IsBenchmarkProject> |
| 17 | + </PropertyGroup> |
18 | 18 |
|
19 |
| - <PropertyGroup Label="Assembly"> |
20 |
| - <TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks> |
21 |
| - <RootNamespace>MyCSharp.$(MSBuildProjectName)</RootNamespace> |
22 |
| - <AssemblyName>MyCSharp.$(MSBuildProjectName)</AssemblyName> |
23 |
| - </PropertyGroup> |
| 19 | + <PropertyGroup Label="Assembly"> |
| 20 | + <TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks> |
| 21 | + <RootNamespace>MyCSharp.$(MSBuildProjectName)</RootNamespace> |
| 22 | + <AssemblyName>MyCSharp.$(MSBuildProjectName)</AssemblyName> |
| 23 | + </PropertyGroup> |
24 | 24 |
|
25 |
| - <PropertyGroup> |
26 |
| - <SignAssembly>true</SignAssembly> |
27 |
| - <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)MyCSharp.HttpClientHints.snk</AssemblyOriginatorKeyFile> |
| 25 | + <PropertyGroup> |
| 26 | + <SignAssembly>true</SignAssembly> |
| 27 | + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)MyCSharp.HttpClientHints.snk</AssemblyOriginatorKeyFile> |
28 | 28 |
|
29 |
| - <PublicKey> |
30 |
| - 002400000480000094000000060200000024000052534131000400000100010049809bc922cd71 |
31 |
| - a1539dd60826caafead07781420334254bdc0c276165f7313f241833f972437ee215684b4e10de |
32 |
| - 49501812fa7fcdb18baead466e32978ca3e45ff7c82616283718d6ab2b729ab40e656fb856a845 |
33 |
| - cede9fdd2b449fc34a99edf258524ce5e1f958a9598efba2953e34e179b13c086500f9b72ca08a |
34 |
| - 065effe0 |
35 |
| - </PublicKey> |
36 |
| - </PropertyGroup> |
| 29 | + <PublicKey> |
| 30 | + 002400000480000094000000060200000024000052534131000400000100010049809bc922cd71 |
| 31 | + a1539dd60826caafead07781420334254bdc0c276165f7313f241833f972437ee215684b4e10de |
| 32 | + 49501812fa7fcdb18baead466e32978ca3e45ff7c82616283718d6ab2b729ab40e656fb856a845 |
| 33 | + cede9fdd2b449fc34a99edf258524ce5e1f958a9598efba2953e34e179b13c086500f9b72ca08a |
| 34 | + 065effe0 |
| 35 | + </PublicKey> |
| 36 | + </PropertyGroup> |
37 | 37 |
|
38 |
| - <PropertyGroup Label="Compiler"> |
39 |
| - <LangVersion>preview</LangVersion> |
40 |
| - <DebugType>embedded</DebugType> |
41 |
| - <Nullable>enable</Nullable> |
42 |
| - <DefaultLanguage>en-US</DefaultLanguage> |
43 |
| - <ImplicitUsings>enable</ImplicitUsings> |
44 |
| - <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
45 |
| - </PropertyGroup> |
| 38 | + <PropertyGroup Label="Compiler"> |
| 39 | + <LangVersion>preview</LangVersion> |
| 40 | + <DebugType>embedded</DebugType> |
| 41 | + <Nullable>enable</Nullable> |
| 42 | + <DefaultLanguage>en-US</DefaultLanguage> |
| 43 | + <ImplicitUsings>enable</ImplicitUsings> |
| 44 | + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
| 45 | + </PropertyGroup> |
46 | 46 |
|
47 |
| - <PropertyGroup Label="Package"> |
48 |
| - <IsPackable>false</IsPackable> |
49 |
| - <NoPackageAnalysis>true</NoPackageAnalysis> |
50 |
| - <MinClientVersion>2.12</MinClientVersion> |
51 |
| - <EmbedUntrackedSources>true</EmbedUntrackedSources> |
| 47 | + <PropertyGroup Label="Package"> |
| 48 | + <IsPackable>false</IsPackable> |
| 49 | + <NoPackageAnalysis>true</NoPackageAnalysis> |
| 50 | + <MinClientVersion>2.12</MinClientVersion> |
| 51 | + <EmbedUntrackedSources>true</EmbedUntrackedSources> |
52 | 52 |
|
53 |
| - <Description>HTTP Client Hints for .NET</Description> |
54 |
| - <PackageProjectUrl>https://github.com/mycsharp/HttpClientHints</PackageProjectUrl> |
55 |
| - <RepositoryUrl>https://github.com/mycsharp/HttpClientHints</RepositoryUrl> |
56 |
| - <PackageTags>UserAgent, User Agent, Client Hints, Browser, Client, Detector, Detection, Console, ASP, Desktop, Mobile</PackageTags> |
57 |
| - </PropertyGroup> |
| 53 | + <Description>HTTP Client Hints for .NET</Description> |
| 54 | + <PackageProjectUrl>https://github.com/mycsharp/HttpClientHints</PackageProjectUrl> |
| 55 | + <RepositoryUrl>https://github.com/mycsharp/HttpClientHints</RepositoryUrl> |
| 56 | + <PackageTags>UserAgent, User Agent, Client Hints, Browser, Client, Detector, Detection, Console, ASP, Desktop, Mobile</PackageTags> |
| 57 | + </PropertyGroup> |
58 | 58 |
|
59 |
| - <PropertyGroup Condition="'$(IsTestProject)' != 'true' AND '$(IsBenchmarkProject)' != 'true'"> |
60 |
| - <GenerateDocumentationFile>true</GenerateDocumentationFile> |
61 |
| - </PropertyGroup> |
| 59 | + <PropertyGroup Condition="'$(IsTestProject)' != 'true' AND '$(IsBenchmarkProject)' != 'true'"> |
| 60 | + <GenerateDocumentationFile>true</GenerateDocumentationFile> |
| 61 | + </PropertyGroup> |
62 | 62 |
|
63 |
| - <PropertyGroup Label="Visual Studio"> |
64 |
| - <!-- https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-5-performance-enhancements/ --> |
65 |
| - <AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio> |
66 |
| - </PropertyGroup> |
| 63 | + <PropertyGroup Label="Visual Studio"> |
| 64 | + <!-- https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-5-performance-enhancements/ --> |
| 65 | + <AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio> |
| 66 | + </PropertyGroup> |
67 | 67 |
|
68 |
| - <PropertyGroup Label="NuGet Audit"> |
69 |
| - <NuGetAudit>true</NuGetAudit> |
70 |
| - <NuGetAuditMode>all</NuGetAuditMode> |
71 |
| - <NuGetAuditLevel>low</NuGetAuditLevel> |
72 |
| - </PropertyGroup> |
| 68 | + <PropertyGroup Label="NuGet Audit"> |
| 69 | + <NuGetAudit>true</NuGetAudit> |
| 70 | + <NuGetAuditMode>all</NuGetAuditMode> |
| 71 | + <NuGetAuditLevel>low</NuGetAuditLevel> |
| 72 | + </PropertyGroup> |
73 | 73 |
|
74 |
| - <ItemGroup Label="Default Test Dependencies" Condition="'$(IsTestProject)' == 'true'"> |
75 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
76 |
| - <PackageReference Include="Microsoft.Extensions.Diagnostics.Testing" /> |
77 |
| - <PackageReference Include="NSubstitute" /> |
78 |
| - <PackageReference Include="NSubstitute.Analyzers.CSharp"> |
79 |
| - <PrivateAssets>all</PrivateAssets> |
80 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
81 |
| - </PackageReference> |
82 |
| - <PackageReference Include="xunit.v3" /> |
83 |
| - <PackageReference Include="xunit.v3.extensibility.core"/> |
84 |
| - <PackageReference Include="xunit.v3.assert" /> |
85 |
| - <PackageReference Include="xunit.runner.console"> |
86 |
| - <PrivateAssets>all</PrivateAssets> |
87 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
88 |
| - </PackageReference> |
89 |
| - <PackageReference Include="xunit.runner.visualstudio"> |
90 |
| - <PrivateAssets>all</PrivateAssets> |
91 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
92 |
| - </PackageReference> |
93 |
| - </ItemGroup> |
| 74 | + <ItemGroup Label="Default Test Dependencies" Condition="'$(IsTestProject)' == 'true'"> |
| 75 | + <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
| 76 | + <PackageReference Include="Microsoft.Extensions.Diagnostics.Testing" /> |
| 77 | + <PackageReference Include="NSubstitute" /> |
| 78 | + <PackageReference Include="NSubstitute.Analyzers.CSharp"> |
| 79 | + <PrivateAssets>all</PrivateAssets> |
| 80 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 81 | + </PackageReference> |
| 82 | + <PackageReference Include="xunit.v3" /> |
| 83 | + <PackageReference Include="xunit.v3.extensibility.core"/> |
| 84 | + <PackageReference Include="xunit.v3.assert" /> |
| 85 | + <PackageReference Include="xunit.runner.console"> |
| 86 | + <PrivateAssets>all</PrivateAssets> |
| 87 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 88 | + </PackageReference> |
| 89 | + <PackageReference Include="xunit.runner.visualstudio"> |
| 90 | + <PrivateAssets>all</PrivateAssets> |
| 91 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
| 92 | + </PackageReference> |
| 93 | + </ItemGroup> |
94 | 94 |
|
95 |
| - <ItemGroup Label="Default Analyzers"> |
96 |
| - <PackageReference Include="Roslynator.Analyzers"> |
97 |
| - <PrivateAssets>all</PrivateAssets> |
98 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
99 |
| - </PackageReference> |
100 |
| - <PackageReference Include="Roslynator.Formatting.Analyzers"> |
101 |
| - <PrivateAssets>all</PrivateAssets> |
102 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
103 |
| - </PackageReference> |
104 |
| - <PackageReference Include="Roslynator.CodeAnalysis.Analyzers"> |
105 |
| - <PrivateAssets>all</PrivateAssets> |
106 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
107 |
| - </PackageReference> |
108 |
| - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" /> |
109 |
| - <PackageReference Include="Microsoft.CodeAnalysis.Common" /> |
110 |
| - <PackageReference Include="Microsoft.CodeAnalysis.CSharp" /> |
111 |
| - <PackageReference Include="Meziantou.Analyzer"> |
112 |
| - <PrivateAssets>all</PrivateAssets> |
113 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
114 |
| - </PackageReference> |
115 |
| - </ItemGroup> |
| 95 | + <ItemGroup Label="Default Analyzers"> |
| 96 | + <PackageReference Include="Roslynator.Analyzers"> |
| 97 | + <PrivateAssets>all</PrivateAssets> |
| 98 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 99 | + </PackageReference> |
| 100 | + <PackageReference Include="Roslynator.Formatting.Analyzers"> |
| 101 | + <PrivateAssets>all</PrivateAssets> |
| 102 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 103 | + </PackageReference> |
| 104 | + <PackageReference Include="Roslynator.CodeAnalysis.Analyzers"> |
| 105 | + <PrivateAssets>all</PrivateAssets> |
| 106 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 107 | + </PackageReference> |
| 108 | + <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces"> |
| 109 | + <PrivateAssets>all</PrivateAssets> |
| 110 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 111 | + </PackageReference> |
| 112 | + <PackageReference Include="Microsoft.CodeAnalysis.Common"> |
| 113 | + <PrivateAssets>all</PrivateAssets> |
| 114 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 115 | + </PackageReference> |
| 116 | + <PackageReference Include="Microsoft.CodeAnalysis.CSharp"> |
| 117 | + <PrivateAssets>all</PrivateAssets> |
| 118 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 119 | + </PackageReference> |
| 120 | + <PackageReference Include="Meziantou.Analyzer"> |
| 121 | + <PrivateAssets>all</PrivateAssets> |
| 122 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 123 | + </PackageReference> |
| 124 | + </ItemGroup> |
116 | 125 |
|
117 |
| - <!-- Block Projects with Privacy/Security/License Concerns --> |
118 |
| - <Target Name="CheckBlockedPackages" AfterTargets="ResolvePackageDependenciesForBuild"> |
119 |
| - <Error Code="420" Text="Blocked package dependency detected: %(PackageDependencies.Identity)" |
120 |
| - Condition="'%(PackageDependencies.Identity)' == 'Devlooped.SponsorLink'" /> |
121 |
| - <Error Code="420" Text="Blocked package dependency detected: %(PackageDependencies.Identity)" |
122 |
| - Condition="'%(PackageDependencies.Identity)' == 'FluentAssertions'" /> |
123 |
| - </Target> |
| 126 | + <!-- Block Projects with Privacy/Security/License Concerns --> |
| 127 | + <Target Name="CheckBlockedPackages" AfterTargets="ResolvePackageDependenciesForBuild"> |
| 128 | + <Error Code="420" Text="Blocked package dependency detected: %(PackageDependencies.Identity)" |
| 129 | + Condition="'%(PackageDependencies.Identity)' == 'Devlooped.SponsorLink'" /> |
| 130 | + <Error Code="420" Text="Blocked package dependency detected: %(PackageDependencies.Identity)" |
| 131 | + Condition="'%(PackageDependencies.Identity)' == 'FluentAssertions'" /> |
| 132 | + </Target> |
124 | 133 |
|
125 | 134 | </Project>
|
0 commit comments