BuildVision fails when VS loads a solution
See original GitHub issueI’m running a fresh install of VS 2019 Professional version 16.5.4. BuildVision 3.0.0.104 is installed.
On loading a solution while VS starts, I get a popup “The ‘BuildVisionPackage’ package did not correctly. The problem may have been caused by a configuration change or the installation of another extension. You can get more information by examining the file <path hidden>\ActivityLog.xml. Restarting Visual Studio could help to resolve this issue. Continue to show this error message?”
Restarting VS or Windows didn’t help, the error reoccurred. The solution is on .NET Framework 4.6.1.
The log contains the following error:
CreateInstance failed for package [BuildVisionPackage]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.MissingMethodException: Method not found: 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable`1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable`1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable`1<Int32>, System.Text.Encoding)'.
 at BuildVision.Common.Logging.LogManager.CreateLogger()
 at System.Lazy`1.CreateValue()
 at System.Lazy`1.LazyInitValue()
 at System.Lazy`1.get_Value()
 at BuildVision.Common.Logging.LogManager.ForContext(Type type)
 at BuildVision.Common.Logging.LogManager.ForContext[T]()
 at BuildVision.Core.BuildVisionPackage..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.MissingMethodException: Method not found: 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable`1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable`1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable`1<Int32>, System.Text.Encoding)'.
 at BuildVision.Common.Logging.LogManager.CreateLogger()
 at System.Lazy`1.CreateValue()
 at System.Lazy`1.LazyInitValue()
 at System.Lazy`1.get_Value()
 at BuildVision.Common.Logging.LogManager.ForContext(Type type)
 at BuildVision.Common.Logging.LogManager.ForContext[T]()
 at BuildVision.Core.BuildVisionPackage..ctor()
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (3 by maintainers)
Top Results From Across the Web
StefanKert/BuildVision: A Visual Studio extension to ...
BuildVision activates when Visual Studio starts the process of building, rebuilding or cleaning projects (solution). BuildVision tool window and Visual Studio ...
Read more >How can I fix the Microsoft Visual Studio error
EditorPackage' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another ...
Read more >"Construction of frame content failed." [Build Vision extension]
This issue seems to be caused by the Build Vision extension and not Visual Studio. Please file an issue with that product at...
Read more >BuildVision
BuildVision activates when Visual Studio starts the process of building, rebuilding or cleaning projects (solution).
Read more >Visual Studio 2022 Community Project not load solution
Open Developer Command Prompt for VS 2022 Community > type and run devenv /ResetSettings . Right-click VS 2022 and run it as administrator....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi folks!
Thanks for the detailed analysis of this issue 😃. This really saved me some time. I just created a .vsix package with a downgraded Serilog version. I am currently not able to reproduce it, so if somebody that is facing this issue could check it I´d greatly appreciate it 😃.
BuildVision_3_0_2_preview.zip
I can confirm that GitHub’s version of Serilog.dll ist out-dated.
I’ve run following command in both the user and the application extensions path:
In the user extensions folder Serilog is only used by BuildVision:
However, in the application extension folder serilog is found in the subfolders of both GitHub and Xamarin: