StefanKert / BuildVision

A Visual Studio extension to visualize the building process.
MIT License
261 stars 43 forks source link

LoadException with newest VS 2019 16.2.0 Preview 3.0 #79

Closed Stelzi79 closed 5 years ago

Stelzi79 commented 5 years ago

Visual Studio Version

Microsoft Visual Studio Enterprise 2019 Preview Version 16.2.0 Preview 3.0

BuildVision version

3.0.0.90 (the version from the VSIX gallery dev-build feed)

Steps

or

Expected

Actual

ErrorEntry from ActivityLog.xml

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.Nullable1&lt;Int64&gt;, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable1&lt;Int32&gt;, System.Text.Encoding)&apos;.&#x000D;&#x000A; at BuildVision.Common.Logging.LogManager.CreateLogger()&#x000D;&#x000A; at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()&#x000D;&#x000A; at System.Lazy1.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.Nullable1&lt;Int64&gt;, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1<System.TimeSpan>, Serilog.RollingInterval, Boolean, System.Nullable1&lt;Int32&gt;, System.Text.Encoding)&apos;.&#x000D;&#x000A; at BuildVision.Common.Logging.LogManager.CreateLogger()&#x000D;&#x000A; at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()&#x000D;&#x000A; at System.Lazy1.get_Value() at BuildVision.Common.Logging.LogManager.ForContext(Type type) at BuildVision.Common.Logging.LogManager.ForContext[T]() at BuildVision.Core.BuildVisionPackage..ctor()

Stelzi79 commented 5 years ago

Seems to be some problem with Serilog.

StefanKert commented 5 years ago

Thanks for bring this up. I had no time yet to install the latest preview but will do so asap. I´ll let you know as soon as I have more information.

StefanKert commented 5 years ago

Hi @Stelzi79 , I just checked with the latest preview and it seems like it is working. Is this issue resolved for you as well?

Stelzi79 commented 5 years ago

Well now it is somehow working again for me. Maybe a VS Preview or net core preview issue on my end and I worked with Blazor quiet a bit. I will report it if I have that problem again.

StefanKert commented 5 years ago

Would it be ok for you if I close this issue and you reopne it as soon as this issue comes back?

Stelzi79 commented 5 years ago

Yes that would be OK. I will reopen if it comes back.