Skip to content

Solution parser fails when projects have similar names  #3019

@rainersigwald

Description

@rainersigwald

Steps to reproduce

Attempt to build this solution:

Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27130.2010 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project.Named.With.Dots", "Project.Named.With.Dots.csproj", "{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project_Named_With_Dots", "Project_Named_With_Dots.csproj", "{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}" EndProject Global	GlobalSection(SolutionConfigurationPlatforms) = preSolution	Release|Any CPU = Release|Any CPU	EndGlobalSection	GlobalSection(ProjectConfigurationPlatforms) = postSolution	{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}.Release|Any CPU.ActiveCfg = Release|Any CPU	{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}.Release|Any CPU.Build.0 = Release|Any CPU	{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}.Release|Any CPU.ActiveCfg = Release|Any CPU	{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}.Release|Any CPU.Build.0 = Release|Any CPU	EndGlobalSection	GlobalSection(SolutionProperties) = preSolution	HideSolutionNode = FALSE	EndGlobalSection	GlobalSection(ExtensibilityGlobals) = postSolution	SolutionGuid = {C038ED6B-BFC1-4E50-AE2E-7993F6883D7F}	EndGlobalSection EndGlobal 

Expected behavior

Successful build.

Actual behavior

Build FAILED. C:\Users\raines\source\repos\SolutionWithConflictingNames\SolutionWithConflictingNames.sln : Solution file error MSB5004: The solution file has two projects named "Project_Named_With_Dots". 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.05 

Environment data

msbuild /version output: Microsoft (R) Build Engine version 15.5.180.51428 for .NET Framework

(Related to #530 but different since the solution is entirely valid here and the conflict is within MSBuild.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions