I'm trying to do Continuous Integration using TFS 2010 for a Windows Phone 7.1 project. There are 2 resource projects (Win32 Project for localisation) and the main Windows phone project.
I have copied the project output of above 2 projects to a folder in the main WP project (inside 'MUI' folder) , and also marked the files as 'content' in build action. All works well when building and running the WP7 project from Visual Studio 2010.
But when I try to build the projects using TFS 2010 build system , the build fails with the following error "Xap packaging failed. Object reference not set to an instance of an object" . After researching about the error, i found that when files are build on the TFS agent machine, the TFS binaries(output folder) folder doesn't have an "MUI" folder but the output of the 2 resources projects get directly copied into the binaries folder, and hence failing the build.
Also i have noticed that if i add/include the files directly to the main WP project, the TFS build succeeds.(in other words fails if i configure project output to copy to WP7 project folder. Since TFS builds everything to 'binaries' folder)
How can I include those files within the WP7 XAP file (referring them) from the TFS binaries folder? (using MSBuild task? ) and the same should work with local builds within VS2010 also.
Also are there other ways to do this?
thx