TFS build error but Visual Studio works

I made a new build definition. Most of the parameters are saved by default. At the moment I'm just playing.

The problem is when I build my projects as release mode in Visual Studio 2013 everything is fine, not bugs. When TFS builds it, I have several errors:

(I had to translate it from my native language into English, sorry about that)

TemplateService.cs (80): Core.Infrastructure.Objects.PredefinedTemplate does not contain a definition for TemplateId and there is no extentionmethod TemplateId found gevonden *(something with first argument)* of the type Infrastructure.Objects.PredefinedTemplate is being accepted (possibly missing a user instruction or an assmbly-reference)

      

What I have already done:

  • Set your local copy of the linked DLLs to false and true as indicated on some websites.
  • Check assembly definition if it clears the workspace (it does)
  • Added assembly names for objects in code. i.e .: PredifinedTemplate to Core.Infrastructure.Objects.PredefinedTemplate

No matter what I do, I keep these errors! Does anyone know what's going on?

UPDATE:

As stated by James Reed, I have posted project references in NuGet packages. I ended up having to host two projects in NuGet packages. Build on TFS now works and is even deployed to the server.

Using NuGet is not my first choice due to the debugging functionality. But for these two projects, which only contain objects and data objects, this shouldn't be a problem.

+3


source to share


1 answer


You are missing an assembly reference. that is, the dll containing the definition for TemplateId

is not available on the build server.

If this is defined in the project in the same solution, then something is wrong with the project link, try deleting and re-creating the link.



If it is a binary link you have 3 options

  • Add the project to the solution and use the project reference.
  • Check the binary for the original control (not recommended)
  • Use nuget to manage your links.
+4


source







All Articles