-
Notifications
You must be signed in to change notification settings - Fork 385
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
Editing csproj with invalid SDKs results in multiple error dialogs #3240
Comments
To be honest, I have never seen the |
Yes its just a better way of specifying a version Identitical: <Project Sdk="My.Custom.Sdk/1.0.0">
</Project> <Project>
<Sdk Name="My.Custom.Sdk" Version="1.0.0" />
</Project> More info is here: https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-use-project-sdk |
Debugging this it appears If not, my only other idea is to veto changes to the Sdk and ask the user to reload the project. @sharwell do you have an example of the edit you did to a targets file that caused so many dialogs? We should display only 1 dialog, if we are displaying multiple that is pretty bad. |
That seems odd to me. The |
Yes, CPS projects include all 3 of those flags, but |
Yeah definitely. We just discussed this and it makes total sense for us to not throw an fyi @AndyGerlicher |
The full exception is:
|
…noreMissingImports is specified Related to dotnet/project-system#3240
PR is sent, we'll take the bug to shiproom for approval |
Thanks @jeffkl - resolving this as external. |
…noreMissingImports is specified (#2991) * Do not throw an InvalidProjectFileException if ProjectLoadSettings.IgnoreMissingImports is specified Related to dotnet/project-system#3240
Not sure if this is a project system or VS issue.
Steps to reproduce:
Expected:
Warn only once when the project becomes unloadable. Don't warn when it is valid again.
The text was updated successfully, but these errors were encountered: