how to regasm VS.NET 2003-generated assembly on .NET 1.0 machine?

S

Steve

Hello,

I am using VS.NET 2003 to build a DLL library which is a COM plug-in
for IE. This means I must use regasm to register the DLL. This works
fine on my development machine (which of course has .NET 1.1 since I
have VS.NET 2003). However, when I try to use regasm to register the
DLL on a machine that only has .NET 1.0 it fails with the following
error message:

"RegAsm error: File or assembly name System.Windows.Forms, or one of
its dependencies, was not found."

I've searched the newsgroups high and low and I've read the referenced
material which says that VS.NET 2003 can only target .NET 1.1, and
that if you want to run on .NET 1.0, then you must use an application
configuration file. However, the app config file only works with a
..exe and not a .dll.

How does one build a DLL with VS.NET 2003 that runs on .NET 1.0? (and
more to the point, how do I get past my problem with regasm above?)

Thanks,
Steve
 
E

Eric Cadwell

It's unfortunate that Visual Studio is so tied to a particular Framework.
I'm looking for a way to compile 1.0 code in 1.1.

I guess you could do a csc.exe *.cs, but for a complex project you get
dependent on devenv.exe to build/link/embed entire solutions and
dependencies.

Why wouldn't you require that all clients install 1.1? You'd be doing them a
favor by asking them to run Windows Update.

HTH;
Eric Cadwell
http://www.origincontrols.com
 
S

Steve

Thanks for the reply Eric. For now we're sticking with VC#.NET 2002
so we can support both .NET 1.0 and 1.1. In the future we may decide
to require .NET 1.1 as you suggest, but the reason we're hesitant is
that our .NET application is a consumer download, and by forcing an
upgrade to .NET 1.1 for those users who have .NET 1.0 already may be
enough of a hurdle to prevent them from downloading our free software
to try it out.
 
E

Eric Cadwell

It looks as though the build technology may be removed from VS.NET
(devenv.exe) and put into a separate executable. That would be a relief to
all.

-Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top