You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework our netstandard1.3 test references (#56223)
* Rework our netstandard1.3 test references
The `netstandard1.3` test references were being provided by our
MS.CA.Test.Resources.Proprietary package. The contents of this package
get included in the output directory of every single unit test DLL that
we build (which contributes to build output size). The references
themselves though were only used in a very small number of tests.
This change upgrades to a version of MS.CA.Test.Resources.Proprietary
that has the `netstandard1.3` references removed and adds the
`netstandard1.3` references to only the projects that needs them
* Update eng/Versions.props
Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
Copy file name to clipboardExpand all lines: src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs
+161-1Lines changed: 161 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
using Roslyn.Test.Utilities.TestGenerators;
36
36
using Roslyn.Utilities;
37
37
using Xunit;
38
+
using Basic.Reference.Assemblies;
38
39
using static Microsoft.CodeAnalysis.CommonDiagnosticAnalyzers;
39
40
using static Roslyn.Test.Utilities.SharedResourceHelpers;
40
41
using static Roslyn.Test.Utilities.TestMetadata;
@@ -11513,7 +11514,7 @@ public void LoadinganalyzerNetStandard13()
11513
11514
11514
11515
var analyzerDir = Temp.CreateDirectory();
11515
11516
11516
-
var analyzerFile = analyzerDir.CreateFile(analyzerFileName).WriteAllBytes(DesktopTestHelpers.CreateCSharpAnalyzerNetStandard13(Path.GetFileNameWithoutExtension(analyzerFileName)));
11517
+
var analyzerFile = analyzerDir.CreateFile(analyzerFileName).WriteAllBytes(CreateCSharpAnalyzerNetStandard13(Path.GetFileNameWithoutExtension(analyzerFileName)));
11517
11518
var srcFile = analyzerDir.CreateFile(srcFileName).WriteAllText("public class C { }");
11518
11519
11519
11520
var result = ProcessUtilities.Run(s_CSharpCompilerExecutable, arguments: $"/nologo /t:library /analyzer:{analyzerFileName} {srcFileName}", workingDirectory: analyzerDir.Path);
@@ -11530,6 +11531,165 @@ at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_N
0 commit comments