We help IT Professionals succeed at work.

Compiling a 1.1.4322SP1 Class Library with VS2005

msiedle
msiedle asked
on
755 Views
Last Modified: 2008-01-09
Hi all

I'm developing a class library for a web app that uses a server with support for .NET 1.1.4322 ...and I've made my code successfully compile in VS2005 using .NET2 references, but then of course I found that my resulting DLLs were 'broken' when I tried using them on the server ...so I changed the references to all .NET1.1.4322 and suddenly I got 3 build errors to auto-generated vb files:

'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel' - Resources.Designer.vb 10
'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel' - Resources.Designer.vb 10
'EditorBrowsableAttribute' is ambiguous in the namespace 'System.ComponentModel' - System.Designer.vb 6

Anyone got any ideas on how I can fix this, or what's causing the problem?

 ...aside from converting to a .NET2 server :-)

Thanks
Mark
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Hi Bob

Using VB.NET

I took out every class file and replaced it with this one class to test

Public Class Class1
    Private test_id As String
End Class

...with no imports other than references and imported namespaces within VS:

I try to build and get the same 3 errors as with my other classes

Cheers
Mark
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
What references do you have?

Bob

Author

Commented:
I have a single reference to:
System

...and imported namespaces to:
Microsoft.VisualBasic
System
System.Collections
System.Collections.Generic
Syste.Diagnostics
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
>>so I changed the references to all .NET1.1.4322 and suddenly I got 3 build errors to auto-generated vb files
How did you change these?

Bob

Author

Commented:
1) I went to the properties of my project
2) clicked the 'References' tab
3) Clicked 'Reference Paths'
4) Found .NET 1.1.4.322 in my C:\WINDOWS\Microsoft.NET\Framework\v1.1.4.322 folder, and clicked 'Add Folder'
5) All the references update to v1.1.4322 instead of 2

This is when I get the problem
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
Did you remove the folder for 2.0?

Bob

Author

Commented:
There doesn't appear to be a 2.0 folder to remove ...only the 1.1.4322 folder that I added ...is that normal?

All the references to the 2.0's are still available when I go to add a .NET reference, I just choose the 1.1.4322 ones instead. It's like the 2.0 references are set by default ...do you know of any way to completely remove them?

Did another test ...If I create a new blank project and choose the 'System' Reference from 1.1.4322, the build fails, but if I leave it blank it's fine

M

Author

Commented:
Maybe I just can't compile a .NET1.0 app with VS2005 ...

Author

Commented:
haha, I think I just found my answer: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=129335&SiteID=1

Oh well ...back to VS Express and see if that can handle it

Thanks for all your thoughts and patience Bob
Mark
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.