new at this...compiling my app

Hi everybody~

I have a dumb question…

I am using VB.Net 2005 Express, and relatively new at it. So far, I have “published” an app and given it to two people. I noticed right off that it was not what I expected, it was a few files (including an exe) and a folder. Anyway, both times it was installed, the user had to download and install the .net 2.0 framework which took as much as an hour to download and install.

Is this right? Is there another way to compile instead of publish? Will all of my users have to go through this lengthy preparation? Would it be different with VS 2005 Standard or Pro?

Please enlighten me!

Thanks,

Mike

[1389 byte] By [M.Nicholas] at [2007-12-24]
# 1

Hello Mike!

You can compile your application by selecting that option from the build menu. This will output <program>.exe into your Project folder in the bin folder. If your users have the .NET FrameWork installed, and you send all relevant dependency files (i.e. any dlls that you application is reliant upon) then they should be able to run the application by simply launching the exe file in the same manner as any other application).

Hope this helps?

Ady

AdrianFoot at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

Hello, Ady~

Compile is not one of my choices in the build menu…just ‘build’ and ‘publish’.

Also, what I am really wondering about is: is there a way to not have to download the 2.0 framework…can you compile (if I could compile) the needed files with the app. I find it hard to believe that every app written in .net requires this lengthy download and install if the user doesn’t already have it. Do new commercial apps require this too?

Just wondering.

Mike

M.Nicholas at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3

the "Build" is the one you need when you are going to be compiling the application. In order for the computers which do not have the .NET Framework to run the application then they require the .NET Framework, so it will download it automatically or you could install it on the computer. This is a 1 off operation unless they uninstall it.

In order to run .NET developed applications you MUST have the .NET Framework, otherwise it will not run - its like a car, if there is no engine then the car can't run right? Same thing here :-)

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4

I had the same problem in the project I work on. You should do the next:

  • Project->YourProjectName Properties...->Publish->Prerequisites...
  • select
    • .NET Framework 2.0
    • Windows Installer (optional)

  • select
    • Download prerequisites from the same location as my application

  • accept with OK
  • click Publish Now

This way, .NET Framework will be distributed with your application as well, so the users whould not had to download Framework every time installing your application.

For more detailed help read How to: Install Prerequisites with a ClickOnce Application on:

http://msdn2.microsoft.com/en-us/library/8st7th1x.aspx

For me, it was helpful.

VladimirGlisic at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...