dotnet/roslyn
MSBuildWorkspace fails to load metadatareferences for a project with a non-existent default configuration
开放
#5,389 创建于 2015年9月22日
Area-IDEBugIDE-MSBuildWorkspacehelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
I loaded a csproj using MSBuildWorkspace but the project.MetadataReferences was empty. The project compiles and runs fine in VS2015 and has numerous (+15) third party references. I discovered that the project had the default configuration Debug|AnyCPU, which did not exists, so i fixed it to an existing configuration and the project now loads fine.
I do not understand this behaviour, it seems like a bug to me, or that there should be some sort of exception thrown.
For more information, see: http://stackoverflow.com/questions/32634648/compilation-fails-with-roslyn-but-works-with-visual-studio/32650912?noredirect=1#comment53249254_32650912