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

Embedding canopy fails in configuration.fs #442

Open
TheGoddessInari opened this issue Jun 1, 2018 · 3 comments
Open

Embedding canopy fails in configuration.fs #442

TheGoddessInari opened this issue Jun 1, 2018 · 3 comments

Comments

@TheGoddessInari
Copy link

If you embed canopy into the resulting assembly (such as with Fody.Costura), it fails on line 7 of configuration.fs, when it takes the reference assembly location.

This fairly well violates the principle of least surprise, as you'd expect canopy to be embeddable and only need two executables (the application executable and the webdriver).

@lefthandedgoat
Copy link
Owner

Fails in what way? Fails to embed?

@TheGoddessInari
Copy link
Author

TheGoddessInari commented Jun 1, 2018

The type initializer for '<StartupCode$canopy>.$canopy.configuration' threw an exception. ---> System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at <StartupCode$canopy>.$canopy.configuration..cctor() in C:\projects\canopy\src\canopy\configuration.fs:line 7
   --- End of inner exception stack trace ---

At runtime. It raises an exception when embedded.

@lefthandedgoat
Copy link
Owner

It looks like the location of the assembly is lost because it is embedded.

Fody/Costura#180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants