dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.73k stars 1.07k forks source link

Let me define the path to built assemblies for dotnet `publish --no-build` #43747

Open voroninp opened 1 month ago

voroninp commented 1 month ago

I want to run the following commands:

dotnet build Proj -c Release -o /binaries
dotnet publish Proj -c Release --no-build -o /published-app --build-output /binaries

Yet there's no --build-output option for dotnet-publish. How do I tell the command where to find the built files when I specify --no-build?

Just now publish fails.