Modify c# Windows Forms control library

I have a c# Windows Forms control library, but there is no sln file with it. I would like to modify this project, so I think I need an sln file to open it and create an other dll.

I tried a solution, but it did not work. I create a new c# Windows Forms control library, I named it as the original library name. I renamed the UserControl1.cs as the original mainfile name. I bult it, it has worked, yet.

After that I copied all of the .cs files from the original library to the new library. Of course overwrite the new files with the original files. I tried to build it again, but I got an error message: "dll does not contain any usercontrol types"

The original folder contains a __csproj.user file, but my new project does not contain it.

What did I wrong? How can I modify the original c# Windows Forms control library oe how can I create an sln file for it?

Upvotes: 0

Views: 321

Answers (1)

Sriram Sakthivel
Sriram Sakthivel

Reputation: 73442

If you don't have .sln file, that's fine visual studio will create it for you when you open a .csproj file and try to save the project.

All you have to do is open the .csproj file in visual studio and save it.

Upvotes: 1

Related Questions