cezarypiatek / MappingGeneratorIssueTracker

This is a issue tracker for MappingGenerator
2 stars 0 forks source link

Error on VS 2019 (v16.10) startup #1

Closed MalcolmEllis closed 3 years ago

MalcolmEllis commented 3 years ago

SetSite failed for package [MappingGeneratorProPackage]Source: 'PresentationFramework' Description: The 'ResourceAssembly' property of the 'Application' type cannot be changed after it has been set. System.InvalidOperationException: The 'ResourceAssembly' property of the 'Application' type cannot be changed after it has been set. at System.Windows.Application.set_ResourceAssembly(Assembly value) at MappingGeneratorPro.MappingGeneratorProPackage.<InitializeAsync>d1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>cDisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d76.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.VsTask.GetResult()

cezarypiatek commented 3 years ago

HI @MalcolmEllis

Thanks for reporting this issue. I've been testing so far on 16.9.4. It looks like I need to upgrade the VS to verify that. I will take a look at this today later. Which version of MappingGenerator are you using?

cezarypiatek commented 3 years ago

I'm not able to reproduce the issue on VS 16.10 (might be caused by other extensions) but I applied a small fix that could potentially solve the problem. Please try updating MappingGenerator to v2021.6.19