[C# compiles linux executable program] C# compiles linux executable program under visual studio 2022

The development software used here is visual studio 2022 community edition

C# compiles linux executable program under visual studio 2022

Open the Solution Explorer, right-click the project, and select Publish

insert image description here

On the release page, click inside the red box to modify:

insert image description here

Select runtime: select linux-x64

(The target framework selects the previously installed dotnet version) Install and run the C# (dotnet) program environment under linux

insert image description here
Click Publish to create an executable program under linux. After the executable file is placed on linux, remember to add permissions

chmod 755 XXX

Guess you like

Origin blog.csdn.net/Little_Matches/article/details/131262711
Recommended