Skip to content

MSVSProject generates incorrect .sln file for MSVS 7.1 #1479

Closed

Description

@bdbaddog

This issue was originally created at: 2006-10-05 10:33:40.
This issue was reported by: mbert_tps.
mbert_tps said at 2006-10-05 10:33:40

In method PrintSolution in msvs.py where it generates the PostSolution section
of the .sln file, if running version 7.1 of MSVS the GUID created is not the
GUID of the project but of the solution. It should use the project GUID.

this code:

       else:
           self.file.write('\t\t%s.%s.ActiveCfg = %s|%s\n'
                           '\t\t%s.%s.Build.0 = %s|%s\n'  %

(self.slnguid,variant,variant,platform,self.slnguid,variant,variant,platform))

Should be something more like

       else:
           for p in self.dspfiles:
               guid = _generateGUID(p, '')            
               self.file.write('\t\t%s.%s.ActiveCfg = %s|%s\n'
                               '\t\t%s.%s.Build.0 = %s|%s\n'  %

(guid,variant,variant,platform,guid,variant,variant,platform))

ses4j said at 2007-05-01 07:51:43

I ran into this also. It should iterate over all the projects and add each of
their GUIDs to the build configuration.

The effect of this bug is that when you try to build with the SLN, nothing
happens until you reconfigure it manually..

stevenknight said at 2007-05-24 13:12:39

Integrated for next release. Many thanks, --SK

stevenknight said this issue blocks #1664 at 2007-05-24 13:12:39.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions