Skip to content

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

Open

Description

@Deilan

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

Activity

  1. Deilan commented on Sep 2, 2019

    @Deilan
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions