dotnet 在build restore publish 的时候不显示警告

时间:2023-11-13 21:16:26

dotnet restore -nowarn:msb3202,nu1503,cs1591

dotnet build -nowarn:msb3202,nu1503,cs1591 --no-restore -c Release -o /app

dotnet publish -nowarn:msb3202,nu1503,cs1591 --no-restore -c Release -o /app

如上述代码,在restore build publish 后面直接加上 -nowarn:msb3202,nu1503,cs1591

这些类型的警告就不在显示了
---------------------
作者:mengchentj
来源:****
原文:https://blog.****.net/ujm097/article/details/81353893
版权声明:本文为博主原创文章,转载请附上博文链接!