2019-8-31-How-to-output-the-target-message-in-dotnet-build-command-line
to in The 2019 How build Command 31
2023-09-27 14:28:53 时间
title | author | date | CreateTime | categories |
---|---|---|---|---|
How to output the target message in dotnet build command line |
lindexi |
2019-08-31 16:55:58 +0800 |
2019-4-24 20:2:18 +0800 |
dotnet |
How can I output my target message when I using dotnet build in command line.
I use command line to create a web api application.
dotnet new webapi -o Lindexi
Then I edit the Lindexi\Lindexi.csproj
and add the message.
<Target Name="Lindexi" BeforeTargets="CoreCompile">
<Message Text="Welcome to my blog" />
</Target>
I use the dotnet build
to build the application but I can not find the message.
I try to change the message to warning that I can find the text in output.
In dotnet command, the verbosity
can be set to verbosity level of the command.
The Allowed values are q[uiet]
, m[inimal]
, n[ormal]
, d[etailed]
, and diag[nostic]
.
The default value is minimal that do not print the target message. The lowest level of output message is normal command.
dotnet build -v n
相关文章
- Bao: Learning to Steer Query Optimizers 论文翻译
- Will vs Be Going To vs Present Continuous: Talk About the Future in English
- eclipse报错:unable to install breakpoint in .......due to missing line number attributes
- carthage bootstrap --platform iOS 报 SSL_ERROR_SYSCALL in connection to github.com:443
- cannot assign to 'self' outside of a method in the init family
- Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI" in the equal to operation.
- How to use Data Iterator in TensorFlow
- continue — Skip to the next iteration of a loop in a shell script
- MySQLdb in Python: “Can't connect to MySQL server on 'localhost'”
- How to tar a file in Linux using command line
- How to kill server when seeing “EADDRINUSE: address already in use”
- An Introduction to Stored Procedures in MySQL 5
- : AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the for
- After updating Android Studio to version 1.3.0 I am getting “NDK integration is deprecated in the current plugin” Error
- How to use OpenChatter in my addon
- [Windows Azure] How to use the Windows Azure Blob Storage Service in .NET
- 解决错误ERROR: No suitable Java found. In order to properly use the Android Developer Tools,…
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- 2019-8-31-How-to-use-code-to-exit-the-application-in-UWP
- How to use code to exit the application in UWP
- Message: 'chromedriver' executable needs to be in PATH