-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PackageReference with condition not being referenced by child project when multi-targeting #16611
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
It looks like you're package reference is conditioned on netstandard2.0 but the child project is not targeting netstandard2.1, so I would expect that this is the cause. If not, can you provide a binlog reproducing the issue? |
With SetTargetFramework I assume Attached with a repro-able example as well as its binlog: Repro.zip |
@yhvicey Any available solution now? In my case in dotnet/msbuild#8405, Main project do reference the output assembly of correct TFM from Child project, but the files that are copied to local are faulty. I think crew members fixed the reference bug but other tasks in MSBuild were not changed compatibly. |
To supplement the info from @sanmuru - the |
This falls into scope of nuget - opening issue there: NuGet/Home#12436 |
Imaging there're two projects,
Primary
andPrimary.Child
:And
Microsoft.CSharp
package (and its assemblies) is not being referenced when buildingPrimary.Child.csproj (net472)
referencingPrimary.csproj (netstandard2.0)
:The text was updated successfully, but these errors were encountered: