当我从其他磁盘共享我的文档时如何安装异步 CTP

发布于 2024-09-30 10:18:14 字数 79 浏览 1 评论 0原文

我尝试安装 Async CTP,它说安装已成功完成,但“我的文档”中没有安装任何内容,并且我找不到示例。可以做什么来查看带有库的示例并尝试它们?

I try to install Async CTP and it says that installation was completed successfully, but nothing installs into "My Documents" and i cant find the samples. What can be done to see the samples with libraries and try them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

疾风者 2024-10-07 10:18:14

您还有另一台可以安装的机器吗?

我的上网本没有正确接受 CTP 安装,但它确实对 C# 编译器发挥了足够的作用,使该部分正常工作。然后,我从另一台安装成功的机器上复制了 AsyncCtpLibrary.dll,一切都很好。如果您也想复制示例,我相信它们也可以。

如果这是一个常见问题,我建议我们请求许可发布包含示例和库的 zip 文件。

这是一个简短的程序,可让您查看是否已安装 C# 编译器位:

public class Test
{
    static async void Main() {}
}

该程序应该会失败并出现如下错误:

Test.cs(4,22): error CS0656: Missing compiler required member
        'System.Runtime.CompilerServices.VoidAsyncMethodBuilder.Create'
Test.cs(4,22): error CS1993: Cannot find Task-related types. Are you missing a
        reference to 'AsyncCtpLibrary.dll' ?
Test.cs(4,22): warning CS1998: This async method lacks 'await' operators and
        will run synchronously. Consider using the 'await' operator to await
        non-blocking API calls, or 'await TaskEx.Run(...)' to do CPU-bound work
        on a background thread

Do you have another machine you can install on at all?

My netbook didn't accept the CTP installation properly, but it did do enough magic to the C# compiler to make that part work. I then just copied AsyncCtpLibrary.dll from another machine where the installation had worked, and all was fine. If you want to copy the samples as well, I'm sure they'd work too.

If this turns out to be a common problem, I suggest we ask for permission to publish a zip file with the samples and library.

Here's a short program to let you see if you've got the C# compiler bits installed:

public class Test
{
    static async void Main() {}
}

That should fail with an error like this:

Test.cs(4,22): error CS0656: Missing compiler required member
        'System.Runtime.CompilerServices.VoidAsyncMethodBuilder.Create'
Test.cs(4,22): error CS1993: Cannot find Task-related types. Are you missing a
        reference to 'AsyncCtpLibrary.dll' ?
Test.cs(4,22): warning CS1998: This async method lacks 'await' operators and
        will run synchronously. Consider using the 'await' operator to await
        non-blocking API calls, or 'await TaskEx.Run(...)' to do CPU-bound work
        on a background thread
红墙和绿瓦 2024-10-07 10:18:14

对我有用的是使用 Universal Extractor 提取安装程序的内容,然后运行 ​​VS10-KB0000001.msp。它安装示例、文档和补丁。

What worked for me is to extract the contents of the setup program with Universal Extractor then run VS10-KB0000001.msp. It installs the samples, documentation, and patch.

一梦等七年七年为一梦 2024-10-07 10:18:14

<块引用>

这是一个简短的程序,可让您查看是否已安装 C# 编译器位:
Test.cs(4,22):错误CS0656:缺少编译器所需的成员“System.Runtime.CompilerServices.VoidAsyncMethodBuilder.Create”

这正是我在 CTP 刷新和 MVC3 安装之后得到的结果。尝试再次删除 MVC3 并卸载/安装 CTP,但问题仍然存在。为什么安装无法正确更新编译器?

总氮

Here's a short program to let you see if you've got the C# compiler bits installed:
Test.cs(4,22): error CS0656: Missing compiler required member 'System.Runtime.CompilerServices.VoidAsyncMethodBuilder.Create'

Thats exactly what I got a, after the CTP refresh, and MVC3 install. Tried removing MVC3 again and un/install the CTP, but the problem remains. Why would the install not correctly update the compiler?

Tnx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文