Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverlet Instrument fails to resolve WindowsBase.dll namespace #1648

Open
skerr0 opened this issue Apr 10, 2024 · 1 comment
Open

Coverlet Instrument fails to resolve WindowsBase.dll namespace #1648

skerr0 opened this issue Apr 10, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists needs more info More details are needed untriaged To be investigated waiting for customer Waiting for customer action

Comments

@skerr0
Copy link

skerr0 commented Apr 10, 2024

I require some help figuring out what might be going on with a module which is failing to instrument. The assembly in question is a net48 WPF application. There is some Fody generated code for handling property changes. The namespace causing the issue is a part of the WindowsBase.dll assembly.

I cannot make sense of why this would be failing. Any information would be appriciated.

Unable to instrument module: .\Application.WPFTests\bin\debug\net48\Application.WPF.exe Mono.Cecil.ResolutionException: Failed to resolve System.Windows.Threading.DispatcherPriority at Mono.Cecil.Mixin.CheckedResolve(TypeReference self) at Mono.Cecil.MetadataBuilder.GetConstantType(TypeReference constant_type, Object constant) at Mono.Cecil.MetadataBuilder.AddConstant(IConstantProvider owner, TypeReference type) at Mono.Cecil.MetadataBuilder.AddParameter(UInt16 sequence, ParameterDefinition parameter, ParamTable table) at Mono.Cecil.MetadataBuilder.AddParameters(MethodDefinition method) at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method) at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type) at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type) at Mono.Cecil.MetadataBuilder.AddTypes() at Mono.Cecil.MetadataBuilder.BuildTypes() at Mono.Cecil.MetadataBuilder.BuildModule() at Mono.Cecil.MetadataBuilder.BuildMetadata() at Mono.Cecil.ModuleWriter.<>c.<BuildMetadata>b__2_0(MetadataBuilder builder, MetadataReader _) at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func3 read)
at Mono.Cecil.ModuleWriter.BuildMetadata(ModuleDefinition module, MetadataBuilder metadata)
at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable1 stream, WriterParameters parameters) at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable1 stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
at Coverlet.Core.Instrumentation.Instrumenter.InstrumentModule() in //src/coverlet.core/Instrumentation/Instrumenter.cs:line 325
at Coverlet.Core.Instrumentation.Instrumenter.Instrument() in /
/src/coverlet.core/Instrumentation/Instrumenter.cs:line 148
at Coverlet.Core.Coverage.PrepareModules() in /_/src/coverlet.core/Coverage.cs:line 135`

@github-actions github-actions bot added the untriaged To be investigated label Apr 10, 2024
@Bertk Bertk added duplicate This issue or pull request already exists needs more info More details are needed waiting for customer Waiting for customer action labels May 24, 2024
@Bertk
Copy link
Collaborator

Bertk commented May 24, 2024

Please provide additional information. We use a template for issue which mention all required information e.g. version of coverlet nuget package.

Duplicate of #1221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists needs more info More details are needed untriaged To be investigated waiting for customer Waiting for customer action
Projects
None yet
Development

No branches or pull requests

2 participants