Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every one
i am using vb.net console application
i wanna when i finish my work and make exe that didnt need to .netfraimwork
but i can not successful becuase every of my project at list need .netfraimwork2.0
so my question is :
can i make a exe like qt that use others librarries in own file make larger file but that is good for me...
i need to exe in vb.net dont need anything for executing
Posted
Comments
Akinmade Bond 16-Oct-12 13:53pm    
:\

Okay. First point, you CAN'T run an Application created in .Net without .Net framework on the client machine.

Now for solution to your problem. You need to create a deployment project where you need to include .Net Framework re-distributable exe. In your deployment you run command like
dotnetfx35.exe /q /norestart 


Now, this will install dotnet framework without re-starting the machine and then you deploy your own application.

A step-by-step guide for such deployment project is at http://support.microsoft.com/kb/324733[^]

Hope that helps. If it does mark it as answer/upvote.

Thanks,
Milind
 
Share this answer
 
Comments
rpm3d 16-Oct-12 3:11am    
thank you...i am checking..if worked...i'll be write back
you should create setup [doesn't matter console or windows application both have same procedure to follow]
because to run application developed in .net environment it will need .net framework on client pc,
visit link or you can also search on google about steps for create setup in .net Win/console...
Visual Studio Windows Application Setup Project[^]

Happy Coding!
:)
 
Share this answer
 
Comments
rpm3d 16-Oct-12 3:10am    
i dont want make setup...i saied my program is console aplication just i use cmd..command prompt
Aarti Meswania 16-Oct-12 3:16am    
it is console app but developed in .net
so when you will put this exe on client pc and run it.. it will not been executed if on client pc similar or higher version of .net framework is not installed
because to execute lines of console app., it will need interpreter that can understand code & convert it into machine language (01..01) binary? ok.
and in your case that interpreter is .net framework
rpm3d 16-Oct-12 3:20am    
i know ...but may be we have a oulotion like qt(that included all libraries to need)
and may be in first soulotion can worked distributable exe and deployment project
mean include ...i use "Imports System.io"
maybe i can inport to my project this???!
Aarti Meswania 16-Oct-12 3:25am    
it is inside .net framework so externally no need to add that dlls.

just add exe in setup project it will include dependency itself.
and also add .net framework from PREREQUISITES.
build setup
your setup is ready
install it on client pc and check...
:)
rpm3d 16-Oct-12 3:28am    
that is not any way for dont need to install :)
If you are making a console application and to execute in any other client machine without framework then you must have to create it in C or C++ language.An Simple application made by C or C++ never required depended assemblies.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900