Skip to content
Discussion options

You must be logged in to vote

Glad it works.

Your addition is the key detail for anyone finding this later: in a multi-project solution, both Environment.CurrentDirectory and AppContext.BaseDirectory resolve against the startup project — BddMain here — not against the project whose code happens to be executing. BddPDF asking for Logo/... therefore looks inside BddMain's output folder. That is also why the framework moniker you saw was net10.0-windows rather than net10.0: BddMain targets Windows, BddPDF does not.

Worth keeping in mind if you later move the logo into BddPDF itself — the file still has to end up in the startup project's output directory to be found at that relative path.

If this resolved it, could you ma…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Thominho
Comment options

Answer selected by jmr1912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants