chore: Force compiler version to be at least 4.2.0 for all extensions packages (needed for core code gen tools)
This commit is contained in:
Родитель
69b0f624f8
Коммит
8c6777dffc
|
@ -24,7 +24,7 @@
|
|||
<ItemGroup>
|
||||
|
||||
<!--This override is used to validate the user of specific version of the C# Compiler-->
|
||||
<PackageReference Include="Microsoft.Net.Compilers" VersionOverride="$(MicrosoftNetCompilerVersionOverride)">
|
||||
<PackageReference Include="Microsoft.Net.Compilers.Toolset" VersionOverride="$(MicrosoftNetCompilerVersionOverride)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="6.0.0" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0" />
|
||||
<PackageVersion Include="Microsoft.Net.Compilers" Version="4.2.0" />
|
||||
<PackageVersion Include="Microsoft.Net.Compilers.Toolset" Version="4.2.0" />
|
||||
<!--
|
||||
If, in the same solution, you are referencing a project that uses https://github.com/onovotny/MSBuildSdkExtras,
|
||||
you need to make sure that the version provided here matches https://github.com/novotnyllc/MSBuildSdkExtras/blob/main/Source/MSBuild.Sdk.Extras/DefaultItems/ImplicitPackages.targets#L11.
|
||||
|
|
|
@ -29,6 +29,12 @@
|
|||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!--This override is used to validate the use of specific version of the C# Compiler-->
|
||||
<PackageReference Include="Microsoft.Net.Compilers.Toolset" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<ItemGroup>
|
||||
|
||||
<!--This override is used to validate the user of specific version of the C# Compiler-->
|
||||
<PackageReference Include="Microsoft.Net.Compilers" VersionOverride="$(MicrosoftNetCompilerVersionOverride)">
|
||||
<PackageReference Include="Microsoft.Net.Compilers.Toolset" VersionOverride="$(MicrosoftNetCompilerVersionOverride)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<PackageVersion Include="Microsoft.Identity.Client" Version="4.47.0" />
|
||||
<PackageVersion Include="Microsoft.Identity.Client.Extensions.Msal" Version="2.22.0" />
|
||||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
||||
<PackageVersion Include="Microsoft.Net.Compilers" Version="4.2.0" />
|
||||
<PackageVersion Include="Microsoft.Net.Compilers.Toolset" Version="4.2.0" />
|
||||
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
|
||||
<PackageVersion Include="Microsoft.UI.Xaml" Version="2.7.1" />
|
||||
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.197" />
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<ItemGroup>
|
||||
|
||||
<!--This override is used to validate the user of specific version of the C# Compiler-->
|
||||
<PackageReference Include="Microsoft.Net.Compilers" VersionOverride="$(MicrosoftNetCompilerVersionOverride)">
|
||||
<PackageReference Include="Microsoft.Net.Compilers.Toolset" VersionOverride="$(MicrosoftNetCompilerVersionOverride)">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="6.0.0" />
|
||||
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
|
||||
<PackageVersion Include="Microsoft.Identity.Client" Version="4.47.0" />
|
||||
<PackageVersion Include="Microsoft.Net.Compilers" Version="4.2.0" />
|
||||
<PackageVersion Include="Microsoft.Net.Compilers.Toolset" Version="4.2.0" />
|
||||
<PackageVersion Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.11" />
|
||||
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2"/>
|
||||
<PackageVersion Include="Microsoft.Toolkit.Uwp.UI" Version="7.1.2" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче