Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Dotnet framework application

views
     
TSnarf03
post Jun 29 2020, 08:12 PM, updated 4y ago

Look at all my stars!!
*******
Senior Member
4,544 posts

Joined: Dec 2004
From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol


I wonder if there is a way to make a visual studio desktop application totally independent from dotnet framework ?

ie when you create a dotnet application, you will need to specify which dotnet framework to use, and when you deploy that application to client pc, the client pc will need to have that dotnet framework. I wonder if is possible to tell visual studio to include all the dependencies into the exe and not require any dotnet framework installed in client pc ?

I know the exe will be alot bigger, but thats not an issue.
gigsvoo
post Jun 29 2020, 08:22 PM

Getting Started
**
Junior Member
76 posts

Joined: May 2006
normally the installer can take care all the dependencies of dot net framework for you.
WongGei
post Jun 29 2020, 09:23 PM

Regular
******
Senior Member
1,206 posts

Joined: Dec 2007
From: Kuala Lumpur
MFC? smile.gif
Tullamarine
post Jun 29 2020, 09:37 PM

Getting Started
**
Validating
163 posts

Joined: Apr 2020
There is .NET Native in Visual Studio 2015 and later where your C# /VB.net code is compiled to native code instead of IL language to be interpreted by JIT compiler during runtime.

https://docs.microsoft.com/en-us/dotnet/fra...and-compilation

But so far, I see it ain't standalone EXE.... you still need several .DLLs included as part of your installation, such as MRT.dll.

If your app is console app, you can try to rewrite it in Free Pascal and compile with FPC which generates unmanaged code (vs .NET managed code). If you know C++, then your EXE will only be dependent on MS Visual C++ redistributable (correct me if I am wrong :-).


kevinlim001
post Jun 30 2020, 09:28 AM

Ethical Hacker
*******
Senior Member
6,118 posts

Joined: May 2006
From: Planet called "EARTH"



use VB dont use VB.net
mykk
post Jun 30 2020, 03:50 PM

Getting Started
**
Junior Member
91 posts

Joined: Jan 2003
https://turbo.net/studio
Not cheap

 

Change to:
| Lo-Fi Version
0.0118sec    0.37    5 queries    GZIP Disabled
Time is now: 28th March 2024 - 06:02 PM