• 0

[VB] Compiling


Question

Im running Visual Basic 2005 Beta, which compiles in .NET 2.0 Beta Framework. How would i get it to comple in .NET 1.0 or to run on PC's without .NET?

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

So i would have to use VB 6 to compile to make it work on non .NET PC's?

EDIT : is there a direct download link to get .NET 2.0?

Link to comment
Share on other sites

  • 0

Nope... you will hacve to re-write in VB6 for non .NET machines... the code won't be compatible.

And there is a direct link... but it is a beta..... so don't get upset if it falls over every 10 minutes....

I would recommend trying to compile the code under 1.1

Link to comment
Share on other sites

  • 0

VB6 will allow your program to run from Win95 to Win2003 as long as the system has the VB6 Runtimes installed... but it is not compatible with .NET.

To compile something compatible with .NET 1.0+ you need to use the current version of VB.NET (Visual Studio.NET 2003).

Link to comment
Share on other sites

  • 0

Simple: You don't. .NET is meant to run on .NET only, and not on Windows (without .NET) :yes: Also, .NET 2.0 adds features that aren't included in 1.x, so you'll have to make sure all your clients have 2.0 installed once it's available (Y) Luckilly though, you can include the framework with your distribution.

Link to comment
Share on other sites

  • 0

I dont have distros, i just tried to learn VB 2 days ago :) . Anyways could someone point me to the beta? Id like to download and rip it to a CD instead of downloading it on every single PC.

Link to comment
Share on other sites

  • 0

You can always command line compile it to the 1.1 framework. Use vbc located in your %WINDIR%\Microsoft.NET\Framework\v1.1.4322 directory. Just be ready for compiler errors if you happened to use a class or feature that wasn't in 1.1 :D

As for the framework, there's no way around that. VB6 requires it's runtimes to run on Windows machines, so .NET requires it's :D.

Link to comment
Share on other sites

  • 0

Thanks a lot, im downloading the .NET 2 re-distributable.

er, how do i command line compile it? What are the various commands?

Link to comment
Share on other sites

  • 0

I recommend NOT distrobuting beta bits to other users. Use the projects for your own self testing until Microsoft releases the final bits.

Link to comment
Share on other sites

  • 0

Whenever i run vbc, the command prompt screen appears for a brief second and disappears.

@xStainDx : I know the risks of beta software, but me and some of my buddies like to test out every bit of beta software we can get our hands on.

PS : are there any other beta releases planned for non-express versions of Visual Studio 2005? And is there any page which outlines the difference between Express and the Full version?

Link to comment
Share on other sites

  • 0
Whenever i run vbc, the command prompt screen appears for a brief second and disappears.

Start -> Run -> type "cmd" -> Press ENTER.

Now run vbc in the command window. :rolleyes:

Link to comment
Share on other sites

  • 0
This is embarassing, but i forgot the command to go up a directory :sheepish grin:

cd ..

will go back a level

Or just

cd C:\windows\microsoft.net\framework\v2.0.40607

Link to comment
Share on other sites

  • 0
OK i ran the exe. Will someone tell me exactly how to compile a program i made in VB.NET?

vbc "C:\yourdir\*.vb" /out: MyApp.dll /target:winexe

That's just off the top of my head, haven't tried it.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.