It is critical that Restore operates on a solution, not a project for:
As such, today it needs to be run before build.
Ideally, we could make it part of build-however, msbuild limitations may make that difficult if not impossible.
Our options:
1) keep it two pass
a) and run it before build like: "dotnet restore"
b) or run it before build like: msbuild /t:restore and then msbuild /t:build
2) figure out a way to make it 1 pass and enable msbuild foo.sln or msbuild bar.csproj to just work properly with solution level restore.
This should be possible with MSBuild - see http://sedodream.com/2010/10/22/MSBuildExtendingTheSolutionBuild.aspx
Thanks!!!! We were literally in a meeting discussing this when we saw your comment come in :)
This has been added for CLI MSBuild, it still needs to be added to desktop MSBuild
is the appropriate issue opened in sdk or cli or ???, to take it from here?
@rrelyea CLI work is done, this just needs to go into the desktop MSBuild now.
internal bug # 280293
Verified fixed
Most helpful comment
This should be possible with MSBuild - see http://sedodream.com/2010/10/22/MSBuildExtendingTheSolutionBuild.aspx