StefanKert / BuildVision

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

BuildVision 3 does not load on VisualStudio 2015 #88

Closed FilRip closed 4 years ago

FilRip commented 4 years ago

Hello,

Since BuildVision is now on version 3, sometimes, VisualStudio launch but freeze when launching by double click on a .sln file. But load with success when i launch VisualStudio then load the sln by select it in VS menu "File/Open/projet or solution"

So i have try to uninstall BuildVision, restart VS then reinstall BuildVision and restart VS.

I go to "View/Others Windows/BuildVision" but i have this error : the package BuildVisionPackage can't be correctly loaded (in french, so this is my English translation). "The problem can be due to modification of the configuration, or because of install another extension. For more information, check ...ActivityLog.xml"

And so, there is the entry in ActivityLog.xml : "Begin package load [BuildVisionPackage]" "CreateInstance failed for package [BuildVisionPackage]Source: 'mscorlib' Description: Une exception a été levée par la cible d'un appel. System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.MissingMethodException: Méthode introuvable : 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'.à BuildVision.Common.Logging.LogManager.CreateLogger()à System.Lazy1.CreateValue()à System.Lazy1.LazyInitValue()à System.Lazy1.get_Value()à BuildVision.Common.Logging.LogManager.ForContext(Type type)à BuildVision.Common.Logging.LogManager.ForContext[T]()à BuildVision.Core.BuildVisionPackage..ctor() --- Fin de la trace de la pile d'exception interne --- à System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)à System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)à System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)à System.Activator.CreateInstance(Type type, Boolean nonPublic)à System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)à System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)à System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)à System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.MissingMethodException: Méthode introuvable : 'Serilog.LoggerConfiguration Serilog.FileLoggerConfigurationExtensions.File(Serilog.Configuration.LoggerSinkConfiguration, System.String, Serilog.Events.LogEventLevel, System.String, System.IFormatProvider, System.Nullable1<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'.à BuildVision.Common.Logging.LogManager.CreateLogger()à System.Lazy1.CreateValue()à System.Lazy1.LazyInitValue()à System.Lazy1.get_Value()à BuildVision.Common.Logging.LogManager.ForContext(Type type)à BuildVision.Common.Logging.LogManager.ForContext[T]()à BuildVision.Core.BuildVisionPackage..ctor()"

Of course, restart computer and/or VisualStudio does nothing. And i had no problem in v2.x before.

Thank you for your help.


My VS : VisualStudio Pro 2015 Version 14.0.25431.01 Update 3 Others extensions installed (dont know if it's important) :

PeterJeff commented 4 years ago

I am also having this problem with the same version of VS and the new BuildVision. Will swap back to using the 2.x.

sstefan1 commented 4 years ago

Can confirm. VS2015 hangs for me as well.

StefanKert commented 4 years ago

Hey folks,

thanks for raising this. I will need to investigate this further. I´ll let you know as soon as there is an update available.

bdbvb commented 4 years ago

Just an FYI, I'm getting this same issue with Visual Studio 2019 (16.4.6), and can't (usually) get BuildVision to come up, though Visual Studio itself as well as other extensions are OK. The activity log message is:

"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<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'. at BuildVision.Common.Logging.LogManager.CreateLogger() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() 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<Int64>, Serilog.Core.LoggingLevelSwitch, Boolean, Boolean, System.Nullable1, Serilog.RollingInterval, Boolean, System.Nullable1<Int32>, System.Text.Encoding)'. at BuildVision.Common.Logging.LogManager.CreateLogger() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() 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() --"

StefanKert commented 4 years ago

This should be fixed with the new version 3.0.1. If you are still seeing issues please let me know :)

Thank you a lot for your patience and sorry for the very long time taken for this fix.