Rank: Member
Groups: Registered
Joined: 11/30/2019(UTC) Posts: 15 Location: France
Thanks: 4 times Was thanked: 14 time(s) in 8 post(s)
|
Quote: !!!! EDIT !!!! It appears that the following has actually nothing related to the 'SupportedOSPlatform' attribute, but to the usage of the 'Polly' package...
After having migrated to VS 2022 17.14.0 Preview 3.0, one of my solution project that targets windows OS (using the `SupportedOSPlatform` attribute no longer builds in Ncrunch. It builds correctly by using Ctrl-Shift-B. NCrunch 5.14.0.3 Error: Quote: NCrunch has encountered an internal error: System.Exception: System.Exception: Unable to instrument type MyProject.Machine.AimdsClient due to exception: System.Exception: Unable to instrument method System.Void MyProject.Machine.AimdsClient::.cctor() due to exception: System.NotSupportedException: TypeSpec at nCrunch.Compiler.Cil.Methods.CilMemberReference.ResolveDeclaringType() at nCrunch.Compiler.Cil.Methods.CilMemberReference.ResolveMethodDefinition() at nCrunch.Compiler.Cil.Methods.CilMethodSpec.ResolveTemplateMethod() at nCrunch.Compiler.StaticManipulation.InstrumentationConcerns.RdiInstrumentationConcern.(CilInstruction ) at nCrunch.Compiler.StaticManipulation.InstrumentationConcerns.RdiInstrumentationConcern.InstrumentCurrentInstruction() at nCrunch.Compiler.StaticManipulation.InstrumentationConcerns.TryFinallyInstrumentationConcern.InstrumentCurrentInstruction() at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.(CilManipulationOperation , CilMethodDefinition , CilTypeDefinition , CilMethodBody , Boolean ) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.(CilTypeDefinition , CilManipulationOperation , IInstrumentationFilter[] ) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.(CilTypeDefinition , CilManipulationOperation , IInstrumentationFilter[] ) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly..() at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly..() at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly..() at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.Instrument(IInstrumentationFilter[] instrumentationFilters, PerfTracker perfTracker) at nCrunch.Compiler.CilProcessingTasks.CilInstrumentationTask.ProcessTask(IBuiltAssembly builtAssembly, ComponentInstrumentationParameters instrumentationParameters, BuildOutput output) at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.() at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.ProcessTasks(IReservedCapacity reservedBackgroundCapacity) at nCrunch.Compiler.RemoteBuildRunner.(ComponentInstrumentationParameters , BuildOutput , IBackgroundTaskProcessor ) at nCrunch.Compiler.RemoteBuildRunner.PerformPostProcessingOfBuiltAssembly(ComponentInstrumentationParameters instrumentationParameters, BuildOutput output, IBackgroundTaskProcessor backgroundTaskProcessor) at nCrunch.Core.BuildManagement.BuildEnvironment..() at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity) at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridClientDescription clientDescription, Boolean extractCoverageReportStructure)
|