2 - Building GTK# (GTK3 / C# / Glade / Visual Studio Code)

A Place to discuss programming languages, APIs and software development
Post Reply
User avatar
ZerOne
Site Admin
Posts: 117
Joined: Sun Dec 13, 2020 8:21 am

This Topic Covers how to compile and run your first GTK3 / C# project generated from the previous part 1 Topic (For Linux or Mac OSX)

1) Open Visual Studio Code

2) Open the project generated previously when the xx command was executed

3) Edit the the xxxxxx.csproj file

4) Change the <TargetFramework>netx.0</TargetFramework> to read the following
<TargetFramework>net9.0</TargetFramework> (Or use the net Framework that you currently have installed)

5) Click on the Terminal menu option, and select new terminal (Located at the top of the screen)
A new terminal window will now be displayed

6) Enter the following command in the terminal window

Code: Select all

dotnet build
The Project will be built, with any warnings or error messages being displayed

7) 6) Enter the following command in the terminal window

Code: Select all

dotnet run
The Project will be Executed, and displayed in a new window.
Post Reply

Return to “Programming and API Forums”