Add Support: Enable installing Full .Net Framework from within netstandad 2 ,netcore 2 library project by option #5977
Labels
Functionality:Install
The install command in VS/nuget.exe
Resolution:ByDesign
This issue appears to be ByDesign
Style:PackageReference
Type:Feature
Milestone
Scenario:
With the release of netcore2, netstandard2, we can reference from within these projects any full framework package in disk (dll) and gain of the 70% of available nuget package which is net45 ready.
As an example, for a nuget package named "nuget_package" having net40, net45 and netstandard1.3, the net45 is a full feature package and netstandard1.3 is a less feature one and we want to add net45 (the full feature) to our netstandard2/netcore2 library project.
when we run the command:
nuget install the nearest compatible library which is netstandard1.3 and add the following xml entry to the csproj:
To get all feature of net45 package which isn't in netstandard1.3, We have to uninstall the package and reference manually the net45 by browsing to the dll location of net45 package in disk.
My Suggestion:
Add an option in the
PackageReference
, e.g.TFM
which enable installing the net45 with its dependency in these projectssomething like:
Modify the command by adding TFM option:
TFM values: net45, net46 , net461 (which cover API surface of netstandard2/netcore2)
In this way:
-Gain from 70% of the available nuget package which cover same API of netstandard2 but not migrated yet.
-Avoid manual installation of the package.
Insure the transitive dependency in deps.json file.
You can provide the warning "This package may not be fully compatible with your project"
Why we need this scenario
Quote from Announcing .NET Core 2.0
The text was updated successfully, but these errors were encountered: