Problem with VS 17.7.0
Posted: Thu Aug 10, 2023 1:04 am
Hi All,
I recently updated my VS 2022 to v17.7.0. It seems that breaks the X# integration. The message I got is attached. I tried restarting and that did not help. It looks like it stops you loading any X# project.Here are the relevant entries I can find in that ActivityLog they mentioned. <entry> <record>222</record> <time>2023/08/10 00:30:03.374</time> <type>Error</type> <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source> <description>Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.Windows.Design.Host, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</description> <path>c:program filesmicrosoft visual studio2022professionalcommon7ideextensionsxsharpprojectXSharp.Project2022.dll</path> </entry> <entry> <record>461</record> <time>2023/08/10 00:30:32.998</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [XSharp Project System]</description> <guid>{E299FB7B-D273-4678-9ACF-B37B4AF04A12}</guid> </entry> <entry> <record>462</record> <time>2023/08/10 00:30:33.528</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [XSharp Project System]Source: 'mscorlib' Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Community.VisualStudio.Toolkit.AsyncPackageExtensions.RegisterToolWindows(AsyncPackage package, Assembly[] assemblies)
at XSharp.Project.XSharpProjectPackage.<InitializeAsync>d__12.MoveNext() in C:XSharpDevPublicVisualStudioProjectPackageXSharpProjectPackage.cs:line 176
--- 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>b__1>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)</description> <guid>{E299FB7B-D273-4678-9ACF-B37B4AF04A12}</guid> <hr>0x80131602</hr> <errorinfo></errorinfo> </entry>Hope this helps.
I may need to back out that update to VS.
John
I recently updated my VS 2022 to v17.7.0. It seems that breaks the X# integration. The message I got is attached. I tried restarting and that did not help. It looks like it stops you loading any X# project.Here are the relevant entries I can find in that ActivityLog they mentioned. <entry> <record>222</record> <time>2023/08/10 00:30:03.374</time> <type>Error</type> <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source> <description>Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.Windows.Design.Host, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</description> <path>c:program filesmicrosoft visual studio2022professionalcommon7ideextensionsxsharpprojectXSharp.Project2022.dll</path> </entry> <entry> <record>461</record> <time>2023/08/10 00:30:32.998</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [XSharp Project System]</description> <guid>{E299FB7B-D273-4678-9ACF-B37B4AF04A12}</guid> </entry> <entry> <record>462</record> <time>2023/08/10 00:30:33.528</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [XSharp Project System]Source: 'mscorlib' Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Community.VisualStudio.Toolkit.AsyncPackageExtensions.RegisterToolWindows(AsyncPackage package, Assembly[] assemblies)
at XSharp.Project.XSharpProjectPackage.<InitializeAsync>d__12.MoveNext() in C:XSharpDevPublicVisualStudioProjectPackageXSharpProjectPackage.cs:line 176
--- 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>b__1>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)</description> <guid>{E299FB7B-D273-4678-9ACF-B37B4AF04A12}</guid> <hr>0x80131602</hr> <errorinfo></errorinfo> </entry>Hope this helps.
I may need to back out that update to VS.
John