How can I create a VB application in VS2008 without requiring the application be run on a computer with a .NET framework in place?
-
Voting to close as duplicate of http://stackoverflow.com/questions/953146/running-net-based-application-without-net-framework – STW Feb 26 '10 at 18:10
4 Answers
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.
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

- 44,917
- 17
- 105
- 161
-
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 Feb 26 '10 at 18:10
-
@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 Feb 26 '10 at 18:16
You can't. You would need to go back to Visual Studio 6 and create a VB6 app.

- 242,243
- 40
- 408
- 536
-
VB != VB.NET, so he might as well keep using Visual Studio 2008 and write it in C++ – STW Feb 26 '10 at 18:11
-
1But then it's not going to be a VB application at all...it would wind up being a native C++ app. – Justin Niessner Feb 26 '10 at 18:55
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.

- 6,109
- 2
- 22
- 18