简体   繁体   English

错误 CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“Azure”(您是否缺少程序集引用?)

[英]error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

I have installed Microsoft.azure.data nuget package in visual studio but I m getting below error- Program.cs(1,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) below is my program code -我已经在 Visual Studio 中安装了 Microsoft.azure.data nuget 包,但出现以下错误 - Program.cs(1,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (您是否缺少程序集参考?)下面是我的程序代码 -

using Microsoft.Azure.Kusto.Data;
using System;
namespace LensDashboradOptimization
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            //var clusterUrl = "https://mykusto.kusto.windows.net";

            // replace 'WithAadUserPromptAuthentication' with your preferred method of authentication
            //var kcsb = new Kusto.Data.KustoConnectionStringBuilder(clusterUrl); 


            //Console.WriteLine(kcsb);
            // Read the first row from reader -- it's 0'th column is the count of records in MyTable
            // Don't forget to dispose of reader when done.

            var client = Kusto.Data.Net.Client.KustoClientFactory.CreateCslQueryProvider("https://help.kusto.windows.net/Samples;Fed=true");
            var reader = client.ExecuteQuery("StormEvents | count");
            Console.WriteLine(reader);
        }
    }
}

Install Microsoft.Azure.Kusto.Data nuget.安装 Microsoft.Azure.Kusto.Data nuget。 then it compiles for me.然后它为我编译。 It does give me authentication errors but not assembly reference errors.它确实给了我身份验证错误,但没有给我程序集引用错误。


using Kusto.Data.Net.Client;

namespace ConsoleApp2
{
    class Program
    {


        static void Main(string[] args)
        {

            var client = KustoClientFactory.CreateCslQueryProvider("https://help.kusto.windows.net/Samples");
            var reader = client.ExecuteQuery("StormEvents | count");
        }
    }
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 CS0234 命名空间“Microsoft”中不存在类型或命名空间名称“Reporting”(您是否缺少程序集引用?) - Error CS0234 The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (Are you missing an assembly reference?) 错误 CS0234 命名空间“MvvmCross”中不存在类型或命名空间名称“平台”(您是否缺少程序集引用?) - Error CS0234 The type or namespace name 'Platforms' does not exist in the namespace 'MvvmCross' (are you missing an assembly reference?) 错误 CS0234:命名空间中不存在类型或命名空间名称(是否缺少程序集引用?) - error CS0234: The type or namespace name does not exist in the namespace (are you missing an assembly reference?) 错误CS0234:类型或名称空间名称&#39;OAuth&#39;在名称空间&#39;Microsoft.Owin.Security&#39;中不存在(您是否缺少程序集引用?) - error CS0234: The type or namespace name 'OAuth' does not exist in the namespace 'Microsoft.Owin.Security' (are you missing an assembly reference?) CS0234 C#类型或名称空间名称&#39;Slydeextender&#39;在名称空间中不存在(您是否缺少程序集引用?) - CS0234 C# The type or namespace name 'Slydeextender' does not exist in the namespace (are you missing an assembly reference?) VS 2017 c#错误CS0234命名空间中不存在类型或命名空间名称(您是否缺少程序集引用?) - VS 2017 c# Error CS0234 The type or namespace name does not exist in the namespace (are you missing an assembly reference?) 编译器错误消息:CS0234:命名空间“传真”中不存在类型或命名空间名称“WebApp”(您是否缺少程序集引用?) - Compiler Error Message: CS0234: The type or namespace name 'WebApp' does not exist in the namespace 'Fax' (are you missing an assembly reference?) CS0234:命名空间“<namespace1>”中不存在类型或命名空间名称“<namespace2>”。 (你错过了一个程序集引用吗?) - CS0234: The type or namespace name '<namespace2>' does not exist in the namespace '<namespace1>.' (are you missing an assembly reference?) CS0234:类型或名称空间名称“ Description”在名称空间“ System.Web.Http”中不存在(您是否缺少程序集引用?) - CS0234: The type or namespace name 'Description' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?) MEF CS0234:名称空间&#39;System.ComponentModel&#39;中不存在类型或命名空间名称&#39;Composition&#39;(您是否缺少程序集引用?) - MEF CS0234: The type or namespace name 'Composition' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM