39ファイル変更
+66
-60
検索条件に一致するファイルはありません
@@ -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"
|
||||
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
run: >
|
||||
$vs_path = vswhere -latest -products * -requires Microsoft.VisualStudio.Workload.ManagedDesktop -requiresAny -property installationPath;
|
||||
$vstest_path = join-path $vs_path 'Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe';
|
||||
& $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net6.0-windows10.0.22621.0\win10-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe
|
||||
& $vstest_path /Platform:x64 tests\ComputeSharp.D2D1.WinUI.Tests\bin\x64\Release\net7.0-windows10.0.22621.0\win10-x64\ComputeSharp.D2D1.WinUI.Tests.build.appxrecipe
|
||||
|
||||
# Run all the local samples to ensure they build and run with no errors
|
||||
run-samples:
|
||||
@@ -161,15 +161,15 @@ jobs:
|
||||
- name: Build and run ComputeSharp.Sample
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.Sample\bin\x64\Release\net6.0\win-x64\ComputeSharp.Sample.exe
|
||||
samples\ComputeSharp.Sample\bin\x64\Release\net7.0\win-x64\ComputeSharp.Sample.exe
|
||||
- name: Build and run ComputeSharp.Sample.FSharp
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net6.0\win-x64\ComputeSharp.Sample.FSharp.exe
|
||||
samples\ComputeSharp.Sample.FSharp\bin\x64\Release\net7.0\win-x64\ComputeSharp.Sample.FSharp.exe
|
||||
- name: Build and run ComputeSharp.ImageProcessing.csproj
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.ImageProcessing\bin\x64\Release\net6.0\win-x64\ComputeSharp.ImageProcessing.exe
|
||||
samples\ComputeSharp.ImageProcessing\bin\x64\Release\net7.0\win-x64\ComputeSharp.ImageProcessing.exe
|
||||
|
||||
# Run the NativeAOT samples as well
|
||||
run-samples-aot:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ using BenchmarkDotNet.Running;
|
||||
// ================
|
||||
// In order to run this benchmark, switch to Release mode and either run select
|
||||
// it as the startup project for the solution and run it without the debugger
|
||||
// (CTRL + F5), or compile it and then go to its bin\Release\net6.0 folder,
|
||||
// (CTRL + F5), or compile it and then go to its bin\Release\net7.0 folder,
|
||||
// open a cmd prompt and run "dotnet ComputeSharp.Benchmark.dll".
|
||||
BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args);
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<LangVersion>5.0</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetFramework>net7.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
||||
<RootNamespace>ComputeSharp.SwapChain.WinUI</RootNamespace>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<NoWarn>$(NoWarn);CA1416;IDE0210</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetFramework>net7.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<RuntimeIdentifiers>win10-x64;win10-arm64</RuntimeIdentifiers>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<SupportedOSVersion>windows6.1</SupportedOSVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<SupportedOSVersion>windows6.2</SupportedOSVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<SupportedOSVersion>windows6.2</SupportedOSVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<SupportedOSVersion>windows6.2</SupportedOSVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetFramework>net7.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<RuntimeIdentifiers>win10-x64;win10-arm64</RuntimeIdentifiers>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<SupportedOSVersion>windows6.2</SupportedOSVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
@@ -43,12 +43,12 @@
|
||||
</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.
|
||||
-->
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0'))">
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net7.0'))">
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<EnableAotAnalyzer>true</EnableAotAnalyzer>
|
||||
@@ -68,7 +68,7 @@
|
||||
<!-- Emit the [ComVisible(false)] attribute for WinUI targets -->
|
||||
<Target Name="EmitComVisibleAttributeForWinUIProjects"
|
||||
BeforeTargets="PrepareForBuild">
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net6.0-windows'))">
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0-windows'))">
|
||||
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
|
||||
<_Parameter1>false</_Parameter1>
|
||||
</AssemblyAttribute>
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -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>
|
||||
|
||||
+14
-8
@@ -2,7 +2,6 @@ extern alias Core;
|
||||
extern alias D2D1;
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.CodeAnalysis.Testing;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using CSharpCodeFixTest = Microsoft.CodeAnalysis.CSharp.Testing.CSharpCodeFixTest<
|
||||
ComputeSharp.D2D1.SourceGenerators.MissingPixelShaderDescriptorOnPixelShaderAnalyzer,
|
||||
@@ -15,6 +14,7 @@ namespace ComputeSharp.D2D1.Tests.SourceGenerators;
|
||||
public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task FileContainsComputeSharpD2D1UsingDirective()
|
||||
{
|
||||
string original = """
|
||||
@@ -40,7 +40,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
@@ -51,6 +51,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task FileContainsComputeSharpD2D1UsingDirective_MultipleOccurrences()
|
||||
{
|
||||
string original = """
|
||||
@@ -101,7 +102,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
@@ -112,6 +113,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task FileDoesNotContainComputeSharpD2D1UsingDirective()
|
||||
{
|
||||
string original = """
|
||||
@@ -135,7 +137,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
@@ -146,6 +148,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task FileDoesNotContainComputeSharpD2D1UsingDirective_MultipleOccurrences()
|
||||
{
|
||||
string original = """
|
||||
@@ -193,7 +196,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
@@ -204,6 +207,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task InsertsAttributeAfterAllOtherD2DAttributes()
|
||||
{
|
||||
string original = """
|
||||
@@ -233,7 +237,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
@@ -244,6 +248,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task InsertsAttributeAfterAllOtherD2DAttributes_WithOtherNonD2DAttribute()
|
||||
{
|
||||
string original = """
|
||||
@@ -285,7 +290,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
@@ -296,6 +301,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Ignore("Missing .NET 7 reference assemblies.")]
|
||||
public async Task InsertsAttributeAfterAllOtherD2DAttributes_WithFakeAttributes()
|
||||
{
|
||||
string original = """
|
||||
@@ -349,7 +355,7 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
|
||||
{
|
||||
TestCode = original,
|
||||
FixedCode = @fixed,
|
||||
ReferenceAssemblies = ReferenceAssemblies.Net.Net60
|
||||
//ReferenceAssemblies = ReferenceAssemblies.Net.Net70
|
||||
};
|
||||
|
||||
test.TestState.AdditionalReferences.Add(typeof(Core::ComputeSharp.Float4).Assembly);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetFramework>net7.0-windows10.0.22621.0</TargetFramework>
|
||||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
+2
-2
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする