Title: Message
Hi,
 
I didn't here from the list, so I tried out changing the SLiNgshoT project.  I found a few problems actually. 
a. I made the change so that VB projects get handled (the original problem). 
b. On my setup, relative paths to source files didn't get included.  So I changed the relative to absolute paths.
c. I renamed the constant enterproseProjectId to enterpriseTemplateProjectId (nomenclature).
d. I changed the resolvePath function to better handle the maps.
 
Note: that I added the VSLangProj to the Imports (and to the .csproj).  This import gave the prjKind Enumeration.
 
Note: After making the changes and doing a few tests, I got the information concerning System.IO.Path (this class would have been great for the resolvePath function).
 
Please review and do whatever is best. 
 
I hope these changes help.
 
Pat

-----Original Message-----
From: Patrice Calvé
Sent: Tuesday, January 28, 2003 15:32
To: [EMAIL PROTECTED]
Subject: [NAntC-Dev] SLiNgshoT's solution.cs is using incorrect project kind/guids

Hi,

I found a problem using SLiNgshot with VB Projects.

In SLiNgshoT, the file Solution.cs and function AddProject, there's use of two constants:
- string commonProjectId = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}";
- string enterproseProjectId = "{FE3BBBB6-72D5-11D2-9ACE-00C04F79A2A4}";

After a few investigations, the {FAE0..} guid refers to a PrjKind Enumeration of value "prjKindCSharpProject".

Look at the following link for all the values for this Enumeration:
http://msdn.microsoft.com/library/default.asp?url="">

Since the VB project is not there, the VB Projects are not added to the list of Projects in the solution. 

For the {FE3BBBB6..} guid, this guid seems to point to an Enterprise Template.  Maybe the naming of the constant is somewhat confusing.

Another note would be that there's an if and elseif but no else.  The else should generate an error or something.

So, the todo list (as I see it) would be:
- change to prjKind Enumeration
- Add VB (and VBA) to project list
- add a "else" to the if elseif (either error or warning)

I don't know if someone is ready to work on this piece of code.  If no one is, maybe I could have a look at it (but let me warn you, I don't know C#, I'm new to .Net and new to Nant !!!! But willing to help)

Pat

Attachment: Solution.zip
Description: Solution.zip

Reply via email to