History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-38414
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Shaporenkov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Referenced projects don't get rebuilt

Created: 04 Apr 07 13:56   Updated: 14 Dec 07 17:23
Component/s: Unit Testing
Fix Version/s: 3.1.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive UnitDemo.zip (58 kb)


Build: 412


 Description  « Hide
I made a new solution and it worked correctly at first. I added a class library for tests, and two class libraries for things to test. Added references and ran unit tests without a manual compile and it worked fine.
Unloaded and re-loaded VS.NET and unit tests still ran fine.

HOWEVER, once I added a web project to the solution (even though the unit tests don't reference the web project), the test solution began failing.



 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 20 May 07 17:06
Given solution has different project configuration in single solution configuration.
WebSite: Debug|.NET
D1: Debug|Any CPU
D2: Debug|Any CPU
Tests: Debug|Any CPU

In Build Configuration, Debug|.NET config doesn't include D1,D2, and Tests projects.

When we execute DTE.Solution.SolutionBuild.BuildProject("Debug", ...) it tries to build D1 & D2 as dependent projects, but for unknown reason (probably a bug in VS) it starts "Debug|.NET" for dependent projects, it failes to build them. Note, that in output window it displays "Debug Any CPU", since ProjectConfig is "Debug" and "Platform" is "Any CPU", but SolutionConfig is "Debug|.NET" as seen by events.

The workaround would be to open "Build \ Configuration Manager...", select ".NET" platform and put checkmarks for each project.


Ilya Ryzhenkov - 20 May 07 17:27
One way to build project correctly may be through:
IVsSolutionBuildManager.FindActiveProjectCfg, then get_BuildableProjectCfg, then StartBuild.