diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Mono.Cecil.Tests.csproj | 3 | ||||
-rw-r--r-- | Test/Mono.Cecil.Tests/CompilationService.cs | 11 |
2 files changed, 1 insertions, 13 deletions
diff --git a/Test/Mono.Cecil.Tests.csproj b/Test/Mono.Cecil.Tests.csproj index 7fe04bf..2d3d8e4 100644 --- a/Test/Mono.Cecil.Tests.csproj +++ b/Test/Mono.Cecil.Tests.csproj @@ -7,9 +7,6 @@ <PackageReference Include="Microsoft.CodeAnalysis.CSharp"> <Version>2.10.0</Version> </PackageReference> - <PackageReference Include="Microsoft.CodeAnalysis.VisualBasic"> - <Version>2.10.0</Version> - </PackageReference> </ItemGroup> <ItemGroup> <ProjectReference Include="..\Mono.Cecil.csproj"> diff --git a/Test/Mono.Cecil.Tests/CompilationService.cs b/Test/Mono.Cecil.Tests/CompilationService.cs index 5501d57..25e42ab 100644 --- a/Test/Mono.Cecil.Tests/CompilationService.cs +++ b/Test/Mono.Cecil.Tests/CompilationService.cs @@ -11,7 +11,6 @@ using NUnit.Framework; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Emit; using CS = Microsoft.CodeAnalysis.CSharp; -using VB = Microsoft.CodeAnalysis.VisualBasic; #endif namespace Mono.Cecil.Tests { @@ -90,7 +89,7 @@ namespace Mono.Cecil.Tests { if (extension == ".il") return IlasmCompilationService.Instance.Compile (name); - if (extension == ".cs" || extension == ".vb") + if (extension == ".cs") #if NET_CORE return RoslynCompilationService.Instance.Compile (name); #else @@ -182,14 +181,6 @@ namespace Mono.Cecil.Tests { new [] { CS.SyntaxFactory.ParseSyntaxTree (source) }, references, new CS.CSharpCompilationOptions (OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release)); - - case ".vb": - return VB.VisualBasicCompilation.Create ( - assemblyName, - new [] { VB.SyntaxFactory.ParseSyntaxTree (source) }, - references, - new VB.VisualBasicCompilationOptions (OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release)); - default: throw new NotSupportedException (); } |