Visual Studio用のCordovaツールを使用することはできません。私はCordovaプロジェクトを開く際に次のエラーが発生します: '' ApacheCordovaToolsPackage 'パッケージが正しく読み込まれません。''ApacheCordovaToolsPackage'パッケージが正しく読み込まれず、エラーが発生しました。
は、私はすでに解決策を含め、SOでここで提案しようとしたが、これらに限定されていない:
これらのソリューションは、私の問題を解決しませんでした。合計アップするには、私はすでに試してみました何
:
- は新しい、クリーンなコルドバプロジェクトを作成します。
- Cordovaプロジェクトのフォルダ内の.vsフォルダを削除します。
- すべてのVisual Studioプロジェクトタイプをインストールします。
- Visual Studioを管理者として実行します。
- Visual Studio(およびその後のクリーンなVisual Studioのインストール)を削除する。
- Cordovaツールを削除して([追加と削除])、再インストールしてください。
- 'C:¥Users [ユーザー名]¥appdata¥local¥microsoft¥VisualStudio¥14.0¥ComponentModelCache'にあるキャッシュをクリアします。
- オプション '/ modify/installselectableitems Javascript'(hereを参照)を使用してインストーラを実行します。
- hereのようなオプションでインストーラを実行してください。
ActivityLog.xmlに記録されているエラーのように、間違ったパス定義と関係していると思います。
エラー#1:
<entry>
<record>714</record>
<time>2017/01/15 18:09:04.318</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [ApacheCordovaToolsPackage]Source: 'mscorlib' Description: Could not find a part of the path 'C:\Users\andre\AppData\Local\Microsoft\Windows\INetCookies\Low'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\andre\AppData\Local\Microsoft\Windows\INetCookies\Low'.
 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 at System.IO.FileSystemEnumerableIterator`1.CommonInit()
 at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
 at System.IO.Directory.GetFiles(String path, String searchPattern)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Telemetry.Cookies.CookieReader.GetCookiesFromFolders(List`1 paths, String browser)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.Telemetry.Cookies.CookieReader.GetCookies()
 at Microsoft.VisualStudio.MultiDeviceHybridApps.Telemetry.Reporting.solutionListener_ProjectOpened(Object sender, ProjectEventArgs e)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.Telemetry.Reporting.SendMissedProjectOpenEvents()
 at Microsoft.VisualStudio.MultiDeviceHybridApps.Telemetry.Reporting..ctor(IServiceProvider serviceProvider, SolutionEventsListener solutionListener)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.Telemetry.Reporting.Initialize(IServiceProvider serviceProvider)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage.Initialize()
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description>
<guid>{317A330D-8757-4084-8526-E8A1D165433D}</guid>
<hr>80070003</hr>
<errorinfo></errorinfo>
エラー#2:
<entry>
<record>512</record>
<time>2017/01/14 19:29:06.740</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [ApacheCordovaToolsPackage]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) No exports were found that match the constraint: 
	ContractName	Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider
	RequiredTypeIdentity	Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider

Resulting in: Cannot set import 'Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage.configurationServiceProvider (ContractName="Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider")' on part 'Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage'.
Element: Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage.configurationServiceProvider (ContractName="Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider") --> Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage

 at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)
 at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part)
 at System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part)
 at Microsoft.VisualStudio.Composition.NetFxAdapters.CompositionService.SatisfyImportsOnce(ComposablePart part)
 at System.ComponentModel.Composition.AttributedModelServices.SatisfyImportsOnce(ICompositionService compositionService, Object attributedPart)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage..ctor()
 --- End of inner exception stack trace ---
 at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
 at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, Boolean nonPublic)
 at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
 at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
 at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
 at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) No exports were found that match the constraint: 
	ContractName	Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider
	RequiredTypeIdentity	Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider

Resulting in: Cannot set import 'Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage.configurationServiceProvider (ContractName="Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider")' on part 'Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage'.
Element: Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage.configurationServiceProvider (ContractName="Microsoft.VisualStudio.MultiDeviceHybridApps.Definitions.ICordovaAppConfigurationServiceProvider") --> Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage

 at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)
 at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part)
 at System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part)
 at Microsoft.VisualStudio.Composition.NetFxAdapters.CompositionService.SatisfyImportsOnce(ComposablePart part)
 at System.ComponentModel.Composition.AttributedModelServices.SatisfyImportsOnce(ICompositionService compositionService, Object attributedPart)
 at Microsoft.VisualStudio.MultiDeviceHybridApps.VSPackages.ApacheCordovaToolsPackage..ctor()</description>
<guid>{317A330D-8757-4084-8526-E8A1D165433D}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
は誰もが私を助けることはできますか?
いくつかの追加情報:
- のWindows 10
- のVisual Studio 2015のEnterprise
VSを管理者として実行してみませんか? –
私はすでにしていましたが、私はすでに試したことの総括にそれを入れるのを忘れました。それは私の問題を解決しません。 – DaGrooveNL