Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a C# project without the project file?

I have an C# source code of some software my company is using. This source code contains .xaml, .cs files, and one: App.config, packages.config. However there is no main project file that I can open in Visual Studio.

The original source code can not be found, and the programmer who made it has left the company long ago.

My question is - can I open such a project in C# somehow, without the main project file, so that I could make some changes and compile this application?

like image 240
M_per Avatar asked Oct 16 '25 00:10

M_per


2 Answers

Just create a new WPF application project and add the existing files.

like image 185
CodeCaster Avatar answered Oct 17 '25 14:10

CodeCaster


You can compile the code using the c# compiler csc (which you can find in the .NET Framework installation folder), or just create a new project in Visual studio and add the WPF files to it. The last option is the easiest one.

like image 35
Patrick Hofman Avatar answered Oct 17 '25 13:10

Patrick Hofman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!