I believe you can specify some command line parameters for the actual .NET IDE to do the conversion. A while back I had to convert some 100 projects and I didn't want to do it by hand, so I searched around and looked at the command line params and batched it like that (I think anyway, it was a while ago!).
Give that a look and post back any more Qs or comments
=--=--=--=--=--=--=--=--=--=--=--=--=--=
Please rate this post to show your appreciation for those that helped you.
I've found the help page
"Upgrading Visual C++ Projects to Visual Studio .NET in Batch Mode"
in the Visual Studio .Net 2003 Documentation but the script does not work
I have tried to remake it in C# but the same error occurs....
When i call the LoadProject of the VCProjectEngine, it throw a 'System.Runtime.InteropServices.COMException with HRESULT: 0x8005050B
here is my code :
static int Main(string[] args)
{
if (args.Length != 2)
{
Console.Write("Usage : Vc6ToVc7 oldproj.dsp newproj.vcproj\n");
return -1;
}
VCProjectEngine vcEngine = new VCProjectEngineObjectClass();;
if (!File.Exists(args[0]))
{
Console.WriteLine("Error [{0}] doesn't exist.\n", args[0]);
return -1;
}
VCProject vcProj = (VCProject)vcEngine.LoadProject(args[0]);
if (!File.Exists(vcProj.ProjectFile))
{
vcProj.ProjectFile = args[1];
Console.WriteLine("Converting [{0}] to [{1}].\n", args[0], args[1]);
vcProj.Save();
}
else
Console.WriteLine("Error [{0}] already exists.\n", vcProj.ProjectFile);
return 0;
}
Bookmarks