views:

78

answers:

4

How can I create a VB application in VS2008 without requiring the application be run on a computer with a .NET framework in place?

+1  A: 

You can't. You would need to go back to Visual Studio 6 and create a VB6 app.

Justin Niessner
VB != VB.NET, so he might as well keep using Visual Studio 2008 and write it in C++
STW
But then it's not going to be a VB application at all...it would wind up being a native C++ app.
Justin Niessner
+1  A: 

You can't. VB is .net based, there isn't a non .net VB anymore.

The best you can do is include the .net redistributable with your application's installation.

developmentalinsanity
+3  A: 

You can't create a non-managed VB application in VS 2008.

You would have to use C/C++ or go back to VS 6.

You can look at the question below for more information on .NET linkers. That is technically an option, but if I were starting a new application that I didn't want to depend on the .NET framework I would not use a managed language.

Running .net based application without .net framework

Dana Holt
+3  A: 

You'll need to use a 3rd party .NET linker, Visual Studio itself doesn't support what you're after but a number of tools allow it to be done.

A couple of tools:

Another, non-VS, option is to use Mono to build a "Bundle" which combines both the runtime and your application into a single executable: Mono:Runtime - Bundles

STW
My understanding is the Mono Linker is not free... and is part of the reason why MonoTouch (for building .NET applications on the iPhone) is so expensive.
Nick
@Nick: I'm not sure, but I think it's only the *Visual Studio* plugin that's not free--bundles are a part of the free package and can be built by command line. Definately would need to double-check that though.
STW