473,385 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compiling a static .NET executable

Hello,
I was wondering if there is a way in .NET to do the following:

Suppose I have a test.exe (I have the source also) which uses lib1.dll
and lib2.dll (which are .NET assemblies); Is it possible to compile the
3 files into 1 static executable so that I don't have to have lib1.dll
and lib2.dll available on the computer I'm running test.exe on?
Thanks,

Sep 18 '06 #1
3 1162
This isn't quite what you're looking for, but will do static linking of .Net
into Native Images.

It's a great, great tool - it allows you to build and deploy .Net
applications withour requiring people to have the .Net framework installed.

http://www.remotesoft.com/linker/

--
Chris Mullins, MCSD.Net, MCPD:Enterprise
http://www.coversant.net/blogs/cmullins
<mc*******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hello,
I was wondering if there is a way in .NET to do the following:

Suppose I have a test.exe (I have the source also) which uses lib1.dll
and lib2.dll (which are .NET assemblies); Is it possible to compile the
3 files into 1 static executable so that I don't have to have lib1.dll
and lib2.dll available on the computer I'm running test.exe on?
Thanks,

Sep 18 '06 #2
<mc*******@hotmail.comwrote:
Hello,
I was wondering if there is a way in .NET to do the following:

Suppose I have a test.exe (I have the source also) which uses lib1.dll
and lib2.dll (which are .NET assemblies); Is it possible to compile the
3 files into 1 static executable so that I don't have to have lib1.dll
and lib2.dll available on the computer I'm running test.exe on?
See if this is any help:
http://research.microsoft.com/~mbarnett/ILMerge.aspx

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 19 '06 #3
SP

<mc*******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hello,
I was wondering if there is a way in .NET to do the following:

Suppose I have a test.exe (I have the source also) which uses lib1.dll
and lib2.dll (which are .NET assemblies); Is it possible to compile the
3 files into 1 static executable so that I don't have to have lib1.dll
and lib2.dll available on the computer I'm running test.exe on?
You can try .Net Reactor at www.eziriz.com. I don't use this feature as my
DLLs are used by multiple executables but it does do this as well as
offering code protection.

PS

Sep 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
8
by: Robert A Riedel | last post by:
I have an application that requires a DLL and an executable that uses the DLL, both of which were implemented in Visual C++ using unmanged code. Both the executable and the DLL are linked with...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
7
by: Sverker Nilsson | last post by:
I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) has failed to compile its extension modules with a Microsoft .NET 2003 compiler under Windows 2000. One of the problems,...
2
by: Justin Naidl | last post by:
A group of friends and I are doing a RPG (role-playing game) maker for a school project. It occured to us, however, that if you want the user to be able to have almost complete control over the...
1
by: Will Ware | last post by:
I am trying to freeze a static executable. I built a static Python executable this way: ./configure --disable-shared --prefix=/usr/local make make install Even that didn't give me a really...
8
by: rays | last post by:
Hi, I am trying to port a C++ program which is supposed to be standards compliant. It works fine on Linux with GCC (4.x). But as I try to compile it on Windows, all hell breaks loose. I have been...
10
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it...
13
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
When I'm writing my own code, compiling it and testing it out as I go along, I usually compile as follows: gcc *.c -ansi -pedantic -Wall -o executable If I'm using 3rd-party libraries, I'll...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.