msiedle
asked on
Compiling a 1.1.4322SP1 Class Library with VS2005
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
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'
'EditorBrowsableAttribute'
'EditorBrowsableAttribute'
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What references do you have?
Bob
Bob
ASKER
I have a single reference to:
System
...and imported namespaces to:
Microsoft.VisualBasic
System
System.Collections
System.Collections.Generic
Syste.Diagnostics
System
...and imported namespaces to:
Microsoft.VisualBasic
System
System.Collections
System.Collections.Generic
Syste.Diagnostics
>>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
How did you change these?
Bob
ASKER
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\F ramework\v 1.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
2) clicked the 'References' tab
3) Clicked 'Reference Paths'
4) Found .NET 1.1.4.322 in my C:\WINDOWS\Microsoft.NET\F
5) All the references update to v1.1.4322 instead of 2
This is when I get the problem
Did you remove the folder for 2.0?
Bob
Bob
ASKER
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
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
ASKER
Maybe I just can't compile a .NET1.0 app with VS2005 ...
ASKER
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
Oh well ...back to VS Express and see if that can handle it
Thanks for all your thoughts and patience Bob
Mark
ASKER
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