cosj
cosj
CC#
Created by cosj on 11/5/2023 in #help
❔ Program fails with reference when private=False but works when private=True
ok, looks like adding an AssemblyResolver only works when you don't have a using to the non-private assembly in the .cs file where the AssemblyResolver is. I moved the OtherMethods() to a separate file and now it is working as expected. Thanks for pointing me in the right direction!
24 replies
CC#
Created by cosj on 11/5/2023 in #help
❔ Program fails with reference when private=False but works when private=True
That would explain why it builds. I tried using "AppDomain.CurrentDomain.AssemblyResolve += OnResolve; " and loading it like that but my code crashes before it even gets to main. I'll have a look at the GAC. Thanks!
24 replies
CC#
Created by cosj on 11/5/2023 in #help
❔ Program fails with reference when private=False but works when private=True
Yes, I was hoping it would find it using the HintPath
24 replies
CC#
Created by cosj on 11/5/2023 in #help
❔ Program fails with reference when private=False but works when private=True
What I find weird is that it builds fine with private=False. So it finds the dll while building, I think? But then uses the wrong path while running, I Think? (I'm using vscode and net framework 4.8 by the way)
24 replies