last day (14 days later) » 

9:21 AM
0
A: Modify c# Windows Forms control library

Sriram SakthivelIf 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.

 
I got the .sln file, but the error message remained unfortunately. (Otherwise, if I add the original project to an other solution to use the form control it works correctly)
 
@SzilviaLázár You said you don't have the .sln file for the old project? Do you have .csproj file for old project? I'm not talking about new project you created.
 
In the old project I did not have .sln, but I have .csproj. As you write, I saved the project, and after that I got the .sln file. But the error message remained. I don't know why do I get this error message.
 
What is the error message? dll does not contain any usercontrol types?
 
Yes! This is my error message.
 
9:21 AM
That means your project doesn't have any UserControl. If your project type is user control library you need atleast one user control. Otherwise you need to use class libray project rather than control library
 
If I don't create a new project, I only open the original project by the csporj file or the sln file, I get this errormessage, too.
 
Am sure there is a way you can get rid of this error
Can't remember from top of my head
I'll get back if I find , or feel free to ask new question
alternatively you can try googling with the error, there must be a solution'
 
I try to solve this problem in paralell with you by google or my tryings, too.
Thank you for your help!
 
9:40 AM
You get the exception while running the project?
Edit your csproj file with notepad, find <Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" /> node at the last, remove it. Take a backup before you do
You can't run a class library then, You need to refer it in executable project to run it
 
I got the exception when I tried to make the library file.
 
you mean building? or when you start f5?
Press f6 or goto build menu->build solution
dll file should be created without any problem.
 
9:56 AM
Before you write this, a found the problem.
It was my fault, I had to rebuild instead of run.
Thank you! :D
 
welcome
 

last day (14 days later) »