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

.Net Framework 4.7.2 builds failing on latest Nuget package version 2.7.1 #176

Closed
Meigs2 opened this issue Jan 24, 2022 · 3 comments
Closed
Labels

Comments

@Meigs2
Copy link

Meigs2 commented Jan 24, 2022

Building a .Net Framework 4.7.2 app on 2.7.1 fails on the latest nuget package version with the following output:

1>  AspectInjector|2.7.1: Found 1 aspects, 0 injections
1>AspectInjector|2.7.1 : error AI_ERR0: Processing failure: System.TypeLoadException
1>     at Mono.Cecil.Pdb.SymWriter.CoCreateInstance(Guid& rclsid, Object pUnkOuter, UInt32 dwClsContext, Guid& riid, Object& ppv)
1>     at Mono.Cecil.Pdb.SymWriter..ctor()
1>     at Mono.Cecil.Pdb.NativePdbWriterProvider.CreateWriter(ModuleDefinition module, String pdb)
1>     at Mono.Cecil.Pdb.NativePdbWriterProvider.GetSymbolWriter(ModuleDefinition module, String fileName)
1>     at Mono.Cecil.Cil.DefaultSymbolWriterProvider.GetSymbolWriter(ModuleDefinition module, String fileName)
1>     at Mono.Cecil.ModuleWriter.GetSymbolWriter(ModuleDefinition module, String fq_name, ISymbolWriterProvider symbol_writer_provider, WriterParameters parameters)
1>     at Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
1>     at Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
1>     at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters)
1>     at Mono.Cecil.ModuleDefinition.Write(WriterParameters parameters)
1>     at Mono.Cecil.AssemblyDefinition.Write(WriterParameters parameters)
1>     at FluentIL.PatcherBase.WriteAssembly(AssemblyDefinition assembly, Boolean writeSymbols, Boolean verbose)
1>     at FluentIL.PatcherBase.Process(String assemblyFile, IAssemblyResolver resolver, Boolean optimize, Boolean verbose)
1>     at FluentIL.PatcherBase.Process(String assemblyFile, IReadOnlyList`1 references, Boolean optimize, Boolean verbose)
1>     at AspectInjector.Compiler.Execute(String filename, IReadOnlyList`1 references, Boolean optimize, Boolean verbose). Please submit an issue to https://github.com/pamidur/aspect-injector
1>AspectInjector : error AI_FAIL: Aspect Injector processing has failed. See other errors.

Same project does not fail on 2.6.1.

@pamidur pamidur added the bug label Jan 24, 2022
@pamidur
Copy link
Owner

pamidur commented Jan 24, 2022

@Meigs2 , could you please provide a sample project where this happens? I could not reproduce it locally

@pamidur
Copy link
Owner

pamidur commented Jan 24, 2022

Alright, I got it. Trimming executable has disabled COM support needed for native PDBs what you use by default with old-style csproj files on windows.

@pamidur
Copy link
Owner

pamidur commented Jan 24, 2022

should be fixed 2.7.2

@pamidur pamidur closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants