خطأ MSB4062: لا يمكن تحميل مهمة "cenerteAndPersistAppinFotask"
-
21-09-2019 - |
سؤال
لقد أضفنا عددًا من مشاريع إضافة Office إلى حل TFS الخاص بنا والآن أصبح ذلك. نحن نستخدم Visual Studio و TFS 2008 (SP1). تمت إضافة 4 مشاريع ، واحدة لكل من الأهداف التالية ...
- كلمة 2003
- كلمة 2007
- Excel 2003
- Excel 2007
تقارير سجل البناء ما يلي ...
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 موجود على الخادم ويتم تثبيته بشكل صحيح في GAC. يتم تثبيت أدوات Visual Studio لـ Office (2005 و 3.0). إذا كان عن بُعد على الخادم وقم بتشغيل Visual Studio ، فيمكنني إعادة إنشاء إحدى هذه الإضافات وتجميعها بنجاح.
مساعدة ، عالقة!
المحلول
تبين أنني كنت بحاجة إلى microsoft.visualstudio.tools.applications.hosting.dll مثبتة على GAC. لقد قمت بالفعل بتثبيت microsoft.visualstudio.tools.applications.hosting.v9.0.dll ، لكن هذا لم يكن نسخة متوافقة.
لا تنتمي إلى StackOverflow