TFS Building

Did you ever encounter build issues on TFS refering to an error like the one below and not inside your IDE:

sourcedir\codefile.cs (297): ‘namespace’ does not contain a definition for ‘X’ and no extension method ‘Y’ accepting a first argument of type ‘Z’ could be found

(are you missing a using directive or an assembly reference?)


If so, this has to do with the MSBUILD Target Engine , it’s not well documented at first and you get the impression that it is a permissions issue or related.

What you need to do to resolve this is, open the build definition, navigate to the process tab and change the MSBuild Platform to the X86 version. this occurs most of the time when assemblies are not able to compile toward x64 architecture.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s