-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Absolute or relative paths to .sln no longer works with dotnet sln add
#47008
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
1 similar comment
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Could this be related to the issue, were if we add a project in our monorepo to the sln file (in the root) that it adds it with a in between structure. We only get it to work as before with adding --solution-folder "/path/to/project", while this was not needed on 9.0.103 Also, it started adding plaforms x86 and x64, while on 9.0.103 it only added "any" |
forgot to mention, but we use dotnet like so dotnet sln "worspace-name.nx-dotnet.sln" add "packages/apps/the-application-name"
# and after switching from 9.0.103 to 9.0.200 we need to do (any it still does some other stuf different like platforms)
dotnet sln "worspace-name.nx-dotnet.sln" add "packages/apps/the-application-name" --solution-folder "/packages/apps"
|
Hello @filipvh. Yes, it is related. The upcoming fix makes it so that no solution folders are automatically created when adding a project outside the directory of the solution file. In the meantime, the |
We're hitting this in our CI build, a day away from M2 mode. The failing command is:
|
Hello @drewnoakes fix is scheduled for 9.0.201 but in the meantime our suggestions could be to either downgrade the sdk version, or to pass in the |
This bug also hit the dotnet/project-system repo. I suspect that a lot of the build logic was copied between these two repositories, explaining why we hit this twice. We are pinning to the prior version for now. Is a fix still scheduled? |
Hello, this should be working now for 9.0.202 |
Describe the bug
After upgrading to
9.0.200
adding projects to a solution usingdotnet sln add
no longer works if the path to the .sln file is a relative or absolute path.Even with valid paths you get the following error:
To Reproduce
In the directory,
c:\temp\
, run the following.After upgrading to 9.0.200 it no longer works:
With earlier SDK versions it succeeded without error:
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: