NUnit for C# 
Tuesday, June 7, 2005, 12:00 AM - Programming
NUnit rocks! 'Nuff said.

[ add comment ]   |  permalink  |   ( 2.9 / 119 )
.Net, C#, and Visual Studio - Duplicate Declaration of Member Location 
Saturday, March 19, 2005, 12:00 AM - Programming
Problem:
I get this error message: "Duplicate declaration of member 'location'"

Longer description:
When I try to pull up a form in design view, all the controls show up in the top-left corner of the form, and the error message appears in the task list. The form itself is not all that complicated.

Cause:
Beats me, but I read somewhere something about a race condition with compiling versus bringing up the form. Also, I found a hotfix from Microsoft, but it looks like it is only for when the error occurs when you are opening a solution. Also, it says it is for Japanese version only... Well, that doesn't help me...

Fix:
I fixed the problem by deleting all the intermediate files (.dll and other binaries) and restarting visual studio. Good luck.

Additional Notes:
(2005-Apr-28):
At least one other person who received this problem was not able to solve it by simply deleting all the .dll files. They were using source control, and after a clean checkout, things worked fine. This leads me to believe that possibly the .csproj.user and/or .suo files are also partly to blame. That's also what the microsoft workaround would seem to suggest.

[ 1 comment ] ( 538 views )   |  permalink  |   ( 3 / 142 )

Back