.netdotnet-clidotnet-build

dotnet CLI build : Display all build properties


I want display all available properties in dotnet build. I found a similar question, but about MSBuild :

I tried the solution to define the log level to diagnostic :

dotnet build --verbosity diagnostic

But it don't diplay the properties.


Solution

  • I don't know if this includes all the info you are looking for, but to get true diagnostic output out of dotnet build, I had to use the following:

    dotnet build --no-incremental -v diagnostic --tlp:default=false
    

    The argument --tlp:default=false was critical to override a different --tlp:default configuration that dotnet build usually gives to msbuild.