Skip to main content

Microsoft Silverlight

Answered Question Problem with build dependencies in MS BuildRSS Feed

(0)

Eric Willeke
Eric Wil...

Member

Member

34 points

28 Posts

Problem with build dependencies in MS Build

We have a Silverlight solution with five projects in the following structure (project names changed to protect the guilty):

  • Class libraries A and B
  • Application (.xap's) C and D
  • web application (test harness) E.
  1. B references A,
  2. C & D each reference both B and A,
  3. E references C and D.

Throughout Beta 2, we have been successfully building this using MSBuild with the references listed above. Starting last night, when we updated our build server with the RTW developer tools for Silverlight, we started getting this error message:

[Any CPU/Release] CSC(0,0): error CS0006: Metadata file 'D:\BuildTemp\B.dll' could not be found
[Any CPU/Release] CSC(0,0): error CS0006: Metadata file 'D:\BuildTemp\A.dll' could not be found
[Any CPU/Release] CSC(0,0): error CS0006: Metadata file 'D:\BuildTemp\B.dll' could not be found
[Any CPU/Release] CSC(0,0): error CS0006: Metadata file 'D:\BuildTemp\A.dll' could not be found

 
The work around today was to directly add dependencies from E to all of A, B, C and D using the Project Dependencies dialog.

I believe this is a bug, as MSBuild should cascade Project references and ensure everything is built.

 

mike.snow
mike.snow

Member

Member

221 points

305 Posts

Microsoft
Answered Question

Re: Problem with build dependencies in MS Build

Eric -

This is a known issue and your work around is the correct one to take.

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Thanks,
Mike Snow
Blog : Silverlight Tips of the Day

micjohns
micjohns

Member

Member

2 points

3 Posts

Re: Re: Problem with build dependencies in MS Build

Is this an issue with MSBuild or Teambuild or both.

bwolohan
bwolohan

Member

Member

2 points

1 Posts

Re: Problem with build dependencies in MS Build

Can you give any more details on this known issue?  I'm having a problem building a solution with multiple SilverLight projects with team build and while adding the references helps it doesn't seem to fix all of the issues.

Thanks,

 Bill

ptoinson
ptoinson

Member

Member

40 points

22 Posts

Re: Problem with build dependencies in MS Build

 Likewise. This issue has been a huge pain for me. Any word? Any other workaround except keep trying different manual dependency settings till it works?

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities