Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8149473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:51:32+00:00 2026-06-06T14:51:32+00:00

I’ve problem installing VS-SP1 and Async CTP V3 on my machine. For some reason

  • 0

I’ve problem installing VS-SP1 and Async CTP V3 on my machine. For some reason it cause any .NET application I run on that machine to crash. (good thing I’m using virtual machine and I can roll-back).

I’ve copy the update csc.exe file into .NET framework 4 directory in my Windows directory.

When I build my project with msbuild from command line everything build and works great.

When I compile the same project from within VS2010 I get compile time error that the async keyword is unknown.

I don’t care that VS does not highlight the syntax of async and await but it does bother me that I have to build the project from command line.

  1. How come the command line csc works but when using VS it does not?

  2. How can I change VS to compile the async code properly (without installing Async CTP itself)?

Thank you,

Ido.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:51:34+00:00Added an answer on June 6, 2026 at 2:51 pm

    VS2012 and the Async targeting pack is the best option, for the following reasons:

    1. The syntax is the same as in C#5, making upgrade to C#5 easier. The Async CTP has enough differences (TaskEx instead of Task classes, TaskAsync instead of Task suffixes, token parameters etc), that make upgrade a nuisance. Not difficult, just a nuisance
    2. Await/async behavior is much better and closer to C#5. In the Async CTP, an exception that occurs inside a loop will cause the entire loop to silently fail. See Retry a task for a scenario that is affected by this.
    3. There are no installation issues. The Async CTP and VS 2010 SP1 had to be installed in a certain order to avoid problems.
    4. You can expect some sort of support from MS for the targeting pack, while you can expect none for the Async pack.

    A small caveat is that installing VS2012 on a machine with VS2010 + Async CTP breaks the Async CTP. You won’t be able to use the VS2010 version to compile Async code anymore.

    As an example where the async behavior is important, consider the following very simple way of retrying a task. While the function compiles with the Async CTP, it fails SILENTLY (as in application termination silently) if an exception occurs:

    private static async Task<T> Retry<T>(Func<T> func, int retryCount)
    {
        while (true)
        {
            try
            {
                var result = await Task.Run(func);
                return result;
            }
            catch
            {
                if (retryCount == 0)
                    throw;
                retryCount--;
            }
        }
    }
    

    That said, I’ve been using the Async CTP for over a year now and the only issue was the installation order after adding Visual Studio 2010 SP1. If you get the order wrong the Asycn CTP won’t install and you will have to remove SP1 and reinstall everything in the proper order.

    Still, I would move to 2012 and the targeting pack as soon as is practical (ie the entire team is ready to switch), to avoid multiple code versions and the annoying exception behavior.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I would like to run a str_replace or preg_replace which looks for certain words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.