Conrad Clark
Conrad Clark

Reputation: 4536

TFS Team Build - Build fails if app_code references another project in the solution

I've using Team Build 2010 for some time, and it suddenly stopped working after some changes in the code.

More specifically, when some file in App_Code used a reference from another project in the solution. I get this error message:

c:\Builds\Venus\Sources\Branches\xxx\xxx\xxx\App_Code\xxx.cs (9): The type or namespace name 'xxx' does not exist in the namespace 'xxx.xxx' (are you missing an assembly reference?)

Is it a known problem? Is there a workaround ?

I already tried deleting and redownloading the whole workspace but got no luck.

Thanks in Advance

Upvotes: 3

Views: 431

Answers (1)

Maslow
Maslow

Reputation: 18746

This happened to me after doing a move to a web application project from a web site project. If your project is a web application project, then move the files out of the App_Code folder and delete it.

Upvotes: 0

Related Questions