Home Help Center

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 ?

Comments

  • damingyipaidamingyipai Member ✭✭
    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 );
  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Originally posted by damingyipai
    sorry, args[0] is not the executable file path.

    Right. With C#, you have to use
    System.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.
  • damingyipaidamingyipai Member ✭✭
    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...
Sign In or Register to comment.