scriptcs
scriptcs copied to clipboard
Script compilation failed for "Writing a script" docs sample
Just followed the instructions as per docs sample:
- Install scriptcs via Chocolatey
- Copy-Paste code snippet
- Install RavenDB.Embedded in a workdir
- 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?)

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.