sdk icon indicating copy to clipboard operation
sdk copied to clipboard

dotnet publish --runtime RID should print a good error message if the RID hasn't been restored

Open jgoshi opened this issue 10 years ago • 1 comments

If the RID hasn't been restored, we should raise an error is raised telling you to add the RID to the .csproj and run restore again.

See the following issue for more context: https://github.com/NuGet/Home/issues/3768#issuecomment-256164196

jgoshi avatar Oct 26 '16 19:10 jgoshi

This also happens if you pass an invalid rid. It simply fails with a restore hasn't happened error.

dotnet publish -r "non_existent_rid"

livarcocc avatar Jan 07 '17 04:01 livarcocc