【发布时间】:2021-12-05 09:21:44
【问题描述】:
我需要使用几个包在 C# 中的 Synapse 中运行笔记本。运行下面的sn-p,报错:
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.Azure;
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Auth;
using Microsoft.Azure.Storage.Blob;
using Microsoft.Azure.KeyVault;
(1,17): error CS0234: The type or namespace name 'IdentityModel' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
(3,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
(4,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
(5,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
(6,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
(7,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
我参考了this文档并尝试使用以下代码安装包:
#r "nuget: Azure.Storage.Blobs, 12.10.0"
我收到以下错误:
Installing package Microsoft.Azure.Storage.Blobs, version 12.10.0...Installing package Microsoft.Azure.Storage.Blobs, version 12.10.0....../tmp/nuget/8572--6c519d5e-0a47-4b01-8cdb-d3d9d5a2562c/Project.fsproj : error NU1101: Unable to find package Microsoft.Azure.Storage.Blobs. No packages exist with this id in source(s): https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json, nuget.org
是否可以在 Synapse Notebooks 中使用这些包?
【问题讨论】:
标签: c# .net nuget azure-synapse