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

Can't find dependency when loading assembly #84

Open
hdsheena opened this issue Nov 22, 2023 · 1 comment
Open

Can't find dependency when loading assembly #84

hdsheena opened this issue Nov 22, 2023 · 1 comment
Labels
question Requesting information

Comments

@hdsheena
Copy link

2023-11-22T08:19:44.4700133-08:00 [DEBUG] dbContextTypeName parameter is null
2023-11-22T08:19:44.8612102-08:00 [INFO] Looking for DinkToPdf
2023-11-22T08:19:45.1525540-08:00 [INFO] Not found - DinkToPdf

I've tried running from the command line so I can specify dbContextTypeName (which changes the debug log to show it but doesnt change the next issue)
DinkToPdf isn't even the first referenced dependency.
Ideas to debug are appreciated!

@msawczyn
Copy link
Owner

Rather than reading from your build output directory, do a 'Publish' and read from that directory. It's likely to have more of the dependencies in it. The search pattern during parsing is

  1. The current directory for the parser (installation directory of the extension)
  2. Directory the assembly to be parsed is in
  3. The GAC

Then it gives up. Best if all the dependencies (and their dependencies) are in the input assembly's directory except, of course, for system stuff that's in the GAC ... no need to copy those.

The parser has to create an instance of your DbContext so it can walk through its model and pull the relevant details.

This is the most troublesome part of the parser. I'd love it if someone who's done this kind of thing before would offer a pull request on it, but that hasn't happened yet ☹️ .

@msawczyn msawczyn added the question Requesting information label Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Requesting information
Projects
None yet
Development

No branches or pull requests

2 participants