#602 Crash when Project Configuration differs from Solution

0.85
closed-fixed
Tasks (408)
8
2006-12-02
2006-12-02
No

I have a Visual Studio solution with multiple configurations. Let's call them "Debug A", and "Debug Sln ". Some of the projects that are linked with these configs are also called "Debug A" and "Debug B". These work fine. Other projects, however, just have "Debug". These projects fail to build with Nant.

I traced the code back, and found that VcProject.IsManaged looks up the configuration based on the Solution Configuration Name, not on the Project Configuration Name. As such, when the Project & Solution name differ, then projectConfig is null, and thus an exception is thrown.

Changing VcProjectConfiguration.LinkerConfig.ImportLibrary from:

if (!Project.IsManaged(_projectConfig.Name)) {

to:

if (!Project.IsManaged(_projectConfig.SolutionTask.Configuration)) {

fixes this issue.

Discussion

  • Nick Lassonde

    Nick Lassonde - 2006-12-02
    • priority: 5 --> 8
     
  • Gert Driesen

    Gert Driesen - 2006-12-02
    • labels: 361162 --> Tasks
    • assigned_to: nobody --> drieseng
    • status: open --> closed-fixed
     
  • Gert Driesen

    Gert Driesen - 2006-12-02

    Logged In: YES
    user_id=707851
    Originator: NO

    This is now fixed in cvs, and the fix will be part of the 0.86 release.

    Thanks for the report!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks