-
Notifications
You must be signed in to change notification settings - Fork 676
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
Prompted to run restore every time a C# project is opened #1272
Comments
@DustinCampbell Cool. Any idea about the actual root cause? |
@DustinCampbell Related ... I use VSC to work on documentation projects that include .NET Core samples. When I open folders to work on sample files, these sample projects should not be restored/built. The extension keeps creating I'm aware of ... "csharp.suppressDotnetInstallWarning": true,
"csharp.suppressDotnetRestoreNotification": true, ... but those don't actually prevent the auto-restore/build behavior when I open a folder. |
@guardrex: Are the bin and obj folders empty? If so, this is because OmniSharp is simply using MSBuild to process the sample project. In other words, these folders will get created by MSBuild as part of its normal operation to resolve assembly references which OmniSharp uses to provide language service information. The settings you listed above won't affect this behavior and it isn't related to this particular issue. Could you track a separate issue for the problem you described? |
Sorry, I meant, could "file" a separate issue? |
@thecodejunkie: OmniSharp/omnisharp-roslyn#814 should handle most of the problem you were seeing here. With this fix I still see unresolved dependencies reported for two projects (which is much better than all projects 😄). My suspicion is that this is due to the package downgrade warnings that this project gets on restore. I'll dig a little deeper, but that may be harder to fix. |
OK. I've gotten this down to just one restore prompt. The situation here is that there's an implicit package reference in Nancy.Tests.Functional to Microsoft.NETCore.App, 1.0.4 that gets downgraded to 1.0.3. There's a similar issue in Nancy.Tests as well. However, the restore prompt doesn't appear because OmniSharp is assuming that the target framework of Nancy.Tests is |
Environment data
dotnet --info
output:VS Code version: 1.10.0-insider
C# Extension version: 1.8.0-beta
Platform: OSX
Steps to reproduce
Expected behavior
I should not be prompted about missing dependencies again
Actual behavior
I get prompted about missing dependencies again
The text was updated successfully, but these errors were encountered: