roslyn: Roslyn.Compilers.Extension.SetGlobalGlobalPropertiesForCPS throwing exception
in latest d16.0 with latest Roslyn preview 3, we get this
Microsoft.VisualStudio.Composition.CompositionFailedException
HResult=0x80131500
Message=An exception was thrown while initializing part "Roslyn.Compilers.Extension.SetGlobalGlobalPropertiesForCPS".
Source=Microsoft.VisualStudio.Composition
StackTrace:
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass15_0.<GetExportedValueHelper>b__0()
at Microsoft.VisualStudio.Composition.DelegateServices.<>c__DisplayClass2_0`1.<As>b__0()
at System.Lazy`1.CreateValue()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Inner Exception 1:
MissingMethodException: Method not found: 'Microsoft.VisualStudio.ProjectSystem.IProjectServices Microsoft.VisualStudio.ProjectSystem.IProjectService.get_Services()'.
it is due to this change
…
according to @davkean this is intentional public API changes.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (25 by maintainers)
@yodax the issue is that the project system intentionally made a breaking change in VS 2019
This:
Microsoft.VisualStudio.ProjectSystem.IProjectServices Microsoft.VisualStudio.ProjectSystem.IProjectService.get_Services()
Is now this:
Microsoft.VisualStudio.ProjectSystem.ProjectServices Microsoft.VisualStudio.ProjectSystem.IProjectService.get_Services()