Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Can no longer build projects that use the Polly package
arkiaconsulting
#1 Posted : Tuesday, April 22, 2025 1:49:44 PM(UTC)
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)
Remco
#2 Posted : Tuesday, April 22, 2025 11:43:49 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,262

Thanks: 980 times
Was thanked: 1316 time(s) in 1221 post(s)
Hi, thanks for sharing this issue.

It looks like they've introduced a new IL signature that NCrunch hasn't seen before. Is there any chance you can share a sample project that can produce this problem?
Remco
#3 Posted : Thursday, April 24, 2025 4:08:20 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,262

Thanks: 980 times
Was thanked: 1316 time(s) in 1221 post(s)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.045 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download