Reputation: 237
here I want to ask about how we do dotnet publish when you are using .net core 3.1
I have try this :
dotnet build project.sln /nologo /p:configuration="release" .....
And this :
dotnet publish project.sln /nologo /p:configuration="release" ....
I found that way in another question of stackoverflow, but it give me error. Hope there are someone help me to resolve this. Thankyou
Upvotes: 0
Views: 2933
Reputation: 2567
You can use following command to publish your dotnet core solution
dotnet publish Your_Solution.sln -c Release -o "OUTPUT_DIR_PATH"
Execute this command in the root dir of your solution.
For complete list of available parameters of dotnet publish
command visit this link
Upvotes: 3