Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMechanism for supplying runtime.json outside of a package #7351
Comments
This comment has been minimized.
This comment has been minimized.
Downsides of current workaround (referencing platform package implicitly if there are any other package references):
|
This comment has been minimized.
This comment has been minimized.
Probably we would use an MSBuild property instead of an item for this, as that wouldn't require nomination API changes. |
This comment has been minimized.
This comment has been minimized.
The idea is to use a property to avoid nomination changes. It can be a semicolon delimited property similar to TargetFrameworks for example. I will create a short spec on this. |
This comment has been minimized.
This comment has been minimized.
Update the issue body with link to the spec. |
This comment has been minimized.
This comment has been minimized.
Project system bug: dotnet/project-system#4951 |
This comment has been minimized.
This comment has been minimized.
Noticed a bunch of regression and need some help:
I would be fine to change things around, so maybe you have some recommendation/other way to achieve this and keep the old way (which is still supposed to be supported for .NET Core 2 from what I understood)? |
This comment has been minimized.
This comment has been minimized.
Not sure if this is enabled in 2.x, @nguerrera, @dsplaisted will know. Can you clarify what you are seeing when it fails? The assets file will have all the info about what nuget "thinks" exists, and it should be on a per framework basis. |
This comment has been minimized.
This comment has been minimized.
Never mind, I think it might have been due to something else. |
In Core 3.0, the platform will not be represented as a traditional nuget package. As such, there's no obvious place for the RID graph to be supplied to NuGet.
For (2), the feature request here would be to have msbuild items that specify runtime.json files on disk to use during restore.
Something like
It's a separate question as to how the SDK will locate runtime.json for (1), but once we do that, we can then just pass it in to restore if we had this feature.
Update by @nkolev92
Spec