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
NuGet.targets sets the value of the _ProjectRestoreType property based on how package references are expressed. However, the values of the property currently refer to what the project is targeting, which may not correspond to how package references are expressed. For example, it's possible to use PackageReference with .NET Framework projects, but the value of _PackageRestoreType would be NETCore.
So I suggest considering changing UAP to ProjectJson and NETCore to PackageReference.
The text was updated successfully, but these errors were encountered:
See #4046. In the .NET SDK, we want the project restore type to be .NET Core, even if there aren't any PackageReferences in the project, so that we get the transitive package references from referenced projects. Right now we do this by injecting a target
NuGet.targets
sets the value of the_ProjectRestoreType
property based on how package references are expressed. However, the values of the property currently refer to what the project is targeting, which may not correspond to how package references are expressed. For example, it's possible to usePackageReference
with .NET Framework projects, but the value of_PackageRestoreType
would beNETCore
.So I suggest considering changing
UAP
toProjectJson
andNETCore
toPackageReference
.The text was updated successfully, but these errors were encountered: