Skip to content

workspace.OpenSolutionAsync locked after update code analysis libraries on vs 17.14 #78766

@cgamberini

Description

@cgamberini

On vs17.14 my code analysis library did not work, so i updated the libraries to the last version as below:

<PackageReference Include="Microsoft.Build.Locator" Version="1.9.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.14.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.5" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="9.0.5" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.5" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NuGet.Frameworks" Version="6.14.0" />
<PackageReference Include="NuGet.ProjectModel" Version="6.14.0" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="9.0.5" />

now if i call await workspace.OpenSolutionAsync(solutionFilePath); it does not return, in the console there are no errors.

downgrading net sdk using old version this code does not solve the problem.

MSBuildLocator.RegisterMSBuildPath("C:\Program Files\dotnet\sdk\8.0.313");

any suggestions?

NB. solutionFilePath target an ASP.NET MVC application build with .NET framework 4.7.2

Thanks

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions