Mathew O'Dwyer
Mathew O'Dwyer

Reputation: 307

Compiling .NET Core application in VS Community (Different runtimes)

I've been working on a program in .NET Core using VS Code, however I'm really getting over VS Code and want to move back to visual studio, however one thing that is stopping me is I have no idea how to compile for different runtimes, in VS Code I would just type in the terminal something like this:

dotnet build -c Debug -r linux-x64

but I have no idea how to do this using VS Community. If someone could help me out that would be great.

Upvotes: 3

Views: 77

Answers (1)

Matt F
Matt F

Reputation: 101

Right click on your project and select Publish or alternatively select the Build tab and select Publish <ProjectName>.

From there you can select the Target Location, Configuration, Target Framework and the Target Runtime.

enter image description here

Upvotes: 2

Related Questions