Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2006
bartley bartley is offline
Registered User
 
Name: Chris Bartley
Organization: Carnegie Mellon University Robotics Institute
Project: The Telepresence Robot Kit (TeRK)
 
Join Date: Dec 2005
Posts: 52
Question What's the difference between generatecs.exe and slice2cs.exe?

I've recently started working with Ice for C# and noticed that the demo Visual Studio projects call generatecs.exe as a pre-build event. Why? What does it do that's different from slice2cs.exe?

Also, I can't find docs for generatecs.exe anywhere. The usage statement helps a bit:

Code:
usage: generatecs.exe solution_dir project_dir slice_name [args]
But what are the optional args?

thanks,

chris
Reply With Quote
  #2 (permalink)  
Old 08-09-2006
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 931
Unfortunately, unlike Visual C++, Visual C# does not have built-in support for conditional build events. All it can do is run a pre-build event unconditionally every time a project is compiled. The pre-build event is need to compile the Slice files, but we don't want to compile all the Slice files every time--we only want to compile them if they've been touched.

So, generatecs.exe is a pre-build command that does that. (It's a poor man's make.) In essence, all it does is check whether, for a particular Slice file, the corresponding C# file exists and has a time stamp that is older than the time stamp of the Slice file. If not, it compiles the Slice file. The additional args are just arguments that are passed through to slice2cs.

You can find the source code for generatecs.exe in the generate subdirectory of the C# distribution.

Cheers,

Michi.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Console and Service Application? lkw Help Center 7 06-24-2006 09:51 PM
difference between proxies from class and from interface kovacm Help Center 3 05-29-2005 05:57 PM
performance difference zigzag Bug Reports 3 05-23-2005 10:42 PM
Possible bug in slice2cs version 1.5 wodi Bug Reports 3 07-27-2004 11:06 PM
Difference of ice code in dll or exe? level Help Center 4 04-01-2004 02:15 AM


All times are GMT -4. The time now is 11:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.