|
Well, it appears that VS2012s windows forms designer cannot cope with designing for s from the 3.5 framework if the base form is from another project. I found this with the SharpDevelop 3.2 source, which I am referencing for a project of mine, as I tried to view a form from inside vs.
VS states that the base type <<whatever>> cannot be loaded, but there are no errors in the code view, but there are hundreds of errors in the error list.
VS also highlights class names normally, but shows the blue error squiggle as well. The message states that the type cannot be found, but all other operations work correctly.
I really hope I don't have to go back to VS2010, as that is the last version that actually viewed forms correctly!
FAIL, M$!
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
You are talking about the XAML designer? If yes, then this thing has had its troubles ever since VS2008.
I have used WPF user controls as views for MVP (as in Model View Presenter). That made programs very portable between WinForms, WPF or any other UI. Merely the views had to be rewritten according to the UI I wanted to use in their own assemblies.
In the designer this should have simply been a matter of adding the assemblies and namespaces of the views in XAML and everything should have worked. It did not. If the namespace was xxx.project.views, then the designer would try to snoop through namespace xxx.project as well. There were no classes in that namespace, so the designer found nothing and complained about numerous things it did not find, not that it ever was told to look for them. Your problem sounds similar.
|
|
|
|
|
No, the windows forms designer.
EDIT: If a .net 3.5 project is created with VS12, the designer does not work at all! EPIC FAIL, M$!!!
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
modified 23-Nov-12 22:37pm.
|
|
|
|
|
Zac,
A recent fail bit my ass as well. I converted a project from 2010 to 2012. It compiled okay. I made a change to a form and then 2012 started spewing resource file errors. I deleted the 2012 project (thinking it was me that shafted it somehow) but the same thing happened. Eventually, I converted the project one last time. I added a new form and that was fine. I then added a standard button and bang, it failed with compile-time resource errors. Eventually, I placed all the UI in a 2010 project and called it from 2012. How fakkin' stoopid is that? I tried the same original conversion on another machine and it worked okay. Time was when a project would compile wherever you copied it. It seems that 2012 has a way to go to convince everyone it's worth crossing over to. Right now, I'll keep 2010 for the stuff that must compile and work. 2012 will be used for the things where I don't mind if it takes a while to workaround its internal problems.
"I do not have to forgive my enemies, I have had them all shot." — Ramón Maria Narváez (1800-68).
"I don't need to shoot my enemies, I don't have any." - Me (2012).
|
|
|
|
|
Now you see why I don't touch MS stuff until SP1.
Everything earlier is just Beta testing you have to pay for.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Fortunately, it was an MSDN download so not directly purchased. I too will have more confidence in it when SP1 is released.
"I do not have to forgive my enemies, I have had them all shot." — Ramón Maria Narváez (1800-68).
"I don't need to shoot my enemies, I don't have any." - Me (2012).
|
|
|
|
|
Haven't seen that one. Was it .NET or C++?
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
It was a direct import from one of my c# 2010 projects.
Another thing I noticed that when 2012 screwed up on the resource generation I was able to reopen the project in 2010 and all was well. I guess there was a reason known only to MS why developers would want to open a solution in 2010 after using 2012.
"I do not have to forgive my enemies, I have had them all shot." — Ramón Maria Narváez (1800-68).
"I don't need to shoot my enemies, I don't have any." - Me (2012).
|
|
|
|