Skip to content

Correctly interpret slashes Fixes #5715#5734

Merged
Forgind merged 4 commits intodotnet:masterfrom
Forgind:slnf-slashes-linux
Sep 18, 2020
Merged

Correctly interpret slashes Fixes #5715#5734
Forgind merged 4 commits intodotnet:masterfrom
Forgind:slnf-slashes-linux

Conversation

@Forgind
Copy link
Contributor

@Forgind Forgind commented Sep 12, 2020

This first commit should cause it to break on Linux, as it uses the default slashes. If that is correct, I will push the fix I think should work.

This causes it to break on Linux, as there is a path long enough to include a slash, even from the .sln.
@Forgind Forgind added Area: Solution (.sln) Issues related to parsing .sln files or building solutions WIP labels Sep 12, 2020
@Forgind Forgind changed the title [WIP] Correctly interpret slashes Correctly interpret slashes Fixes #5715 Sep 12, 2020
@Forgind Forgind removed the WIP label Sep 12, 2020
@Forgind Forgind marked this pull request as ready for review September 12, 2020 15:11
VisualStudioVersion = 16.0.29326.124
MinimumVisualStudioVersion = 10.0.40219.1
Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""SimpleProject"", """ + Path.Combine("SimpleProject", "SimpleProject.csproj") + @""", ""{79B5EBA6-5D27-4976-BC31-14422245A59A}""
Project(""{9A19103F-16F7-4668-BE54-9A1E7A4F7556}"") = ""SimpleProject"", ""SimpleProject\SimpleProject.csproj"", ""{79B5EBA6-5D27-4976-BC31-14422245A59A}""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth a comment around here somewhere that hardcoding backslashes is intentional/required to support the common case.

@Forgind Forgind merged commit 215bfff into dotnet:master Sep 18, 2020
@Forgind Forgind deleted the slnf-slashes-linux branch September 18, 2020 16:41
Forgind added a commit to Forgind/msbuild that referenced this pull request Sep 25, 2020
MSBuild normalizes slashes such that a solution file can use backslashes in paths on Linux or iOS. This adds that functionality for solution filter files as well.
Fixes dotnet#5715.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Solution (.sln) Issues related to parsing .sln files or building solutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants