-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improper handling of slashes in solution files #2022
Comments
At a quick glance, I bet we we need a |
I get the same error on mac, with
|
Seems like this would be nice to get fixed before .NET core 2.0 ships. Is that still a possibility? Who would need to be involved? |
I have mono@28dc2d4 and mono@86adc96 . I'll open a PR. |
Ah, the base patch is already in, so only the actual fix is required. |
Linux, dotnet-sdk-2.0.3
do nothing But on windows it works. This command builds only MyProject project from the MySolution.sln |
Add a test that will fail on forward-slash OSes when reading a backslash-containing relative path from a solution file. Regression test for dotnet#2022.
Add a test that will fail on forward-slash OSes when reading a backslash-containing relative path from a solution file. Regression test for dotnet#2022.
Fixes dotnet#2022, fixes dotnet#1957. Ported the code change only from mono@86adc96.
Fixes dotnet#2022, fixes dotnet#1957. Ported the code change only from mono@86adc96.
If a solution file contains a relative path to a project with a backslash (which Visual Studio and
dotnet sln add
both emit), and the project uses a project type GUID that is not recognised by MSBuild, any attempts to build the solution on Linux fail with the error:It appears that the code in
Microsoft.Build.Construction.ProjectInSolution.CanBeMSBuildProjectFile()
is failing on Linux.Reproduction Steps:
dotnet msbuild solution.sln
Expected Output:
Actual Output:
Workaround
Replace all backslashes in the solution file with forward slashes in the solution file.
The text was updated successfully, but these errors were encountered: