RE: Create an .exe at runtime with .NET 2.0



Hi Linda

Thank you for your answer.

Can you show me a simple code example please? I've searched without sucess
for an example how I can compile a new executable with the encrypted file
(resource file) and the already compiled winform (.exe).

Thanks and Regards,
andersch


"Linda Liu [MSFT]" wrote:

Hi Andersch,

Based on my understanding, you'd like to create an executable file at
runtime with .NET 2.0, which in turn lauches an existing simple winform
application to decrypt an encrypted file. If I'm off base, please feel
free to let me know.

The .NET Framework includes a mechanism called the Code Document Object
Model (CodeDOM) that enables developers of programs that emit source code
to generate source code in multiple programming languages at run time,
based on a single model that represents the code to render.

The System.CodeDom namespace defines types that can represent the logical
structure of source code, independent of a specific programming language.
The System.CodeDom.Compiler namespace defines types for generating source
code from CodeDOM graphs and managing the compilation of source code in
supported languages.

FYI, The .NET Framework includes code generators and code compilers for C#,
JScript, and Visual Basic.

For more information on CodeDOM and how to use it, you may visit the
following link.
'Dynamic Source Code Generation and Compilation'
http://msdn2.microsoft.com/en-us/library/650ax5cx.aspx

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: precompile
    ... Site precompilation brings a double benefit: ... delay for requests because of compilation and no need of deploying source ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: precompile
    ... Site precompilation brings a double benefit: ... delay for requests because of compilation and no need of deploying source ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Linux X demo
    ... Compilation can involve up to four stages: preprocessing, ... C source code which should not be preprocessed. ... library to make an Objective-C program work. ...
    (alt.lang.asm)
  • RE: Deploy VS 2005 / asp.net 2.0 application by hand copy / past over ftp
    ... application compilation model of ASP.NET 2.0/VS 2005 web application ... means we do not need to precompile any codebehind into assembly at ... Microsoft MSDN Online Support Lead ... response from the community or a Microsoft Support Engineer within 1 ...
    (microsoft.public.vsnet.general)
  • Re: Forth 200X and the Hayes tester
    ... compilation can work with minimal changes to source code. ... the assumption that programmers could be confused. ... standard names for some routines) to handle it. ...
    (comp.lang.forth)