C# dotnet一次发布多个csproj

C# dotnet一次发布多个csproj,c#,.net,publish,csproj,C#,.net,Publish,Csproj,我有一个包含多个项目的解决方案,如: Solution.Sln ---> Authentication (folder) -------> API.csproj -------> Service.csproj -------> Entity.csproj -------> Others.csproj ---> Common (folder) ---> Finance (folder) -------> API.csproj ------->

我有一个包含多个项目的解决方案,如:

Solution.Sln
---> Authentication (folder)
-------> API.csproj
-------> Service.csproj
-------> Entity.csproj
-------> Others.csproj
---> Common (folder)
---> Finance (folder)
-------> API.csproj
-------> Service.csproj
-------> Entity.csproj
-------> Others.csproj
---> Others (folder)
-------> API.csproj
-------> Service.csproj
-------> Entity.csproj
-------> Others.csproj
我想编写一个特定的dotnetpublish命令,只发布包含IIS网站项目的身份验证文件夹。
有什么解决方案吗?

您可以使用
dotnet publish
。它将只生成和发布指定的项目及其所依赖的项目。

您可以使用
dotnet publish
。它将只生成和发布指定的项目以及它所依赖的项目。

这是.NET Core吗?这是.NET Core吗?假设OP谈论的是.NET Core。否则,您可能需要使用
msbuild
,假设OP谈论的是.NET核心。否则可能需要使用
msbuild