Is it possible to pack an entire C # console application with its application folder / files into one executable .exe file, so there is no need to install it on a computer when it is launched?
If it does not have many DLL resources (with translated strings in separate subfolders), you can use ILMerge for this for DLL files:
http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx
ILMerge is a utility that can be used to combine multiple .NET. assembly into a single assembly.
, .
, , . :
http://support.microsoft.com/kb/319292
: :
var assembly = Assembly.GetExecutingAssembly(); var stream = assembly.GetManifestResourceStream("MyNamespace.MyResourceFileName"); // ... do something with stream, e.g. write it out to a file.
[EDIT]
ILMerge .
. : http://blog.nenoloje.com/2011/08/better-alternative-to-ilmerge.html
: http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx
ILMerge " ILMerge, , ! , ILMerge"
, , .:)
Source: https://habr.com/ru/post/1524471/More articles:Searching a tuple in a list of tuples (sorting by multiple keys) - pythonI can not allow mongo from a remote connection - mongodbProgrammatically create a new category in magento - magentoIs there a way to return more than 1 row when selecting without using existing tables - sqlAccess to _data in Jekyll (loop in loop) - jekyllThe path of the current InkScape file from a python script - pythonAjax Control Toolkit ModalPopupExtender not working in Visual Studio 2012 - ajaxasp.net mvc how to transfer a complete model from a view to a controller - c #How to get parsing alerts on an Android device using parse.com - androidКоординаты экрана QML компонента - qtAll Articles