【问题标题】:dotnet publish multipe csproj in one timedotnet 一次发布多个 csproj
【发布时间】:2020-08-04 07:49:58
【问题描述】:

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

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

我想编写一个特定的 dotnet publish 命令来仅发布包含 IIS 网站项目的身份验证文件夹。 有什么解决办法吗?

【问题讨论】:

  • 这是 .NET Core 吗?

标签: c# .net publish csproj


【解决方案1】:

您可以使用dotnet publish <Path to your .csproj>。它将仅构建和发布指定的项目和它所依赖的项目。

【讨论】:

  • 假设 OP 正在谈论 .NET Core。否则可能需要使用msbuild
猜你喜欢
  • 2021-08-26
  • 2023-02-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-09-24
  • 1970-01-01
相关资源
最近更新 更多