use daily roslyn compiler builds

This commit is contained in:
Matt Parker
2025-08-17 23:01:01 +10:00
parent e9481a586f
commit 702586f672
3 changed files with 6 additions and 5 deletions

View File

@@ -5,5 +5,6 @@
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="localnugettest" value="C:\Users\Matthew\AppData\Roaming\LocalNuget" />
<add key="roslyn-compiler" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
</packageSources>
</configuration>

View File

@@ -43,7 +43,7 @@ public static class RoslynAnalysis
// is this hostServices necessary? test without it - just getting providers from assemblies instead
var host = MefHostServices.Create(MefHostServices.DefaultAssemblies);
_workspace ??= MSBuildWorkspace.Create(host);
_workspace.WorkspaceFailed += (o, e) => throw new InvalidOperationException($"Workspace failed: {e.Diagnostic.Message}");
_workspace.RegisterWorkspaceFailedHandler(o => throw new InvalidOperationException($"Workspace failed: {o.Diagnostic.Message}"));
}
var solution = await _workspace.OpenSolutionAsync(solutionFilePath, new Progress());
timer.Stop();

View File

@@ -16,10 +16,10 @@
<PackageReference Include="Microsoft.Build.Locator" Version="1.9.1" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="17.14.8" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.14.8" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="4.14.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Features" Version="4.14.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.14.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="5.0.0-2.25416.112" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0-2.25416.112" />
<PackageReference Include="Microsoft.CodeAnalysis.Features" Version="5.0.0-2.25416.112" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.0.0-2.25416.112" PrivateAssets="all" />
<PackageReference Include="Microsoft.VisualStudio.SolutionPersistence" Version="1.0.52" />
<PackageReference Include="NuGet.Protocol" Version="6.14.0" />
</ItemGroup>