ZeroC

Archived

This forum has been archived. Please start a new discussion on GitHub.

The IceCS generate.exe bug in Generate.cs from line 24 to 32

damingyipai
damingyipai
the parameters is four, but the source forgot this,
it remember 3 only, you just change line 24 - 32:

if(args.Length < 3)
{
Console.Error.WriteLine("usage: {0} solution_dir project_dir project_name [args]", progName);
Environment.Exit(1);
}
string solDir = args[0];
string projDir = args[1];
string projName = args[2];

to follow:

if(args.Length < 4)
{
Console.Error.WriteLine("usage: {0} solution_dir project_dir project_name [args]", progName);
Environment.Exit(1);
}
string solDir = args[1];
string projDir = args[2];
string projName = args[3];

Comments

  • damingyipai
    damingyipai
    my envirment is win2000 and vs.net 2003.
  • damingyipai
    damingyipai
    ohh! maybe this is not the reason of the bug, but i can't build IceCS 1.5.1
    on vs.net 2003, because generate.exe result error.

    can you help me ?
  • michi
    michi
    Sorry, to help you, I will need to know exactly how you invoke generate.exe(that is, what pre-build step you are using), and exactly what error message you are getting (if any). Also, it would be useful to insert some trace as the first line of generate.cs to echo the arguments that are passed to the executable.

    Cheers,

    Michi.