-
Notifications
You must be signed in to change notification settings - Fork 677
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
'dotnet: Restore Packages' VS Code command does not work #1175
Comments
Hi @MiKom -- a few things:
You should be able to get your project working in VS Code by doing the following:
Then, open the folder in Visual Studio Code. |
@DustinCampbell For when is the 1.7 release approximatly planned? Since I updated my project files to support the VS2017 version of the .NET core SDK the Visual Studio extension does not work properly anymore (can't find various type references). I'm now interested whether I should just wait for the next release or try the beta. |
We're working on it as fast as we can, but it'll likely be a couple of weeks yet. I'd recommend using the latest beta in the meantime. |
The "Restore Packages" command is now fixed. |
@DustinCampbell Thanks for the feedback. As waiting a couple of weeks to get it working again is too long I tried the beta release. And Intellisense and code errors now work correctly again! Maybe it's worth it to release what's currently available a little bit earlier, since lots of other users might also have upgraded to the newest VS2017 release, which requires a .csproj file update, which then in turn makes it incompatible with the latest omnisharp-vscode release. |
I'd love some information on the csproj update that is breaking it with the latest beta of C# for Visual Studio Code. The C# extension should be in lock-step with the VS 2017 RC3 now. Could you file a separate issue for that? Aside: |
installed extension using
|
Did you uninstall the previous version of the extension first? I recommend following these instructions as that process works around this VS Code bug. |
@DustinCampbell - thanks! I did somethingclose Command Palette has "Install from VSIX" as well. However appears to not do the same as the ... from the extension panel?? Bug? |
The important point is uninstalling the old extension first. There is a known issue in VS Code where installing an extension from a VSIX will not necessarily uninstall the previous version in all cases. Even worse, VS Code will look like it has the newer extension installed but load the older one. You can check Also, could you file a separate issue for this rather than piling onto an unrelated closed issue? Thanks! |
Environment data
dotnet --info
output:.Net core installer downloaded from: https://github.com/dotnet/core/blob/master/release-notes/rc3-download.md
VS Code version: 1.9.0 64-bit (on Windows 10 Pro 1607)
C# Extension version: 1.6.2, 1.7.0-beta2
Steps to reproduce
mvc5.zip
Project was created by running
dotnet new -t web1.1
Expected behavior
Actual behavior
Restore is not done, no namespaces are resolved. OmniSharp produces the following output:
Manually running Ctrl+Shift+p and typing
dotnet restore
results in:The text was updated successfully, but these errors were encountered: