0

Hello i am trying to run dotnet -c Release [sourcepath] --output [destination] a project in a .sln that has multiple projects. The file-structure of the solution is like this:

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

When i am running dotnet publish -c Release [path]/RootFolder/folder1 --output [destination] i keep getting the error:

Error:

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"
3
  • For me it does not happen. Maybe you will show us the csproj files. Commented Jan 15, 2019 at 9:26
  • did you ever solve this i have the same issue Commented Mar 13, 2019 at 8:50
  • Yes i solved it using this extension Commented Mar 13, 2019 at 8:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.