Bump Roslyn dependencies to 4.7.0

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-18 18:20:54 +02:00
1 親 29260dc2a1
コミット 14336448f5
12ファイル変更
+19 -19

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -106,7 +106,7 @@ jobs:
- name: Run ComputeSharp.D2D1.Tests.AssemblyLevelAttributes
run: dotnet test tests\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes\ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj -c Release -v n -l "console;verbosity=detailed"
# Run the D2D1 source generators tests as well (only on .NET 6, like for the DX12 ones)
# Run the D2D1 source generators tests as well (only on .NET 7, like for the DX12 ones)
- name: Run ComputeSharp.D2D1.Tests.SourceGenerators
run: dotnet test tests\ComputeSharp.D2D1.Tests.SourceGenerators\ComputeSharp.D2D1.Tests.SourceGenerators.csproj -v n -l "console;verbosity=detailed"
+1 -1
ファイルの表示
@@ -4,7 +4,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
+1 -1
ファイルの表示
@@ -13,7 +13,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" PrivateAssets="all" Pack="false" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" PrivateAssets="all" Pack="false" />
</ItemGroup>
<ItemGroup>
+1 -1
ファイルの表示
@@ -4,7 +4,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
+1 -1
ファイルの表示
@@ -79,7 +79,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" PrivateAssets="all" Pack="false" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" PrivateAssets="all" Pack="false" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.49-beta" PrivateAssets="all" />
</ItemGroup>
+4 -4
ファイルの表示
@@ -7,7 +7,7 @@
</ItemGroup>
</Target>
<!-- Remove the analyzer if using Roslyn < 4.5 (ComputeSharp.D2D1's generators require Roslyn 4.5) -->
<!-- Remove the analyzer if using Roslyn < 4.7 (ComputeSharp.D2D1's generators require Roslyn 4.7) -->
<Target Name="_ComputeSharpD2D1RemoveAnalyzersForRoslyn3"
Condition="'$(CSharpCoreTargetsPath)' != ''"
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
@@ -29,10 +29,10 @@
<ComputeSharpD2D1CurrentCompilerVersion>@(ComputeSharpD2D1CurrentCompilerAssemblyIdentity->'%(Version)')</ComputeSharpD2D1CurrentCompilerVersion>
<!-- The CurrentCompilerVersionIsNotNewEnough property can now be defined based on the Roslyn assembly version -->
<ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough Condition="$([MSBuild]::VersionLessThan($(ComputeSharpD2D1CurrentCompilerVersion), 4.5))">true</ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough>
<ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough Condition="$([MSBuild]::VersionLessThan($(ComputeSharpD2D1CurrentCompilerVersion), 4.7))">true</ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough>
</PropertyGroup>
<!-- If the Roslyn version is < 4.5, disable the source generators -->
<!-- If the Roslyn version is < 4.7, disable the source generators -->
<ItemGroup Condition ="'$(ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough)' == 'true'">
<Analyzer Remove="@(_ComputeSharpD2D1Analyzer)"/>
</ItemGroup>
@@ -42,7 +42,7 @@
emitting this manually lets us customize the message to inform developers as to why exactly the generators have been
disabled, and that ComputeSharp will not work at all unless a more up to date IDE or compiler version are used.
-->
<Error Condition ="'$(ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough)' == 'true'" Text="The ComputeSharp.D2D1 source generators have been disabled on the current configuration, as they need Roslyn 4.5 in order to work. ComputeSharp.D2D1 requires the source generators to run in order to process shaders, so the library cannot be used without a more up to date IDE (eg. VS 2022 17.4 or greater) or .NET SDK version (.NET 7 SDK or greater)."/>
<Error Condition ="'$(ComputeSharpD2D1CurrentCompilerVersionIsNotNewEnough)' == 'true'" Text="The ComputeSharp.D2D1 source generators have been disabled on the current configuration, as they need Roslyn 4.7 in order to work. ComputeSharp.D2D1 requires the source generators to run in order to process shaders, so the library cannot be used without a more up to date IDE (eg. VS 2022 17.7 or greater) or .NET SDK version (.NET 7 SDK or greater)."/>
</Target>
<!-- Remove the analyzer if Roslyn is missing -->
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ using System.Security.Cryptography;
namespace System;
/// <summary>
/// A polyfill type that mirrors some methods from <see cref="HashCode"/> on .NET 6.
/// A polyfill type that mirrors some methods from <see cref="HashCode"/> on .7.
/// </summary>
internal struct HashCode
{
+1 -1
ファイルの表示
@@ -69,7 +69,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.6.0" PrivateAssets="all" Pack="false" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" PrivateAssets="all" Pack="false" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.49-beta" PrivateAssets="all" />
</ItemGroup>
+4 -4
ファイルの表示
@@ -7,7 +7,7 @@
</ItemGroup>
</Target>
<!-- Remove the analyzer if using Roslyn < 4.5 (ComputeSharp's generators require Roslyn 4.5) -->
<!-- Remove the analyzer if using Roslyn < 4.7 (ComputeSharp's generators require Roslyn 4.7) -->
<Target Name="_ComputeSharpRemoveAnalyzersForRoslyn3"
Condition="'$(CSharpCoreTargetsPath)' != ''"
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
@@ -29,10 +29,10 @@
<ComputeSharpCurrentCompilerVersion>@(ComputeSharpCurrentCompilerAssemblyIdentity->'%(Version)')</ComputeSharpCurrentCompilerVersion>
<!-- The CurrentCompilerVersionIsNotNewEnough property can now be defined based on the Roslyn assembly version -->
<ComputeSharpCurrentCompilerVersionIsNotNewEnough Condition="$([MSBuild]::VersionLessThan($(ComputeSharpCurrentCompilerVersion), 4.5))">true</ComputeSharpCurrentCompilerVersionIsNotNewEnough>
<ComputeSharpCurrentCompilerVersionIsNotNewEnough Condition="$([MSBuild]::VersionLessThan($(ComputeSharpCurrentCompilerVersion), 4.7))">true</ComputeSharpCurrentCompilerVersionIsNotNewEnough>
</PropertyGroup>
<!-- If the Roslyn version is < 4.5, disable the source generators -->
<!-- If the Roslyn version is < 4.7, disable the source generators -->
<ItemGroup Condition ="'$(ComputeSharpCurrentCompilerVersionIsNotNewEnough)' == 'true'">
<Analyzer Remove="@(_ComputeSharpAnalyzer)"/>
</ItemGroup>
@@ -42,7 +42,7 @@
emitting this manually lets us customize the message to inform developers as to why exactly the generators have been
disabled, and that ComputeSharp will not work at all unless a more up to date IDE or compiler version are used.
-->
<Error Condition ="'$(ComputeSharpCurrentCompilerVersionIsNotNewEnough)' == 'true'" Text="The ComputeSharp source generators have been disabled on the current configuration, as they need Roslyn 4.5 in order to work. ComputeSharp requires the source generators to run in order to process shaders, so the library cannot be used without a more up to date IDE (eg. VS 2022 17.4 or greater) or .NET SDK version (.NET 7 SDK or greater)."/>
<Error Condition ="'$(ComputeSharpCurrentCompilerVersionIsNotNewEnough)' == 'true'" Text="The ComputeSharp source generators have been disabled on the current configuration, as they need Roslyn 4.7 in order to work. ComputeSharp requires the source generators to run in order to process shaders, so the library cannot be used without a more up to date IDE (eg. VS 2022 17.7 or greater) or .NET SDK version (.NET 7 SDK or greater)."/>
</Target>
<!-- Remove the analyzer if Roslyn is missing -->
+1 -1
ファイルの表示
@@ -43,7 +43,7 @@
</ItemGroup>
<!--
Enable trimming support on .NET 6 (we need to use StartsWith since it
Enable trimming support on .NET 7 (we need to use StartsWith since it
could be a Windows TFM too). This can't be in a target unlike the other
properties set below, because if that is the case the trimmable attribute
will be set but the analyzers will not run, so warnings will be skipped.
@@ -10,7 +10,7 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" Version="1.1.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest" Version="1.1.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
@@ -278,8 +278,8 @@ public enum PublishMode
}
/// <summary>
/// Indicates how should the application be packaged. Notably, these tests employ .NET 6 style SingleFile,
/// aka SuperHost. It does not affect native libraries packaging in .NET 6, but may in the future.
/// Indicates how should the application be packaged. Notably, these tests employ .NET 7 style SingleFile,
/// aka SuperHost. It does not affect native libraries packaging in .NET 7, but may in the future.
/// </summary>
public enum DeploymentMode
{