Errore MSB4062: Il compito “GenerateAndPersistAppInfoTask” non potrebbe essere caricato

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

  •  21-09-2019
  •  | 
  •  

Domanda

Abbiamo aggiunto una serie di progetti Ufficio AddIn alla nostra soluzione TFS-costruito e ora è rottura. Stiamo usando Visual Studio e TFS 2008 (SP1). 4 progetti sono stati aggiunti, uno per ciascuno dei seguenti obiettivi ...

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

La build Registro riporta la seguente ...

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 presente sul server e viene installato correttamente nel GAC. Visual Studio Tools per Office (2005 e 3.0) sono tutti installati.  Se a distanza sul server ed eseguire Visual Studio posso ricreare uno di questi componenti aggiuntivi e con successo compilarlo.

Aiuto, bloccato!

È stato utile?

Soluzione

Risulta avevo bisogno Microsoft.VisualStudio.Tools.Applications.Hosting.dll installato al GAC. Avevo già installato Microsoft.VisualStudio.Tools.Applications.Hosting.v9.0.dll, ma questo non era una versione compatibile.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top