The project that constructs our VS extension installer (VSIX) fails on a TFS build machine
The "ValidateVsixManifest" task failed unexpectedly. System.TypeInitializationException: The type initializer for 'Microsoft.VsSDK.Build.Tasks.ExtensionManagerUtilities' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Settings.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
The Visual Studio SDK is installed. The 'not found' file is present on the machine. So I tried modifying the PATH environment variable in a pre-build step thus
<PreBuildEvent>set PATH=%PATH%;"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Common\Assemblies\v4.0"
</PreBuildEvent>
Has anyone solved this little puzzle or see what I did wrong?
Thanks!