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
{{ message }}
Repository navigation
NuGet friendly names -> framework names should be statically calculated #30
We want to use NuGet friendly names as part of the user-visible TFMs of the project file. Original proposal was to use a target to convert from them -> TFMs, however, that will cause no end of trouble for things that already expect TFMs to be static (common targets) and VS which will require a (slow) design-time build just to figure out what the real TFM is.
Instead we should see if we can come up with a mechanism where we can declare this statically use a series of properties + conditions and have it statically available.
I have a strategy that can work for short TFMs of the form <name><version>, but not for PLIB profiles of the form <name1><version1>+...+<nameN><versionN>. To what extent do we need to support targeting these profiles with our sdk? Would it be acceptable if I assigned one canonical spelling to each PLIB profile and only recognized that exact spelling? i.e. no reordering of platforms or various other equivalences?
I think project.json just pointed to the profiles themselves to build these, ie I don't think we need to support it - as long as there's a way to target just using the full name.
Activity
srivatsn commentedon Aug 19, 2016
@nguerrera - you'll need this for supporting cross-targeting
nguerrera commentedon Aug 19, 2016
Perhaps we can generate the static logic rather than hand-authoring a copy of the mapping in msbuild xml.
nguerrera commentedon Aug 22, 2016
Where is the source of truth for these mappings?
eerhardt commentedon Aug 22, 2016
The best thing I know of is in NuGet. See the following PR that added 'netcoreapp1.0'.
https://github.com/NuGet/NuGet.Client/pull/361/files
nguerrera commentedon Sep 2, 2016
I have a strategy that can work for short TFMs of the form
<name><version>, but not for PLIB profiles of the form<name1><version1>+...+<nameN><versionN>. To what extent do we need to support targeting these profiles with our sdk? Would it be acceptable if I assigned one canonical spelling to each PLIB profile and only recognized that exact spelling? i.e. no reordering of platforms or various other equivalences?@davkean
davkean commentedon Sep 2, 2016
I think project.json just pointed to the profiles themselves to build these, ie I don't think we need to support it - as long as there's a way to target just using the full name.
abpiskunov commentedon Sep 2, 2016
sdk already references nuget assemblies, why not use Nuget API for all framework names manipulations?
nguerrera commentedon Sep 2, 2016
Hmm, supporting both full names and short names complicates things, but I think I can manage it.
So, we support either "net45" or ".NETFramework,Version=v4.5", etc. for "netstandard" and a bunch more.
but if you want to target a portable profile you have to use the long form ".NETFramework,Version=v4.5,Profile=Profile1"?
nguerrera commentedon Sep 2, 2016
@abpiskunov Because the goal here is to be able to get the target frameworks during static evaluation.
nguerrera commentedon Sep 2, 2016
Does anyone have a pointer to a project.json using a PLIB profile?
nguerrera commentedon Sep 2, 2016
Found one: https://github.com/aspnet/EntityFramework/pull/252/files
Merge pull request dotnet#30 from aspnet/PackageRename
ohos-install: re-anchor the workload bundle digest (kit dotnet#30)
ohos-install: read the SDK arch helpers from their stage-4 owner