-
Notifications
You must be signed in to change notification settings - Fork 391
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
Project with overloaded TargetFrameworks property fails to load #6206
Comments
Possibly related to #6203? cc @drewnoakes |
Sure. IIRC, the TargetFramework/s properties are "user-facing" ones which should never be validated. The sdk team is considering allowing any random input to make multi-targeting easier. cc @dsplaisted @ericstj |
Yes, in most cases the project system (and other components) should not read the There will probably be a lot of onion peeling to fix this entirely. See NuGet/Home#5154 and https://github.com/dotnet/project-system/blob/master/docs/repo/coding-conventions.md#data for more context. |
We are tracking proper handling of implicit configurations (i.e. dimensions such as target framework) in #6183 which I believe will help here by leaning on CPS's logic for handling such dimensions rather than duplicating it (incorrectly) in the dependencies node. |
Visual Studio Version:
Version 16.7.0 Preview 1.0 [30022.13.master]
Summary:
When opening https://github.com/dotnet/runtime/blob/master/src/libraries/System.Private.Xml/src/System.Private.Xml.csproj in VS (16.7 P1) I get the following error:
VsProjectFault_0d8d4bb6-1033-44ff-8927-b8559ebf600c.failure.txt
Steps to Reproduce:
Clone https://github.com/dotnet/runtime
Build: .\build.cmd clr.corelib+libs
Open
src/libraries/System.Private.Xml/src/System.Private.Xml.csproj
Expected Behavior:
No errors.
Actual Behavior:
User Impact:
Project fails to load, VS is unusable.
cc @davkean
The text was updated successfully, but these errors were encountered: