scriptcs icon indicating copy to clipboard operation
scriptcs copied to clipboard

Script compilation failed for "Writing a script" docs sample

Open Deilan opened this issue 6 years ago • 1 comments

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 avatar Sep 02 '19 10:09 Deilan

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.

Deilan avatar Sep 02 '19 10:09 Deilan