Allow NuGet MSBuild SDK import in solution metaproj #5832
Labels
Area: Solution (.sln)
Issues related to parsing .sln files or building solutions
For consideration
Used for items on the backlog to raise them to the top of that list for discussion
Partner request
triaged
Background
Since 15.0, NuGet restore has been integrated into MSBuild. The way it works is that NuGet.targets is imported by default, which defined the
Restore
target. There's more to it than that, but that's all that's relevant for this request. This happens not only for projects, but also the solution metaproj, allowing restore to run on the solution, not just on projects individually.Use case
NuGet would like the ability to ship experimental features out-of-band and iterate more quickly than waiting for VS/.NET SDK shipping cycles. We can do this today for individual project restores using a MSBuild SDK, that causes NuGet.targets to be loaded from the package instead of from MSBuild's default location. I'm looking for a solution for solution restore.
Feature request/repro
I'd like to be able to have a
Directory.Solution.props
orDirectory.Solution.targets
with<Sdk Name="NuGet.Experimental.Feature.Sdk" Version="0.0.1" />
, so that adotnet restore my.sln
will load the props/targets from my package in the solution metaproj.Actual
If I try this today, the
<Sdk
element seems to be silently ignored. It doesn't import anything, but also no error.The text was updated successfully, but these errors were encountered: