-
Notifications
You must be signed in to change notification settings - Fork 14
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
[BUG] dotnet restore
does not use CLI from dotnet.dotnetPath
#63
Comments
@arkalyanms - I have removed |
That setting is not for controlling the SDK or the customer's dotnet environment but rather just for the local install of the runtime used in the devkit extension per my understanding: So the behavior you're seeing seems pretty expected to me. Not sure why you wanted to control this through the IDE settings as we've never had the ability to control dotnet outside of the path/global.json (and global.json doesn't control where the SDK is, only environment variables). CC @lifengl who probably knows where that setting is actually used. |
But we should have this ability. See also dotnet/sdk#8254. |
@marcpopMSFT @baronfel This is part of the 'GA' milestone so we should resolve it before then, I don't know if we have any actionable items we can do from this by GA, and whether this should be a fix in the SDK, VS Code Runtime Ext, or CDK/C#. If you have more context on this issue, may you please advise? Thank you ;) |
We talked about it more; it looks like CDK has a |
@nagilson so where is the best place to file C# Dev Kit bugs? |
Here is good -- for the |
If that is not even a viable option, please let us know @marcpopMSFT |
To clarify, the original ask was for a settings that would control the location of the SDK used by C#DK. The existing setting is specific to the version of the runtime being used by the extension and does not apply to the SDK calls (builds, restores, tests, etc). I don't think we want individual teams in DK implementing ways of finding and honoring a flag. We don't have a way of specifying an alternative way of doing this outside of the PATH environment variable and per the linked issue, there is disagreement on what an alternative solution would look like. I think this is a reasonable ask but probably something that should be fixed by global.json rather than DK. |
Ok, I agree this is more of an SDK issue. Sorry. @kartheekp-ms my earlier comment was not a good idea, Like, you could change the behavior of just the restore command but I think then it would be disparate from all of the other commands. So, you would likely have to change the behavior for all of the commands, which is really just something that should be done in the SDK. This is the correct place for CDK feedback but this change should really be tracked in the SDK. |
Gotcha. Hopefully this is well-documented in the settings to avoid future confusion. |
I will close this since the SDK issue should be tracking this |
Describe the Issue
Errors like the following occur during restore:
Note that it is using the global dotnet SDK location instead of the one specified in
dotnet.dotnetPath
.It seems like the implementation of
dotnetCommand
does not take this setting into account.Steps To Reproduce
dotnet.dotnetPath
in workspace settings.Expected Behavior
NuGet restore should work without issue.
Environment Information
The text was updated successfully, but these errors were encountered: