|
1 | 1 | <Project> |
2 | | - <PropertyGroup> |
3 | | - <!-- This should be passed from the VSTS build --> |
4 | | - <MicrosoftIdentityAbstractionsVersion Condition="'$(MicrosoftIdentityAbstractionsVersion)' == ''">9.5.0</MicrosoftIdentityAbstractionsVersion> |
5 | | - <!-- This will generate AssemblyVersion, AssemblyFileVersion and AssemblyInformationVersion --> |
6 | | - <Version>$(MicrosoftIdentityAbstractionsVersion)</Version> |
7 | | - <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\build\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile> |
8 | | - <RepositoryType>git</RepositoryType> |
9 | | - <Authors>Microsoft</Authors> |
10 | | - <Company>Microsoft Corporation</Company> |
11 | | - <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> |
12 | | - <PackageLicenseExpression>MIT</PackageLicenseExpression> |
13 | | - <PackageProjectUrl>https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet</PackageProjectUrl> |
14 | | - <RepositoryUrl>https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet</RepositoryUrl> |
15 | | - <PackageReleaseNotes>The release notes are available at https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet/releases and the roadmap at https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet/wiki#roadmap </PackageReleaseNotes> |
16 | | - <PackageTags>Microsoft Identity Abstractions for dotnet;Microsoft identity platform;Microsoft Identity Web;.NET;ASP.NET Core;Web App;Web API;B2C;Azure Active Directory;AAD;Identity;Authentication;Authorization</PackageTags> |
17 | | - <DefineConstants>$(DefineConstants);WEB</DefineConstants> |
18 | | - <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> |
19 | | - </PropertyGroup> |
20 | | - |
21 | | - <!-- TargetNetNext must be set to True to build/test with NET 10.0 locally, you can uncomment this PropertyGroup or set TargetNetNext it in a CLI arg (`/p:TargetNetNext=true`), or set an environment |
22 | | - variable (`Set TargetNetNext=true`) --> |
23 | | - <!-- <TargetNetNext>True</TargetNetNext> |
24 | | - </PropertyGroup> --> |
| 2 | + <PropertyGroup> |
| 3 | + <!-- This should be passed from the VSTS build --> |
| 4 | + <MicrosoftIdentityAbstractionsVersion Condition="'$(MicrosoftIdentityAbstractionsVersion)' == ''">9.5.0</MicrosoftIdentityAbstractionsVersion> |
| 5 | + <!-- This will generate AssemblyVersion, AssemblyFileVersion and AssemblyInformationVersion --> |
| 6 | + <Version>$(MicrosoftIdentityAbstractionsVersion)</Version> |
| 7 | + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\build\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile> |
| 8 | + <RepositoryType>git</RepositoryType> |
| 9 | + <Authors>Microsoft</Authors> |
| 10 | + <Company>Microsoft Corporation</Company> |
| 11 | + <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> |
| 12 | + <PackageLicenseExpression>MIT</PackageLicenseExpression> |
| 13 | + <PackageProjectUrl>https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet</PackageProjectUrl> |
| 14 | + <RepositoryUrl>https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet</RepositoryUrl> |
| 15 | + <PackageReleaseNotes>The release notes are available at https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet/releases and the roadmap at https://github.com/AzureAD/microsoft-identity-abstractions-for-dotnet/wiki#roadmap </PackageReleaseNotes> |
| 16 | + <PackageTags>Microsoft Identity Abstractions for dotnet;Microsoft identity platform;Microsoft Identity Web;.NET;ASP.NET Core;Web App;Web API;B2C;Azure Active Directory;AAD;Identity;Authentication;Authorization</PackageTags> |
| 17 | + <DefineConstants>$(DefineConstants);WEB</DefineConstants> |
| 18 | + <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> |
| 19 | + </PropertyGroup> |
25 | 20 |
|
26 | | - <PropertyGroup Condition="'$(TargetNetNext)' == 'True'"> |
27 | | - <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
28 | | - <CheckEolTargetFramework>false</CheckEolTargetFramework> |
29 | | - <!-- For NU5104 it prevents us from packing release packages with prerelease dependencies. But we want to do that so customers can get a preview of running with .NET 10. --> |
30 | | - <WarningsNotAsErrors>$(WarningsNotAsErrors);NU5104</WarningsNotAsErrors> |
31 | | - <NoWarn>$(NoWarn);NU5104</NoWarn> |
32 | | - </PropertyGroup> |
| 21 | + <!-- TargetNetNext must be set to True to build/test with .NET preview versions locally, you can uncomment this PropertyGroup or set TargetNetNext it in a CLI arg (`/p:TargetNetNext=true`), or set an environment |
| 22 | + variable (`Set TargetNetNext=true`) |
| 23 | + <PropertyGroup> |
| 24 | + <TargetNetNext>True</TargetNetNext> |
| 25 | + </PropertyGroup> --> |
33 | 26 |
|
34 | | - <PropertyGroup> |
35 | | - <TargetFrameworks>netstandard2.0;netstandard2.1;net462;net8.0;net9.0</TargetFrameworks> |
36 | | - <TargetFrameworks Condition="'$(TargetNetNext)' == 'True'">$(TargetFrameworks);net10.0</TargetFrameworks> |
37 | | - <SignAssembly>true</SignAssembly> |
38 | | - <AssemblyOriginatorKeyFile>../../build/MSAL.snk</AssemblyOriginatorKeyFile> |
39 | | - <GenerateDocumentationFile>true</GenerateDocumentationFile> |
40 | | - <Nullable>enable</Nullable> |
41 | | - <LangVersion>12</LangVersion> |
42 | | - <EnablePackageValidation>true</EnablePackageValidation> |
43 | | - <PackageValidationBaselineVersion>8.0.0</PackageValidationBaselineVersion> |
44 | | - <BannedApiAnalyzersVersion>4.14.0</BannedApiAnalyzersVersion> |
45 | | - <MicrosoftCodeAnalysisPublicApiAnalyzers>4.14.0</MicrosoftCodeAnalysisPublicApiAnalyzers> |
46 | | - <MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0</MicrosoftCodeAnalysisNetAnalyzersVersion> |
47 | | - </PropertyGroup> |
| 27 | + <PropertyGroup Condition="'$(TargetNetNext)' == 'True'"> |
| 28 | + <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
| 29 | + <CheckEolTargetFramework>false</CheckEolTargetFramework> |
| 30 | + <!-- For NU5104 it prevents us from packing release packages with prerelease dependencies. But we want to do that so customers can get a preview of running with .NET 10. --> |
| 31 | + <WarningsNotAsErrors>$(WarningsNotAsErrors);NU5104</WarningsNotAsErrors> |
| 32 | + <NoWarn>$(NoWarn);NU5104</NoWarn> |
| 33 | + </PropertyGroup> |
48 | 34 |
|
49 | | - <PropertyGroup Label="Source Link"> |
50 | | - <PublishRepositoryUrl>true</PublishRepositoryUrl> |
51 | | - <EmbedUntrackedSources>true</EmbedUntrackedSources> |
52 | | - <!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link --> |
53 | | - <IncludeSymbols>true</IncludeSymbols> |
54 | | - <SymbolPackageFormat>snupkg</SymbolPackageFormat> |
55 | | - <!-- The MSAL.snk has both private and public keys --> |
56 | | - <DelaySign>false</DelaySign> |
57 | | - <EnableNETAnalyzers>true</EnableNETAnalyzers> |
58 | | - <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> |
59 | | - </PropertyGroup> |
60 | | - |
61 | | - <PropertyGroup Condition="'$(TF_BUILD)' == 'true'"> |
62 | | - <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> |
63 | | - </PropertyGroup> |
| 35 | + <PropertyGroup> |
| 36 | + <TargetFrameworks>netstandard2.0;netstandard2.1;net462;net8.0;net9.0;net10.0</TargetFrameworks> |
| 37 | + <TargetFrameworks Condition="'$(TargetNetNext)' == 'True'">$(TargetFrameworks);</TargetFrameworks> |
| 38 | + <SignAssembly>true</SignAssembly> |
| 39 | + <AssemblyOriginatorKeyFile>../../build/MSAL.snk</AssemblyOriginatorKeyFile> |
| 40 | + <GenerateDocumentationFile>true</GenerateDocumentationFile> |
| 41 | + <Nullable>enable</Nullable> |
| 42 | + <LangVersion>12</LangVersion> |
| 43 | + <EnablePackageValidation>true</EnablePackageValidation> |
| 44 | + <PackageValidationBaselineVersion>8.0.0</PackageValidationBaselineVersion> |
| 45 | + <BannedApiAnalyzersVersion>4.14.0</BannedApiAnalyzersVersion> |
| 46 | + <MicrosoftCodeAnalysisPublicApiAnalyzers>4.14.0</MicrosoftCodeAnalysisPublicApiAnalyzers> |
| 47 | + <MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0</MicrosoftCodeAnalysisNetAnalyzersVersion> |
| 48 | + </PropertyGroup> |
64 | 49 |
|
65 | | - <ItemGroup> |
66 | | - <None Include="..\..\LICENSE"> |
67 | | - <Pack>True</Pack> |
68 | | - <PackagePath /> |
69 | | - </None> |
70 | | - </ItemGroup> |
| 50 | + <PropertyGroup Label="Source Link"> |
| 51 | + <PublishRepositoryUrl>true</PublishRepositoryUrl> |
| 52 | + <EmbedUntrackedSources>true</EmbedUntrackedSources> |
| 53 | + <!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link --> |
| 54 | + <IncludeSymbols>true</IncludeSymbols> |
| 55 | + <SymbolPackageFormat>snupkg</SymbolPackageFormat> |
| 56 | + <!-- The MSAL.snk has both private and public keys --> |
| 57 | + <DelaySign>false</DelaySign> |
| 58 | + <EnableNETAnalyzers>true</EnableNETAnalyzers> |
| 59 | + <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> |
| 60 | + </PropertyGroup> |
71 | 61 |
|
72 | | - <ItemGroup Condition="'$(TargetFramework)' == 'net462'"> |
73 | | - <Reference Include="System.Net.Http" /> |
74 | | - </ItemGroup> |
| 62 | + <PropertyGroup Condition="'$(TF_BUILD)' == 'true'"> |
| 63 | + <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> |
| 64 | + </PropertyGroup> |
75 | 65 |
|
76 | | - <ItemGroup Label="Build Tools" |
77 | | - Condition="$([MSBuild]::IsOsPlatform('Windows'))"> |
78 | | - <PackageReference Include="Microsoft.SourceLink.GitHub" |
79 | | - Version="1.0.0" |
80 | | - PrivateAssets="All" /> |
81 | | - </ItemGroup> |
| 66 | + <ItemGroup> |
| 67 | + <None Include="..\..\LICENSE"> |
| 68 | + <Pack>True</Pack> |
| 69 | + <PackagePath /> |
| 70 | + </None> |
| 71 | + </ItemGroup> |
82 | 72 |
|
83 | | - <ItemGroup> |
84 | | - <!-- Protects against sync-over-async: https://github.com/microsoft/vs-threading/blob/main/doc/analyzers/index.md. --> |
85 | | - <PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" |
86 | | - Version="17.11.20" |
87 | | - PrivateAssets="all" /> |
| 73 | + <ItemGroup Condition="'$(TargetFramework)' == 'net462'"> |
| 74 | + <Reference Include="System.Net.Http" /> |
| 75 | + </ItemGroup> |
88 | 76 |
|
89 | | - <!-- Help understand public API changes --> |
90 | | - <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" |
91 | | - Version="$(MicrosoftCodeAnalysisPublicApiAnalyzers)"> |
92 | | - <PrivateAssets>all</PrivateAssets> |
93 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
94 | | - </PackageReference> |
95 | | - </ItemGroup> |
| 77 | + <ItemGroup Label="Build Tools" |
| 78 | + Condition="$([MSBuild]::IsOsPlatform('Windows'))"> |
| 79 | + <PackageReference Include="Microsoft.SourceLink.GitHub" |
| 80 | + Version="1.0.0" |
| 81 | + PrivateAssets="All" /> |
| 82 | + </ItemGroup> |
| 83 | + |
| 84 | + <ItemGroup> |
| 85 | + <!-- Protects against sync-over-async: https://github.com/microsoft/vs-threading/blob/main/doc/analyzers/index.md. --> |
| 86 | + <PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" |
| 87 | + Version="17.11.20" |
| 88 | + PrivateAssets="all" /> |
| 89 | + |
| 90 | + <!-- Help understand public API changes --> |
| 91 | + <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" |
| 92 | + Version="$(MicrosoftCodeAnalysisPublicApiAnalyzers)"> |
| 93 | + <PrivateAssets>all</PrivateAssets> |
| 94 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 95 | + </PackageReference> |
| 96 | + </ItemGroup> |
96 | 97 | </Project> |
0 commit comments