-
Notifications
You must be signed in to change notification settings - Fork 65
Can no longer use relative pathing #148
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
Comments
Actually, even absolute paths are insufficient when the folder isn't somewhere under the current working directory because the ":" is also banned too. |
Last note: when I roll back to 17.13.0 Preview 2.1, the problem goes away. I've submitted a VS ticket. |
@whodges thank you for your details. |
It’s here: https://developercommunity.visualstudio.com/t/Can-no-longer-use-relative-pathing-with-/10834141 But of course they closed it instantly, citing it as a “third party issue”. |
Just ran into this headfirst today, too. I upgraded VS to 17.13.0 release version when it came out. No changes to dnt. So, I've tried debugging the problem using the latest dnt version from Github. First I upgraded all packages (it was using 17.12.x packages, now I'm on 17.13.x). Then removed multi-targetting, limiting the output to .NET9 (otherwise in SwitchPackagesToProjects.cs methode
So, no relative paths, it's all absolute. Even with this example, it fails. So, base don what @whodges wrote, I figured I'd see what's different in a project where it still works Here's the parameters for the working one
So, we can see here from the 5 projects, 3 are in the same d:\repos\SmartDirectory path. But two are in d:\repos\tools\tools, so the 'works if they share the same path root' doesn't seem to hold (project 5 also is in the same repo, but another sub-repo than the other two) For the failing project, I removed a whole bunch of projects - maybe the first project needs to share the directory? Here's the issue I filed: https://developercommunity.visualstudio.com/t/dotnet-sln-add-started-to-fail-after-upg/10851238 Should be harder to close that with '3rd party failure'.. Then I've been trying something - what if I add a single project and that project is in a subpath to the solution? The issue seems to stem from the .NET SDK 9.0.200 by the way... I downgraded my VS to 17.12.5 and the problem was still present - because the VS 17.14 preview relied on 9.0.200, so it wasn't uninstalled when I downgraded. When I got rid of the .NET SDK 9.0.200, the problem went away |
@mh4647 : if you read the post immediately above yours, you'll see that the problem is your .net version. 9.0.200 has the problem. It'll be fixed in March release SDK. In the meantime, you can downgrade the SDK. There's nothing @RicoSuter can do about this, it's a Microsoft Problem. |
@ssteiner Yes, Thanks, |
Has anybody installed the March update of VS / .NET SDK and tested if it fixes the issue? The Linked Github issue is still open, other linked issues have been marked as merged and should be in the new SDK version. |
@ssteiner After updating to 9.0.201 |
Yes, it is working💯. |
Working here, too. So this issue can be closed. |
awesome - thanks all! |
When I run "dnt switch-to-projects" now with my switcher.json as something along the lines of:
I get the following error that's caused by my use of relative pathing:
If I take out the ".." and use an absolute path, everything is fine. I updated my DNT installation (I was on 1.9.0 and now I'm on 2.0.1) and it happened with both. I did update Visual Studio to 17.13.0 Preview 3 recently (from Preview 2). Could it possibly be tied to that? Something with the build tools?
The text was updated successfully, but these errors were encountered: