HOWTO Make Visual Studio 2003 build .NET 2.0 apps

G

Guest

HOWTO Make Visual Studio 2003 build .NET 2.0 apps

Please help,

Can Visual Studio 2003 build .NET 2.0 apps? And if so how?

As a test to ensure that it can be done, I want to be able to compile and
use the .NET 2.0 functionality for Marshal.GetDelegateForFunctionPointer.
 
M

Marc Scheuner [MVP ADSI]

Can Visual Studio 2003 build .NET 2.0 apps? And if so how?

No. Period. You have to use VS 2005 for .NET 2.0 apps.

Marc
 
G

Guest

Thanks for reply,

I do have the .NET 2.0 SDK, is there anyway I can use it to build the .NET
2.0 apps?
 
G

Guest

Marc, I'm sorry, but one can do it without VS-2005. The .NET 2.0 SDK comes
with CSC.EXE and even MSBuild.exe, which with Microsoft's tech support I was
able to compile my app (my .CS file) and build my app. Granted, this is a FAR
cry from being able to build\debug\deploy as it would have been with VS, at
least I can setup a Pre-Build\Post-Build step to compile my apps in VS-2003.
 
N

Nicholas Paldino [.NET/C# MVP]

Right, but that wasn't your question. You asked if you could make
VS.NET 2003 build .NET 2.0 apps, and the answer is definitely no on that
front.

The SDK and VS.NET are two separate things. And yes, you can build
things with the SDK, you don't need the IDE. The IDE just makes things
easier (which I am sure you know already).
 
F

Frans Bouma [C# MVP]

Marc said:
No. Period. You have to use VS 2005 for .NET 2.0 apps.

Yes you can.
- set in the project properties that you don't want to compile mscorlib
inside the assembly. (compiler flag /nostdlib[+|-] )
- remove all system.* references from the project
- now add new assemblies from the .NET 2.0 SDK to your project for
system. etc.

- compile your project.

It might not work for 100% but often will. This is also the way you
can build .NET 1.0 assemblies from vs.net 2003. These also don't always
work, but often will.

Of course, best way to do this is to build on the command line, using
nmake or msbuild or nant.

Frans

--
 

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