Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11914

.NET documentation / Start Using the .NET SDK page / code throws an exception

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • sdk

    Description

      Problematic behaviour:

      On page https://docs.couchbase.com/dotnet-sdk/current/hello-world/start-using-sdk.html

      if we go If we go to Local Couchbase Server code example and push 'Run code' we get an issue:

      /opt/couchbase/var/tmp/play/Program.cs(1,2): error CS7011: #r is only allowed in scripts [/opt/couchbase/var/tmp/play/project.csproj] 

      It happens because of the string:

      #r "nuget: CouchbaseNetClient, 3.4.8" 

      It means we need to install CouchbaseNetClient, version 3.4.8, and should be carried out of the code snippet so it can run properly.

      Expected behaviour:

      On the page for the previous version all works good: https://docs.couchbase.com/dotnet-sdk/3.3/hello-world/start-using-sdk.html

      If we go to Local Couchbase Server code example and push 'Run code' we get normal output:

      {
        "name": "Ted",
        "age": 31
      }
      {
        "greeting": "Hello World"
      } 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard.smedley Richard Smedley
            ihor.pavlov Ihor Pavlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty