0

您好,我正在尝试在具有多个项目的项目中运行dotnet -c Release [sourcepath] --output [destination]一个项目。.sln解决方案的文件结构如下:

 RootFolder
     -.sln
      Folder1
         - Csproj1
      Folder2
         - Csproj2   //i want to publish this one (lets say ipotetically)

当我运行时,dotnet publish -c Release [path]/RootFolder/folder1 --output [destination]我不断收到错误:

错误

Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1008: Only one project can be specified.
Switch: Release

For switch syntax, type "MSBuild /help"
4

0 回答 0