Outline ·
[ Standard ] ·
Linear+
Dotnet framework application
TSnarf03
|
Jun 29 2020, 08:12 PM, updated 4y ago
|
|
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
|
Jun 29 2020, 08:22 PM
|
Getting Started
|
normally the installer can take care all the dependencies of dot net framework for you.
|
|
|
|
WongGei
|
Jun 29 2020, 09:23 PM
|
|
MFC?
|
|
|
|
Tullamarine
|
Jun 29 2020, 09:37 PM
|
Getting Started
|
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-compilationBut 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
|
Jun 30 2020, 09:28 AM
|
|
use VB dont use VB.net
|
|
|
|