Add 'ComputeSharp.D2D1.WinUI.Tests.SourceGenerators'
このコミットが含まれているのは:
1 親
d37001d45d
コミット
d194620473
4ファイル変更
+63
-4
検索条件に一致するファイルはありません
+8
-2
@@ -1,5 +1,8 @@
|
||||
extern alias Core;
|
||||
#if D2D1_TESTS
|
||||
#if D2D1_TESTS || D2D1_WINUI_TESTS
|
||||
#if D2D1_WINUI_TESTS
|
||||
extern alias D2D1_WinUI;
|
||||
#endif
|
||||
extern alias D2D1;
|
||||
#else
|
||||
extern alias D3D12;
|
||||
@@ -68,7 +71,10 @@ internal sealed class CSharpAnalyzerWithLanguageVersionTest<TAnalyzer> : CSharpA
|
||||
|
||||
test.TestState.ReferenceAssemblies = ReferenceAssemblies.Net.Net80;
|
||||
test.TestState.AdditionalReferences.Add(MetadataReference.CreateFromFile(typeof(Core::ComputeSharp.Hlsl).Assembly.Location));
|
||||
#if D2D1_TESTS
|
||||
#if D2D1_TESTS || D2D1_WINUI_TESTS
|
||||
#if D2D1_WINUI_TESTS
|
||||
test.TestState.AdditionalReferences.Add(MetadataReference.CreateFromFile(typeof(D2D1_WinUI::ComputeSharp.D2D1.WinUI.CanvasEffect).Assembly.Location));
|
||||
#endif
|
||||
test.TestState.AdditionalReferences.Add(MetadataReference.CreateFromFile(typeof(D2D1::ComputeSharp.D2D1.ID2D1PixelShader).Assembly.Location));
|
||||
#else
|
||||
test.TestState.AdditionalReferences.Add(MetadataReference.CreateFromFile(typeof(D3D12::ComputeSharp.IComputeShader).Assembly.Location));
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
extern alias Core;
|
||||
|
||||
#if D2D1_TESTS
|
||||
#if D2D1_TESTS || D2D1_WINUI_TESTS
|
||||
#if D2D1_WINUI_TESTS
|
||||
extern alias D2D1_WinUI;
|
||||
#endif
|
||||
extern alias D2D1;
|
||||
#else
|
||||
extern alias D3D12;
|
||||
@@ -176,7 +179,10 @@ internal static class CSharpGeneratorTest<TGenerator>
|
||||
[
|
||||
.. Net80.References.All,
|
||||
MetadataReference.CreateFromFile(typeof(Core::ComputeSharp.Hlsl).Assembly.Location),
|
||||
#if D2D1_TESTS
|
||||
#if D2D1_TESTS || D2D1_WINUI_TESTS
|
||||
#if D2D1_WINUI_TESTS
|
||||
MetadataReference.CreateFromFile(typeof(D2D1_WinUI::ComputeSharp.D2D1.WinUI.CanvasEffect).Assembly.Location),
|
||||
#endif
|
||||
MetadataReference.CreateFromFile(typeof(D2D1::ComputeSharp.D2D1.ID2D1PixelShader).Assembly.Location)
|
||||
#else
|
||||
MetadataReference.CreateFromFile(typeof(D3D12::ComputeSharp.IComputeShader).Assembly.Location)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする