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

Script compilation failed for "Writing a script" docs sample #1304

Open
Deilan opened this issue Sep 2, 2019 · 1 comment
Open

Script compilation failed for "Writing a script" docs sample #1304

Deilan opened this issue Sep 2, 2019 · 1 comment

Comments

@Deilan
Copy link

Deilan commented Sep 2, 2019

Just followed the instructions as per docs sample:

  1. Install scriptcs via Chocolatey
  2. Copy-Paste code snippet
  3. Install RavenDB.Embedded in a workdir
  4. Launch app.csx

Log:

$ scriptcs -install RavenDB.Embedded
Installed: RavenDB.Embedded
Package installation succeeded.
Saving packages in scriptcs_packages.config...
Creating scriptcs_packages.config...
Added RavenDB.Embedded (v4.2.3, .NET 4.6.1) to scriptcs_packages.config
Successfully updated scriptcs_packages.config.

$ scriptcs app.csx
WARN: Cannot find: RavenDB.Client
WARN: Some assemblies failed to load. Launch with '-loglevel debug' to see the details
WARN: Cannot find: RavenDB.Client
ERROR: Script compilation failed. [CompilationErrorException] error CS0234: The type or namespace name 'Client' does not exist in the namespace 'Raven' (are you 
missing an assembly reference?)

image

@Deilan
Copy link
Author

Deilan commented Sep 2, 2019

There's definitely something missing: either in the docs or in the library. If the problem is with the dependency library, then it would be better to specify a version of RavenDB.Embedded with which the sample would work.

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

1 participant