3F/vsSolutionBuildEvent

ProjectGuid & SDK-based projects

3F opened this issue · 1 comments

3F commented

For SDK-based projects the $(ProjectGuid) does not exist anymore, i.e. this property is empty by default.

Possible problem:

[ERROR]: Failed getting project from EnvDTE: An equivalent project (a project with the same global properties and tools version)
is already present in the project collection, with the path "<path_to_project_file>". 
To load an equivalent into this project collection, unload this project first.

related: 3F/DllExport#36 (comment)

Some information is still can be received from CurrentSolutionConfigurationContents, but...

3F commented

An equivalent project is already present in the project collection

After #53 we shouldn't have this problem anymore. An equivalent projects will be avoided by the new logic that was based on MvsSln:

return ProjectsDTE
.Select(p => getProjectNameFrom(p, true))

public string getProjectNameFrom(IVsHierarchy pHierProj, bool force = false)
{
return getProjectNameFrom(pHierProj.GetEnvDteProject(), force);

However, ProjectGuid behavior still is addressed to MvsSln as an actual problem because of obsolete MS feature. But this is another story: 3F/MvsSln#18