HighTechTalks DotNet Forums  

Can SaveCompiledState create a stand-alone EXE?

Dotnet VSA microsoft.public.dotnet.vsa


Discuss Can SaveCompiledState create a stand-alone EXE? in the Dotnet VSA forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Can SaveCompiledState create a stand-alone EXE? - 06-18-2004 , 10:27 AM






When I use SaveCompiledState of a VisualBasic.Vsa.VsaEngine to save an
EXE to disk, I get an assembly that can be read by ILDASM.exe.
However, when I run the exe, I get the message:

"MyScript.exe is not a valid Win32 application."

Is it possible to write a script that has an entry point that can be
used in this fashion? Note that I did declare a Public Sub Main ()
within a Module statement. However, the /Main:moduleName compiler
switch is probably not being used by VsaEngine.Compile () because a
script method has to be invoked explicitly...

Thanks in advance,

- Ashok Thirumurthi

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.