Skip to content

Commit 3ff9f2a

Browse files
committed
MSBuildLocator is no longer required when using Roslyn 4.9+ (and it's failing on my machine)
1 parent 1731e15 commit 3ff9f2a

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

tools/ExampleTester/ExampleTester.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Build.Locator" Version="1.9.1" />
1211
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
1312
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.14.0" />
1413
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />

tools/ExampleTester/GeneratedExample.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using ExampleExtractor;
2-
using Microsoft.Build.Locator;
32
using Microsoft.CodeAnalysis;
43
using Microsoft.CodeAnalysis.MSBuild;
54
using Newtonsoft.Json;
@@ -11,11 +10,6 @@ namespace ExampleTester;
1110

1211
internal class GeneratedExample
1312
{
14-
static GeneratedExample()
15-
{
16-
MSBuildLocator.RegisterDefaults();
17-
}
18-
1913
private readonly string directory;
2014
internal ExampleMetadata Metadata { get; }
2115

0 commit comments

Comments
 (0)