2015-11-06 66 views
0

我试图使用.Net SDK调试HDI群集。 tutorial很自我解释,但是当我跟随时,我似乎缺少一个参考。通过.Net SDK调试HDInsight群集

using System; 
using System.Collections.Generic; 
using System.Diagnostics; 
using System.Linq; 
using System.Security; 
using System.Text; 
using System.Threading.Tasks; 
using Hyak.Common; 
using Microsoft.Azure; 
using Microsoft.Azure.Common.Authentication; 
using Microsoft.Azure.Common.Authentication.Models; 
using Microsoft.Azure.Management.HDInsight; 
using Microsoft.Azure.Management.HDInsight.Job; 
using Microsoft.Azure.Management.HDInsight.Job.Models; 
using Microsoft.Azure.Management.HDInsight.Models; 
using Newtonsoft.Json; 

namespace CreateHDICluster 
{ 
    internal class Program 
    { 
     private static ProfileClient _profileClient; 
     .... 
    } 
} 

导致“类型或命名空间名称‘ProfileClient’找不到(是否缺少using指令或程序集引用?)”

的最佳答案,不论包的任何版本ProfileClient类不再包含此类 - 本教程未指定版本,并且其中一些包是预发布的。

有没有人有此工作? ProfileClient类属于什么?

谢谢

回答

0

这似乎是一个错误,因为您在项目中有正确的引用。注意开源GitHub库和类定义ProfileClient:命名空间内

https://github.com/Azure/azure-sdk-for-net/blob/21db6e5490e66af39a9c6dbf0ad10650d9ca037b/src/Authentication/Common.Authentication/Common/ProfileClient.cs

该文件存在:Microsoft.Azure.Common.Authentication

我建议提交一个问题与回购。另外请注意,请求包中携带,特别Microsoft.Azure.Common.Authentication是抢鲜

0

我相信这个问题你文章的样本中发现从认证包去除ProfileClient的是由于 - 文章的示例现在已更新。

如果你还有兴趣,你可以看看updated sample in the article

我希望这有助于!