-
Notifications
You must be signed in to change notification settings - Fork 255
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
Unexpected build assets picked for net5.0-windows #10418
Comments
Yes it should be. NuGet Package Explorer doesn't show This looks like to be intentional. They explicit sets Can there be any indications to force |
Alright, so I'm not really sure where this issue is coming from, but I know it's somewhere in the restore while creating the Reactive package. I found this in the binlog: Which suggests this is what's causing this to happen: So... this seems to run pretty deep, and the only clue I have at this point is that this is happening through the inclusion of some other package that's forcing it, or it's a bug in dotnet/msbuild or something? /cc @nkolev92 @zivkan in case this rings a bell and they know how to follow the thread further. |
This should be the package requiring reference in unfriendly form. NuGet is working correctly here. |
@zkat if you wanted to find where
Having frameworkReferences be defined in the package so that consuming projects get it as well made sense in netcoreapp3.1 where there weren't separate TFMs for "desktop" and "console" apps, but it makes less sense with net5.0 and later. On the other hand, perhaps the WPF and WinUI teams need to take this into account and improve their SDKs to take into account how NuGet works and how customers expect to use packages. I don't know if you had intended to follow up with partner teams to improve customer experience, or just trying to figure out if there was a NuGet bug or not. As the customer mentioned, NuGet is working as designed (frameworkReference was designed for .NET Core 3.x).
@huoyaoyuan no, but there's a feature request for this that you could upvote (👍). |
Details about Problem
NuGet product used: Visual Studio
VS version (if appropriate): 16.8.3/16.9P2
OS version (i.e. win10 v1607 (14393.321)): 19042
Worked before? N/A
Detailed repro steps so we can see the same problem
Context: dotnet/reactive#1461
Package: System.Reactive 5.0.0
The package structure:
When installing into
net5.0-windows10.0.18362
,lib\net5.0
andbuild\net5.0
are selected, as expected. But when installing intonet5.0-windows10.0.19041
,lib\net5.0-windows10.0.19041
is selected withbuild\netcoreapp3.1
, results in incompatible behavior.lib\net5.0-windows10.0.19041
is expected to work withbuild\net5.0
.Please confirm if this is a bug, or a counter-intuitive behavior.
Note: the VS project system UI doesn't show the targets from
build\netcoreapp3.1
, but displays a warning icon.WinUI project can only be built with VS build, not
dotnet build
.The text was updated successfully, but these errors were encountered: