Docs: Insufficient information to run command to add external alias

Created on 3 Apr 2019  Â·  3Comments  Â·  Source: dotnet/docs

The document says to use /r:GridV1=grid.dll at a command line. This left me wondering the following:

  • What command line are we using here? E.g., powershell, cmd, something visual studio specific?
  • /r looks like an parameter for a command, but what command?

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - C# Guide Technology - C# Language Reference P1 doc-enhancement

Most helpful comment

Thanks for bringing this to our attention @skylerberg And for the helpful suggestion @svick

We should also include how to do this via the dotnet build command.

All 3 comments

First, to answer your questions:

What command line are we using here? E.g., powershell, cmd, something visual studio specific?

It does not matter, all of the above should work, as long as you can access the command.

/r looks like an parameter for a command, but what command?

csc, the C# compiler.

That being said, the documentation should definitely be clarified to explain that it's talking about csc.

Also, since most people don't use csc directly, it should explain how to do the same thing from Visual Studio by editing .csproj.

@svick, Thanks for the quick response! I agree that instructions for editing a .csproj file would be most helpful.

Thanks for bringing this to our attention @skylerberg And for the helpful suggestion @svick

We should also include how to do this via the dotnet build command.

Was this page helpful?
0 / 5 - 0 ratings