ASP.Net 5项目中缺少CloudTable.Execute(以及所有非异步方法) [英] Missing CloudTable.Execute (and all non-async methods) in ASP.Net 5 Projects

查看:50
本文介绍了ASP.Net 5项目中缺少CloudTable.Execute(以及所有非异步方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我创建一个新的"ASP.Net Web应用程序",请使用Microsoft Visual Studio 2015 RC,然后转到NuGet并在其中添加对最新版本的Azure存储的引用(Install-Package WindowsAzure.Storage -Pre). CloudTable类,我只看到* Async方法:

Using Microsoft Visual Studio 2015 RC, if I create a new "ASP.Net Web Application", and go to NuGet and add a reference to the latest version of Azure Storage (Install-Package WindowsAzure.Storage -Pre), in the CloudTable class, all I see are the *Async methods:

但是,如果我创建一个新的控制台应用程序或类库(普通的类库和控制台应用程序,而不是软件包"),那么我会看到所有的方法,如我所愿:

However, if I create a new Console Application or Class Library (normal class library and console application, not a "Package" one) then I see all the methods as I expect:

这不仅是智能,方法实际上似乎缺失了.如果我使用Windows资源管理器中的软件包,则将看到dnx451,dnxcore50和net40的单独文件夹.只有net40库包含这些方法(使用JetBrains dotPeek进行查看).

And it isn't just intellisense, the methods seem to actually be missing. If I go out to the package in windows explorer I see separate folders for dnx451, dnxcore50, and net40. Only the net40 library contains those methods (using JetBrains dotPeek to look).

为什么这些方法在代码的"dnx"版本中会丢失?

Why would these methods be missing in the "dnx" versions of the code?

推荐答案

此库处于预览状态.该计划是为了支持同步方法,但是现在您可以使用Task.Wait进行同步调用.

This library is in preview. The plan is to support synchronous methods but for now you can use Task.Wait for synchronous calls.

这篇关于ASP.Net 5项目中缺少CloudTable.Execute(以及所有非异步方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆