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 857069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:20:28+00:00 2026-05-15T08:20:28+00:00

I have a Console App created in VS 2010 targeting .NET 4.0. According to

  • 0

I have a Console App created in VS 2010 targeting .NET 4.0. According to Microsoft (Rick Byers) AnyCPU is no longer the default for Console Apps because, in the Microsoft way, they feel like it is a better idea to default to x86. Also, the option to change the platform to AnyCPU, or x64 for that matter, does not seem to be available.

Now, I have this Console app that I am building, and I have a Class Library project where I am writing unit tests in NUnit (I practice TDD). So, the issue is that when I go to implement the code to make my tests pass they still fail. After a while I found that it is because (even when I do it from the solution level) when the project rebuilds it is not rebuilding the console app project. This causes the reference to not get updated in my unit tests which of course means my test is executing against old code and not the newly imlemented code. Big problem.

Currently, I am having to right-click the console app and select rebuild, then right-click the test project and select rebuild EVERY time before I run my tests. This is extremely annoying.

So, back to the question, how can I make VS2010 rebuild my Console App and update the reference in my class library automatically like it did in older versions of Visual Studio?

Please do not answer with "add a build event to do it." I would very much appreciate Visual Studio to just work because I don’t want to have to remember that I need to "add a build event to do it" every time I create a new console app.

NOTE:
So far, I have tried the following workaround at:

http://connect.microsoft.com/VisualStudio/feedback/details/455103/new-c-console-application-targets-x86-by-default

Which doesn’t work for my unit test project. So I tried to delete the reference and re-add it from Visual Studio, and I get a dialog that says "Cannot add reference". So I reverted it back to the visual studio default template.

UPDATE:
I logged this as a bug with Microsoft Connect here.

  • 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-05-15T08:20:28+00:00Added an answer on May 15, 2026 at 8:20 am

    Right click Solution and select Configuration Manager.
    Find Console App in list and check the “Build” checkbox. (Elusive to me how this is not default to be checked).

    Solves my problem. Things now just work the way that I want.

    If there is a better solution, or if someone knows a way to make it default to check this for me I would appreciate the answer.

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

Sidebar

Related Questions

I have a .Net console App which using a scheduled event will start, call
i'm new to console apps and would appreciate some pointers... i have created a
I have created a console app referencing http://www.antlr.org/download/CSharp using System; using Antlr.StringTemplate; using Antlr.StringTemplate.Language;
I have created console application on VS 2008, the console app use another exe
I created a VB Console app and it defaulted to .NET 4 but I
Beginner programmer here....hope it makes sense :) I have created a console app that
I have console app A that references another console app B. B app has
I have a console app that needs to display the state of items, but
I have one console app that is doing some lengthy syncing to an ftp
I have a console app that performs a lengthy process. I am printing out

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.