Using "MSBuild.ExtensionPack.Tfs.DevEnv" task from assembly "C:\Program Files (x86)\MSBuild\ExtensionPack\\MSBuild.ExtensionPack.Tfs.dll".
Task "MSBuild.ExtensionPack.Tfs.DevEnv" (TaskId:563)
error MSB4018: The "MSBuild.ExtensionPack.Tfs.DevEnv" task failed unexpectedly.
error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.
error MSB4018: at MSBuild.ExtensionPack.Tfs.DevEnv.Execute() in D:\Projects\MSBuildExtensionPack\Releases\3.5.7.0\Main3.5\TFS\DevEnv.cs:line 307
error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
Done executing task "MSBuild.ExtensionPack.Tfs.DevEnv" -- FAILED. (TaskId:563)
Done building target "AfterCompile" in project "TFSBuild.proj" -- FAILED.: (TargetId:796)
My build script has the following:
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>
<MSBuild.ExtensionPack.Tfs.DevEnv TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Solution="$(SolutionRoot)\%(InstallerFile.Identity)" SolutionConfiguration="$(Config)" SolutionPlatform="" Target="Build" Version="10" />
In the build log:
DevEnvDir = *Undefined*
Does this have anything to do with this error?
Thank you
Comments: ** Comment from web user: mdobrowolski **
After taking a break from this for a while, and taking a look at this again this morning... i realized that there was a new tfs package for tfs2010 (don't know how I didn't see this before). I've modified my build script to now use the tfs2010 version, but now I get the following error:
Done building target "CoreCompileSolution" in project "TFSBuild.proj".: (TargetId:38)
Target "AfterCompileSolution: (TargetId:4691)" in project "C:\BuildDirectory\2\CommonPlatform\CP_Main\BuildType\TFSBuild.proj" (target "CompileSolution" depends on it):
Using "MSBuild.ExtensionPack.Tfs2010.DevEnv" task from assembly "C:\Program Files (x86)\MSBuild\ExtensionPack\\MSBuild.ExtensionPack.Tfs2010.dll".
Task "MSBuild.ExtensionPack.Tfs2010.DevEnv" (TaskId:3687)
Command: (TaskId:3687)
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\DevEnv.com "C:\BuildDirectory\2\CommonPlatform\CP_Main\Sources\SCIP.sln" /Build "Debug|x64" /Project "C:\BuildDirectory\2\CommonPlatform\CP_Main\Sources\SCIP\Installer\CeligoInstaller\CeligoInstaller.isproj" /Out "C:\BuildDirectory\2\CommonPlatform\CP_Main\Binaries\x64\Debug\\SCIP_DevInstallBuildLog_x64_Debug.txt" (TaskId:3687)
The "DevEnv" task is using "DevEnv.com" from "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\DevEnv.com". (TaskId:3687)
Microsoft (R) Visual Studio Version 9.0.30729.1. (TaskId:3687)
Copyright (C) Microsoft Corp. All rights reserved. (TaskId:3687)
Package 'Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage, Microsoft.VisualStudio.TeamFoundation.VersionControl, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed to load. (TaskId:3687)
I've looked in the private assemblies for visual studio 2008 (note: the compatability pack was installed so that visual studio 2008 would work with tfs 2010), and I can't seem to find the dll. There's a *.VersionControl.Client.dll, but no *.versioncontrol.dll. Does anyone have any insight into this issue? Any help would be greatly appreciated.