-
June 4th, 2009, 08:05 PM
#1
increase timeout for CSharpCodeProvider
When using CSharpCodeProvider to compile code, is there a way I can increase the timeout? I have a test environment that is very slow and it takes more then 10 to compile then it just crashes. I need to just set it to unlimited.
-
June 11th, 2009, 05:10 PM
#2
Re: increase timeout for CSharpCodeProvider
Anyone know how to do this? This has become a large issue. 10 minutes is just not enough. I need to increase that. I keep having to restart the compile until it decides to take slightly under 10 minutes so it actually takes me 40-120 minutes to compile instead of maybe 12.
-
June 12th, 2009, 04:26 PM
#3
Re: increase timeout for CSharpCodeProvider
Any reason not to use MSBuild?
-
June 12th, 2009, 08:21 PM
#4
Re: increase timeout for CSharpCodeProvider
Originally Posted by Arjay
It's a special compiler built into the application. I just use csc.exe to compile the actual app, but the app then compiles the "scripts" into a DLL then loads it. Can MSBuild do that? Was not me that coded this app but perhaps I can make it better/more efficient by changing the compile sequence?
-
June 12th, 2009, 08:42 PM
#5
Re: increase timeout for CSharpCodeProvider
Originally Posted by Red Squirrel
It's a special compiler built into the application. I just use csc.exe to compile the actual app, but the app then compiles the "scripts" into a DLL then loads it. Can MSBuild do that? Was not me that coded this app but perhaps I can make it better/more efficient by changing the compile sequence?
If you 'auto' produce source code, MSBuild should be able to compile it.
-
June 12th, 2009, 09:11 PM
#6
Re: increase timeout for CSharpCodeProvider
Actually I just thought of something. These C# scripts refer to objects that are only in the scope of the exe. So I don't think I can compile those scripts by calling up a program as all the object types wont be in scope. Ex:
The core defines Mobile. The scripts define BaseCreature : Mobile. If I try to compile just the scripts it wont know what Mobile is. From looks of it msbuild is an exe that I would call up the same way I would call up csc.exe, so don't think this would work, unless there's some way to make it know what Mobile and such is.
In fact if there's a way I can use csc it would be great as not only would I be able to provide some kind of time out, but the compiles would take seconds instead of minutes.
-
June 13th, 2009, 02:00 PM
#7
Re: increase timeout for CSharpCodeProvider
It's never clear to me why sometimes folks tend to code themselves into a corner. Good luck with getting this resolved.
-
June 13th, 2009, 07:57 PM
#8
Re: increase timeout for CSharpCodeProvider
Yeah well not me that made that app, I'm just using it and trying to make it better. IMO I would of not made the whole "script" thing and just compiled the entire thing into a single EXE. Much easier to manage, and faster to compile too. The csc app is WAY faster then the built in compiler in the app (which I think actually does use csc somehow)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|