I regularly use Slickedit to work with Microsoft Visual Studio 2005 projects.
e.g. I have a solution called mine.sln which loads a project called mine.vcproj
Slickedit helpfully recognises this and automatically generates a mine.vpw and mine.vpj
However I have just inherited a new MS project which has one root solution file and 35 subprojects.
e.g.
\root\all.sln which contains
\root\proj1\proj1.vcproj
\root\proj2\prog2.vcproj
etc.
When I select "all.sln" using the slickedit "open workspace" command it starts to report that:
"Project file '\root\proj1\proj1.vpj' is not found
"Project file '\root\proj2\proj2.vpj' is not found
This isn't surprising because those files don't exist. My issue is that Slickedit doesn't automatically create them.
It would appear that:
If the microsoft project contains a single project of the same name as the solution, Slickedit will automatically create an equivalent VPW and VPJ file.
However if the Microsoft Solution contains multiple projects Slickedit will create an "all.vpw" but it doesn't try to create the necessary .VPJ files for each of the subprojects.
I do have a rather awkward workaround as follows:
1. Using VS2005, create a \root\proj1\proj1.sln \root\proj2\proj2.sln etc. workspace file for each (35) project.
2. Then using slickedit open each individual .sln file so that the corresponding .vpj file is created.
3. Then when I open all.sln using Slickedit it works ok.
Unfortunately this workaround has a number of problems.
1. It is a ROYAL PAIN IN THE BUTT, and a VERY long time to implement for my 35 sub projects.
2. I can't check in these new .sln files because I don't have control of the tree so I have to repeat this process each time I get a fresh tree (About once per week).
I would be quite happy with a solution which allows me to script this process.
To this end I have been reading some of the slickedit scripts to see if I could find a way to do this.
Unfortunately nothing was readily apparent.
I would like to be able to create a script that looks like this:
CreateEquivalentVpjFileForVcProjFile("\root\proj1\proj1.vcproj");
CreateEquivalentVpjFileForVcProjFile("\root\proj2\proj2.vcproj");
etc.
Does anyone know of a way to do this?
Note: I am using Visual Slickedit version 9.0.1 but I have tried this using the trial of VS 2007 and the behaviour appears to be the same.
Any ideas would be greatly appreciated.
Thanks,
Dave