3

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

Steven
  • 13,501
  • 27
  • 102
  • 146
  • 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 Answers4

3

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

Community
  • 1
  • 1
TWA
  • 12,756
  • 13
  • 56
  • 92
3

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
  • 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
1

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

Justin Niessner
  • 242,243
  • 40
  • 408
  • 536
1

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
  • 6,109
  • 2
  • 22
  • 18