I have a repo with code written in C# and I want to understand how we proceed with building the .dlls and finally reach to the final working application.
What I want to understand is which is the process/ logic we follow to build the final application. For example the repository has too many solutions inside the repository, how can I distinguish which is the first I need to build and do I have to follow a specific order?
Please let me know if you have any suggestions or tutorials, as I am new to this and I am trying to learn.
Thank you in advance.
CodePudding user response:
This is far too broad of a question to provide any kind of decent answer.
There's a plethora of tutorials and guides on the internet for how to start out in c# and VS 2022.
- On the Create New Project window, select the Windows Forms App (.NET Framework) template for C#.(If you like, you can refine your search to quickly find the template you want. For example, enter or type Windows Forms App in the search box. Next, select C# from the Language list, then Windows from the Platform list .)
- In the Configure New Project window, type or enter HelloWorld in the Project Name box. Then, choose Create.
Create an application
After you select the C# project template and name the file, Visual Studio opens a form for you. Forms are the Windows user interface. We'll create a "Hello World" application by adding controls to the form, and then run the application.
Add a button to the form
- Select Toolbox to open the Toolbox popup.(If you don't see the Toolbox pop-up option, you can open it from the menu bar. To do this, click View > Toolbox. Or press Ctrl Alt X.)
Select the Dock icon to dock the Toolbox window.
Select the button control and drag it onto the form.
- In the Properties window, find Text, change the name from Button1 to click it, and press Enter.(If you don't see the Properties window, you can open it from the menu bar. To do this, choose View > Properties Window. Or press F4. )
Add the code to the form
In the Form1.cs [Design] window, double-click the "Click this button" to open the Form1.cs window. (Alternatively, you can expand Form1.cs in Solution Explorer and select Form1.)
In the Form1.cs window, write the code: MessageBox.Show("Hello World"); as shown in the following picture:
Run the application: Select the Start button to run the application.
Close the Form1 dialog to stop the application from running.