Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0.2xx] Update dependencies from dotnet/roslyn #2161

1 change: 1 addition & 0 deletions NuGet.config
Expand Up @@ -10,4 +10,5 @@
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources />
</configuration>
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Expand Up @@ -5,9 +5,9 @@
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
<Sha>5535e31a712343a63f5d7d796cd874e563e5ac14</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis" Version="4.8.0-7.24067.24">
<Dependency Name="Microsoft.CodeAnalysis" Version="4.9.2-3.24171.17">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>263571123fc3dc4a638e071234ac9fbf91913962</Sha>
<Sha>a74310032037a8df19d3516256edb6738be9e817</Sha>
<SourceBuild RepoName="roslyn" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-externals" Version="8.0.0-alpha.1.23502.1">
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Expand Up @@ -31,7 +31,7 @@
<!-- In order tests against the same version of NuGet as the SDK. We have to set this to match. -->
<NuGetVersion>6.8.0-rc.122</NuGetVersion>
<!-- roslyn -->
<MicrosoftCodeAnalysisVersion>4.8.0-7.24067.24</MicrosoftCodeAnalysisVersion>
<MicrosoftCodeAnalysisVersion>4.9.2-3.24171.17</MicrosoftCodeAnalysisVersion>
<!-- roslyn-sdk -->
<MicrosoftCodeAnalysisAnalyzerTestingVersion>1.1.2-beta1.22216.1</MicrosoftCodeAnalysisAnalyzerTestingVersion>
<!-- runtime -->
Expand Down
17 changes: 12 additions & 5 deletions tests/Utilities/MSBuildRegistrar.cs
Expand Up @@ -21,11 +21,18 @@ public static string RegisterInstance()
{
if (Interlocked.Exchange(ref s_registered, 1) == 0)
{
var msBuildInstance = Build.Locator.MSBuildLocator.QueryVisualStudioInstances().First();
s_msBuildPath = Path.EndsInDirectorySeparator(msBuildInstance.MSBuildPath)
? msBuildInstance.MSBuildPath
: msBuildInstance.MSBuildPath + Path.DirectorySeparatorChar;
Build.Locator.MSBuildLocator.RegisterMSBuildPath(s_msBuildPath);
if (Build.Locator.MSBuildLocator.CanRegister)
{
var msBuildInstance = Build.Locator.MSBuildLocator.QueryVisualStudioInstances().First();
s_msBuildPath = Path.EndsInDirectorySeparator(msBuildInstance.MSBuildPath)
? msBuildInstance.MSBuildPath
: msBuildInstance.MSBuildPath + Path.DirectorySeparatorChar;
Build.Locator.MSBuildLocator.RegisterMSBuildPath(s_msBuildPath);
}
else
{
s_msBuildPath = "MSBuild could not be registered.";
}
}

return s_msBuildPath!;
Expand Down