Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-10-2007
mboozell mboozell is offline
Registered User
 
Name: Matthew Boozell
Organization: Breakwater Capital, LLC
Project: In house software
 
Join Date: Apr 2007
Posts: 4
How to use generatecs with multi-level ice folder structure...

Hi,

I am attempting to use ice (for C#), and I have not been able to understand how to use generatecs.exe with an ice folder structure that is layered. In other words, I have an ice file "base.ice", then I have folders child1, child2, etc... Inside the childn folders, I have childn.ice files, that reference base.ice. They use the folder structure to find it in C++, but it is not obvious to me how to use generatecs.exe to accomplish the same.

Any help will be appreciated.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 07-10-2007
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
generatecs is a poor-man's make replacement. I added this in desperation, after I found out that Visual Studio for C# was incapable of using custom build steps that invoke an external compiler. generatecs makes assumptions about the layout of the Ice source tree and is not meant to be used for general-purpose application development.

If you want to compile Ice applications that use complex directory structures and also have a dependency on .ice files so they get rebuilt automatically, I suggest you use make rules directly that state that generated .cs file depends on the corresponding .ice file.

Or you could look at the source for generatecs and modify it to suit your needs.

Cheers,

Michi.
Reply With Quote
  #3 (permalink)  
Old 07-11-2007
rdilipk rdilipk is offline
Registered User
 
Name: Dilip Ranganathan
Organization: 3M
Project: None
 
Join Date: Jul 2003
Location: Minnesota, USA
Posts: 35
Shouldn't MSBuild (MSBuild Reference) take care of your problem these days?
Reply With Quote
  #4 (permalink)  
Old 07-11-2007
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
No, we use a much better system nmake/make.
Reply With Quote
  #5 (permalink)  
Old 07-11-2007
xdm's Avatar
xdm xdm is online now
ZeroC Staff
 
Name: José Gutíerrez de la Concha Martínez
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Sep 2003
Location: La Coruña, Spain
Posts: 292
maybe a cmake module can help to do this CMake Cross Platform Make.
I studying it for my new project.
Reply With Quote
  #6 (permalink)  
Old 07-11-2007
rdilipk rdilipk is offline
Registered User
 
Name: Dilip Ranganathan
Organization: 3M
Project: None
 
Join Date: Jul 2003
Location: Minnesota, USA
Posts: 35
Matthew

You are probably right. MSBuild is fairly new and unproven. I was just responding to a particular quote of Michi's. In the future, at least for building .NET applications, MSBuild seems to be the way to go.

Quote:
Originally Posted by michi View Post
generatecs is a poor-man's make replacement. I added this in desperation, after I found out that Visual Studio for C# was incapable of using custom build steps that invoke an external compiler.
Take a look at this: Exec Task
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
Interactive communication - application-level flow control luke Help Center 3 03-14-2007 03:28 PM
Setting RetryIntervals below application level ctennis Help Center 4 12-21-2006 08:02 PM
What's the difference between generatecs.exe and slice2cs.exe? bartley Help Center 1 08-09-2006 08:37 PM
How to compile ice files under folder slice rocshaw Help Center 2 11-24-2005 01:09 AM
application structure /design leyang Help Center 0 12-27-2004 09:23 AM


All times are GMT -4. The time now is 11:48 AM.


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