I've spent a lot of the evening playing around and tweaking some
build definitions to automatically build my XNA projects on Check-In.
All of that seems to working fine, the Build definition runs and it
begins to go through the build process. I had a couple of hiccups along
the way but I am now at the stage where the actual game/game library
projects build and the content projects build. At least to a certain
extent. I appear to have hit a brick wall with any actual content.
What it has come down to is the the building of the XNA content (i.e.
converting say an image to .xnb file format) doesn't work and throws a
build error. I must add that this error does not occur at all if I do a
build from within Visual Studio with my local copy of the code. It is
only with Team Build. Here is an excert from the build log,
specifically the error causing the problem.
CoreCompile:
Building xboxControllerSpriteFont.tga ->
C:\Builds\2\Framework\Windows Framework Development
Build\Binaries\Content\xboxControllerSpriteFont.xnb
Rebuilding because asset is new
Importing xboxControllerSpriteFont.tga with Microsoft.Xna.Framework.Content.Pipeline.TextureImporter
Content\xboxControllerSpriteFont.tga : error : Building content threw InvalidOperationException: D3DERR_INVALIDCALL
[C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.CommonHelperFunctions.InitD3D()
[C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.InitD3D()
[C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.Import(String
filename, ContentImporterContext context) [C:\Builds\2\Framework\Windows
Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String
filename, ContentImporterContext context)
[C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAssetDirectly(BuildItem
item, String importerName) [C:\Builds\2\Framework\Windows Framework
Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAsset(BuildItem
item) [C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem
item) [C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem
item) [C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
[C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : at
Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings
settings, TimestampCache timestampCache, ITaskItem[] sourceAssets,
String[]& outputContent, String[]& rebuiltContent, String[]&
intermediates, Dictionary`2& dependencyTimestamps,
KeyValuePair`2[]& warnings) [C:\Builds\2\Framework\Windows Framework
Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Content\xboxControllerSpriteFont.tga : error : Inner exception: COMException: Exception from HRESULT: 0x8876086C
[C:\Builds\2\Framework\Windows Framework Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj]
Done Building Project "C:\Builds\2\Framework\Windows Framework
Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Content\Content.contentproj"
(default targets) -- FAILED.
Done Building Project "C:\Builds\2\Framework\Windows Framework
Development
Build\Sources\WorkingFolder\Framework\Development\Framework\Framework.Interface\Windows.Framework.Interface.csproj"
(default targets) -- FAILED.
Build FAILED.
I have highlighted in bold the key error(s) from the build action.
I've tried search the web for these specific error messages and anty
sort of help about using TFS with XNA. I am unclear if this is a
problem with XNA (3.1) only being compaitable with VS2008 when I'm using
TFS2010.
If anyone has any idea on a possible reason and
(hopefully) solution it would be much appreciated. If anyone knows also
if this doesn't occur with TFS2008, I would be most greatful to know. I have posted this on the TFS forums here.