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

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

这些类型的警告就不在显示了

猜你喜欢

转载自blog.csdn.net/ujm097/article/details/81353893