Aurelius
macOS console app build won't open native dylibs dependencies
I already tried changing code signatures as well as enabling the DYLIB debug env vars, but it won't open my native dylibs
I also can't sign the app itself because if I do, it fails to load dotnet dylibs.
Any idea how I can solve this? I already googled for quite a while with no luck
The error is simply that it tried to find the file in multiple paths, including the path the file is located (local to the built dotnet executable), and failed, with no other info
2 replies
✅ Ported an app to .NET 7, rebuild all my dependencies, app refuses to load them
READ THIS FIRST: I tried all the typical debugging methods such as assembly binding logs and whatnot, to little to no results. This isn't easily solved with google.
Hey everyone,
I was porting an app to .NET 7 (from .net framework 4.6), and I keep having an assembly not found exception from my dependencies. I tried ProcMon and tools that show me the assembly binding failures, but for some reason nothing shows there. I also tried Dependency Walker but it just freezes while loading them.
I'm not sure if the host that runs the app (since modern .NET uses an app host to actually run the app) is preventing this from going to logs and therefore it's being very hard to debug.
I also have other issues with VS2022, where it either randomly (not always) fails to build due to metadata file missing for my main dependency (even tho it's being built in one of the projects that errors with that, multiple attempts to build usually "fix" that), and also where the main dependency's project shows warnings about the types I create there being found in two places (which are the dependency in both cases).
I tried doing
dotnet publish
for the 3rd party dependencies, so not sure if that's related?
I'd really appreciate some help here as I never went beyond .NET Framework until now.
Thank you very much for your help!92 replies