In DotNetCLIWrapper.cs, please change "dotnet publish PROJECT" to "dotnet publish SOLUTION" #320
SailAwayWine
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
dotnet publish will fail if the project folder contains more than one project file (.csproj, .vbproj, or .fsproj), which can occur in certain mixed-language development situations.
By changing the publish parameter to the solution file (.sln), dotnet publish will execute without error.
Current code:
arguments.Append($" \"{Utilities.DetermineProjectLocation(this._workingDirectory, projectLocation)}\"");
Proposed code:
arguments.Append($" \"{Utilities.DetermineProjectLocation(this._workingDirectory, projectLocation)}\".sln");
Beta Was this translation helpful? Give feedback.
All reactions