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
  • 12,973
  • 25
  • 99
  • 141
  • 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,474
  • 12
  • 58
  • 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
  • 42,808
  • 17
  • 105
  • 157
  • 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
  • 236,029
  • 38
  • 403
  • 530
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
  • 5,871
  • 2
  • 21
  • 18