Skip to content

How to reference Azure SDK dlls in project.json? #1317

Closed
@am11

Description

@am11

The official Azure SDK assemblies are not available via NuGet.

Under aspnet-core Web API project, which is configured to run as a worker role on Azure, I have used "Bin syntax" (https://github.com/aspnet/Home/wiki/Project.json-file#bin-syntax-wrapping-a-dll) in project.json as follow:

"frameworks": {
  "dnx451": {
    "dependencies": {
        " /* eradicated for brevity */ "
    },
    "bin": {
      "assembly": "C:\\Program Files\\Microsoft SDKs\\Azure\\.NET SDK\\v2.8\\ref\\Microsoft.WindowsAzure.ServiceRuntime.dll"
    }
  }
},

In WorkerRole.cs, I am getting Cannot resolve symbol 'ServiceRuntime' at using Microsoft.WindowsAzure.ServiceRuntime.dll.

  • Is this usage flawed?
  • In cases such as these, when NuGet package is not an option provided by vendor, can we add assembly in source tree and reference it with relative path in project.json?
  • Is there another (better, special) way to handle Azure SDK assemblies?

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