Builds Error RRS feed

  • Question

  • Getting assembly errors like mentioned below, don't know why after all the references are there in the solution.

    ERROR: CacheUtility.cs (13): The type or namespace name 'DataCacheFactory' could not be found (are you missing a using directive or an assembly reference?)

    Thursday, May 30, 2013 12:54 PM


  • Hi Devsoft, 

    Thanks for your post.

    When this issue happened, on build agent machine, try to build your solution using VS 2012 and MSBuild v4.0 command lien separately, ensure your solution can be built correctly.

    To build solution using Team Build, we should ensure the following steps:

    1        The solution can be built completely on Build machine using VS.

    2        Ensure the your TFS Build Service account have the permission to build this solution on the Build machine.

    3        Ensure the solution can be built completely on Build machine using MS Build command line manually. 

    Additionally, to build solution using Team Build, we need to ensure the Team Build Service can find the required dlls on build machine. We usually using the following two way to reference dlls when using Team Build:

    1        Create a Assemblies folder under Solution, and add all your dlls in this folder. After we check in the solution into TFS, the Team Build Service will get the solution from TFS to build on the Build machine, in this case, the Assemblies folder under solution will be get together. The structure like this:









    2        Create the same common folder on the Build machine as you created on your client, and the folder path is same. So when the Team Build to build the solution on build machine, it will try to find the dlls on the Build machine follow the path which your set in your project.

    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, May 31, 2013 7:42 AM