From: SourceForge.net <no...@so...> - 2006-12-02 00:25:53
|
Bugs item #1607209, was opened at 2006-12-01 13:25 Message generated for change (Settings changed) made by ziktar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1607209&group_id=31650 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: 0.85 Status: Open Resolution: None >Priority: 8 Private: No Submitted By: Nick Lassonde (ziktar) Assigned to: Nobody/Anonymous (nobody) Summary: Crash when Project Configuration differs from Solution Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1607209&group_id=31650 |