MateuszKierepka

Hi,

Can I compile .NET 2.0 code on CompactFramework at runtime If not, maybe there is solution to compile this same code dynamically on PC side and transfer this code (in dll) to PocketPC

Kind regards

Mateusz Kierepka




Re: .NET Compact Framework Compilation

timg_msft

you cannot do this on the device. You may be able to write a web service that the device connects to and downloads code from. There are many different ways to solve this problem.




Re: .NET Compact Framework Compilation

Mateusz www.Kierepka.pl

Ok - can you send me more information how to compile code on serwer side I search over internet but I can't find any good sample...




Re: .NET Compact Framework Compilation

MateuszKierepka

So - do you have any example how to compile CF code on server side




Re: .NET Compact Framework Compilation

AndrewBadera

you'd want to use something like Process.Start on the server to call out to csc.exe (or whichever compiler matches the language you're compiling) with the command line arguments for source and target, and then move the completed target assembly after the process finishes.