MSBuildWorkspace.OpenSolutionAsync fails with the new slnx files #73004
Labels
Area-IDE
Resolution-External
The behavior lies outside the functionality covered by this repository
untriaged
Issues and PRs which have not yet been triaged by a lead
Version Used: Microsoft.CodeAnalysis.Workspaces.MSBuild 4.9.2
Steps to Reproduce:
slnx
using Visual Studio Version 17.10.0 Preview 3.0 or laterMicrosoft.CodeAnalysis.Workspaces.MSBuild
Expected Behavior:
Should have no exception. It doesn't occur when opening "ExampleSlnx.sln"
Actual Behavior:
Microsoft.Build.Exceptions.InvalidProjectFileException
$>d__0.MoveNext() in Q:\Code\Sandbox\ExampleSlnx\ExampleSlnx\Program.cs:line 9HResult=0x80131500
Message=No file format header found. Q:\Code\Sandbox\ExampleSlnx\ExampleSlnx.slnx
Source=Microsoft.Build
StackTrace:
at Microsoft.Build.Shared.ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(Boolean condition, String errorSubCategoryResourceName, BuildEventFileInfo projectFile, Exception innerException, String resourceName, Object[] args)
at Microsoft.Build.Shared.ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(Boolean condition, String errorSubCategoryResourceName, BuildEventFileInfo projectFile, String resourceName, Object[] args)
at Microsoft.Build.Construction.SolutionFile.ParseFileHeader()
at Microsoft.Build.Construction.SolutionFile.ParseSolution()
at Microsoft.Build.Construction.SolutionFile.ParseSolutionFile()
at Microsoft.Build.Construction.SolutionFile.Parse(String solutionFile)
at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.d__22.MoveNext()
at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.d__24.MoveNext()
at Program.<
The text was updated successfully, but these errors were encountered: