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
rrelyea
changed the title
Set PackageSpec.Version for CPS projects
Correctly communicate PackageSpec.Version for any project dependencies (PackageRef xplat)
Jan 9, 2017
ResolvesNuGet/Home#3901.
Acquire package version property for a .NET Core project from the
`IVsProjectRestoreInfo` as provided via the Nominate API call.
Although the `$(PackageVersion)` property shouldn't differ between
different TFMs current API design assumes all project properties will be
evaluated per each TFM.
As a result `SolutionRestoreService` expects to get the
same value of package version defined in each TFM property bag.
Otherwise `InvalidOperationException` will be thrown.
ResolvesNuGet/Home#3901.
Acquire package version property for a .NET Core project from the
`IVsProjectRestoreInfo` as provided via the Nominate API call.
Although the `$(PackageVersion)` property shouldn't differ between
different TFMs current API design assumes all project properties will be
evaluated per each TFM.
As a result `SolutionRestoreService` expects to get the
same value of package version defined in each TFM property bag.
Otherwise `InvalidOperationException` will be thrown.
The CPS project system should set the PackageSpec version for a project based on:
PackageVersion
if it existsVersion
if it exists1.0.0
otherwiseThis matches the pack and NuGet.targets behavior for determining a package version.
The version string must be valid, otherwise this should fail with a helpful error.
Original issue:
#3748
The text was updated successfully, but these errors were encountered: