Fehler MSB4062: Die „GenerateAndPersistAppInfoTask“ Aufgabe konnte nicht geladen werden

StackOverflow https://stackoverflow.com/questions/1560838

  •  21-09-2019
  •  | 
  •  

Frage

Wir haben eine Reihe von Office AddIn Projekten unserer TFS gebaute Lösung gegeben, und jetzt ist es zu brechen. Wir sind mit Visual Studio und TFS 2008 (SP1). 4 Projekte wurden hinzugefügt, eine für jede der folgenden Ziele ...

  • Word 2003
  • Word 2007
  • Excel 2003
  • Excel 2007

Der Build Log meldet die folgenden ...

C:\Program Files\MSBuild\Microsoft.VisualStudio.OfficeTools2.targets(116,9): error MSB4062: The "GenerateAndPersistAppInfoTask" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Applications.Hosting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Hosting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.

Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll auf dem Server vorhanden und korrekt im GAC installiert. Visual Studio Tools for Office (2005 & 3.0) werden auch alle installiert.  Wenn die Fernbedienung auf den Server, und führen Sie Visual Studio kann ich neu erstelle eine dieser Add-In und es erfolgreich kompilieren.

Hilfe, fest!

War es hilfreich?

Lösung

Stellt sich heraus, ich brauchte Microsoft.VisualStudio.Tools.Applications.Hosting.dll im GAC installiert. Ich hatte schon Microsoft.VisualStudio.Tools.Applications.Hosting.v9.0.dll installiert, aber dies war nicht eine kompatible Version.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top