Bugs item #1607209, was opened at 2006-12-01 13:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: 5
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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to