dotnet / project-system-tools

Tools for working with the C#/VB/F# project system.
MIT License
270 stars 42 forks source link

Installation fails in VS2022 #459

Closed hokb closed 1 year ago

hokb commented 1 year ago

Version: (from manifest) 1.0.2.2205601

Downloaded from Marketplace. Installed into VS2022 Community. Started. Got error:

SetSite failed for package [Visual Studio Build Manager Package]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.ProjectSystem.Tools, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.ProjectSystem.Tools, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.ProjectSystem.Tools, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.<LoadAssembly>b17_0(AssemblyName assemblyNameParam) at Microsoft.VisualStudio.ExtensibilityHosting.Utilities.SafeGetOrAdd[TKey,TValue](IDictionary2 dictionary, TKey key, Object lockObj, Func2 valueFactory) at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.LoadAssembly(AssemblyName assemblyName) at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.GetManifest(Resolver resolver, AssemblyName assemblyName) at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.TryUseFastReflection(TypeRef typeRef, Module& manifest) at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.Resolve(MethodRef methodRef) at Microsoft.VisualStudio.Composition.Reflection.MemberRef.get_MemberInfo() at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.ConstructExportedValue(RuntimeImport import, RuntimeExport export, RuntimePartLifecycleTracker importingPartTracker, PartLifecycleTracker partLifecycle, ReportFaultCallback faultCallback) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetExportedValue(RuntimeImport import, RuntimeExport export, RuntimePartLifecycleTracker importingPartTracker, Boolean lazy, PartLifecycleTracker& partLifecycle) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func`3 lazyFactory) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.<CreateValue>b11_0(RuntimeImport import) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()&#x000D;&#x000A; at System.Linq.Buffer1..ctor(IEnumerable1 source)&#x000D;&#x000A; at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() at Microsoft.VisualStudio.Composition.ExportProvider.<>cDisplayClass63_0.<CreateExport>b0() at Microsoft.VisualStudio.Composition.ExportProvider.<>cDisplayClass52_3.<GetExports>b5() at System.Lazy1.CreateValue()&#x000D;&#x000A; at System.Lazy1.LazyInitValue() at Microsoft.VisualStudio.Composition.ExportProvider.<>cDisplayClass80_12.&lt;GetExports&gt;b__2()&#x000D;&#x000A; at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()&#x000D;&#x000A; at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source) at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetExtensions[T]() at Microsoft.VisualStudio.CommonIDE.DesignTimeBuildManagerService.DesignTimeBuildManager..ctor() at Microsoft.VisualStudio.CommonIDE.DesignTimeBuildManagerService.DesignTimeBuildManager.get_Instance() at Microsoft.VisualStudio.CommonIDE.ServiceInfo.<>cDisplayClass3_0.<.ctor>b0(IAsyncServiceContainer sc, CancellationToken ct, Type st) at Microsoft.VisualStudio.CommonIDE.ServiceInfo.<>cDisplayClass15_0.<<ProfferService>b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>cDisplayClass29_0.<<AddService>b1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter1.GetResult()&#x000D;&#x000A; at Microsoft.VisualStudio.Threading.AsyncLazy1.<>cDisplayClass13_0.<<GetValueAsync>b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) at Microsoft.VisualStudio.Services.AsyncQueryService.AsyncServiceProvider.<GetServiceByGuidThrowingAsync>d23.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Services.AsyncQueryService.AsyncServiceProvider.<>cDisplayClass13_0.<<Microsoft-VisualStudio-OLE-Interop-IServiceProvider-QueryService>b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() at Microsoft.VisualStudio.Services.AsyncQueryService.AsyncServiceProvider.Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(Guid& guidService, Guid& riid, IntPtr& ppvObject) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState) at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose() at Microsoft.VisualStudio.Composition.ExportProvider.<>cDisplayClass63_0.<CreateExport>b0() at Microsoft.VisualStudio.Composition.ExportProvider.<>cDisplayClass52_3.<GetExports>b5() at System.Lazy1.CreateValue()&#x000D;&#x000A; at System.Lazy1.LazyInitValue() at Microsoft.VisualStudio.Composition.ExportProvider.<>cDisplayClass80_1`2.<GetExports>b2() at System.Lazy1.CreateValue()&#x000D;&#x000A; at System.Lazy1.LazyInitValue() at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()&#x000D;&#x000A; at System.Linq.Enumerable.Count[TSource](IEnumerable1 source) at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetExtensions[T]() at Microsoft.VisualStudio.CommonIDE.BuildManager.BuildManagerAccessor.<CreateAsync>d48.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.CommonIDE.BuildManager.BuildManagerPackage.<>c.<<-cctor>b5_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.CommonIDE.ServiceInfo.<>cDisplayClass15_0.<<ProfferService>b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>cDisplayClass29_0.<<AddService>b1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter1.GetResult()&#x000D;&#x000A; at Microsoft.VisualStudio.Threading.AsyncLazy1.<>cDisplayClass13_0.<<GetValueAsync>b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.CommonIDE.BuildManager.BuildManagerPackage.<InitializeAsync>d2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) === Pre-bind state information === LOG: Where-ref bind. Location = C:/Users/bla/AppData/Local/Microsoft/VisualStudio/17.0_2d440c94/Extensions/kd4cb1jp.dnl/Microsoft.VisualStudio.ProjectSystem.Tools.dll LOG: Appbase = file:///C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/ LOG: Initial PrivatePath = NULL Calling assembly : (Unknown). === LOG: This bind starts in LoadFrom load context. WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). LOG: Using application configuration file: C:\Users\bla\AppData\Local\Microsoft\VisualStudio\17.0_2d440c94\devenv.exe.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Attempting download of new URL file:///C:/Users/bla/AppData/Local/Microsoft/VisualStudio/17.0_2d440c94/Extensions/kd4cb1jp.dnl/Microsoft.VisualStudio.ProjectSystem.Tools.dll.

drewnoakes commented 1 year ago

@hokb can you please try repairing your VS installation, then trying to install the extension again? Usually if an assembly fails to be found it's a problem that occurred with the installation itself, and retrying can resolve it. Let us know if that works for you. Thanks!

drewnoakes commented 1 year ago

I cannot see any action we could take here. If the problem persists, please let us know and we will re-open this.