You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Packages like .UserSecrets and .FileProviders.Embedded bundle some MSBuild targets which are essential to make some API function correctly. A repeated problem customers have with this is detailing with transitive references across ProjectReferences. Today, users must add a direct PackageReference to each and every project that uses these.
This is about attributing the ProjectReference or the PackageReference items with the right metadata so that they flow transitively. I don't think this is per se an infra issue.
Given the usage in UserSecrets requires the project to add a property to actually use it I don't think it makes sense to apply those targets transitively. If folks want to use that functionality they can directly reference the package as they do today. Closing this as won't fix.
Activity
maryamariyan commentedon Oct 21, 2020
Seems like an infra issue.
cc: @ericstj @safern
ViktorHofer commentedon Oct 21, 2020
This is about attributing the ProjectReference or the PackageReference items with the right metadata so that they flow transitively. I don't think this is per se an infra issue.
ViktorHofer commentedon Oct 21, 2020
@ericstj do you think this would require work in the pkgproj infra?
ericstj commentedon Oct 22, 2020
No work needed in infra to support this. The fix is to simply move the props/targets from
buildtobuildTransitivefolder. https://github.com/NuGet/Home/wiki/Allow-package--authors-to-define-build-assets-transitive-behaviorSeems like a good one to do at the start of 6.0.
ericstj commentedon Oct 22, 2020
Looks like this would only apply to
Microsoft.Extensions.Configuration.UserSecretsin dotnet/runtime.https://github.com/dotnet/runtime/tree/master/src/libraries/Microsoft.Extensions.Configuration.UserSecrets/src/build/netstandard2.0
runtime/src/libraries/Microsoft.Extensions.Configuration.UserSecrets/pkg/Microsoft.Extensions.Configuration.UserSecrets.pkgproj
Line 7 in c6bf8eb
Microsoft.Extensions.FileProviders.Embeddedis in aspnetcore.ericstj commentedon Jul 23, 2021
Given the usage in UserSecrets requires the project to add a property to actually use it I don't think it makes sense to apply those targets transitively. If folks want to use that functionality they can directly reference the package as they do today. Closing this as won't fix.