Archived
This forum has been archived. Please start a new discussion on GitHub.
Question about the IceCS generate.exe
generate.cs:
string solDir = args[0];
string projDir = args[1];
string projName = args[2];
Is it the solDir will store the solution directory path ? but the args[0] is the executable file path, is it right ?
string solDir = args[0];
string projDir = args[1];
string projName = args[2];
Is it the solDir will store the solution directory path ? but the args[0] is the executable file path, is it right ?
0
Comments
-
sorry, args[0] is not the executable file path.
I change the generate.cs 38 line like follow, then build ok:
const string slicePat = @*.ice;
string sliceDir = Path.Combine( solDir, "slice" );
sliceDir = Path.Combine( sliceDir, projName );
string[] sliceFiles = Directory.GetFiles( sliceDir, slicePat );0 -
Originally posted by damingyipai
sorry, args[0] is not the executable file path.
Right. With C#, you have to useSystem.AppDomain.CurrentDomain.FriendlyName
to get the name of the exeuctable.I change the generate.cs 38 line like follow, then build ok:
const string slicePat = @*.ice;
string sliceDir = Path.Combine( solDir, "slice" );
sliceDir = Path.Combine( sliceDir, projName );
string[] sliceFiles = Directory.GetFiles( sliceDir, slicePat );
I don't understand... Why do you want to change generate.cs? It's meant to work as is, without modification. What distribution are you using? The source distribution or the binary distribution?
Cheers,
Michi.0 -
It's binary destribution.
Sorry, It's my failed.
after every time I build IceCS 1.5.1 on vs.net 2003,
"PreBuildEvent.bat" File is always in "bin" directory,
I feel something wrong, but this is "pre build event" only. :-)
I don't know why MS don't delete it after build progress...0