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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:50:33+00:00 2026-05-26T19:50:33+00:00

I have a build script (.bat) that invokes MSBUILD ( C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe ) that used

  • 0

I have a build script (.bat) that invokes MSBUILD (C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe) that used to work for a while but stopped working after I installed VS11 Developer Preview. Now, the build is not able to rebuild projects that include MSTest unit tests with private accessors.

I am getting

error CS0246: The type or namespace name ‘BaseViewModel_Accessor’
could not be found (are you missing a using directive or an assembly
reference?)

which pretty much means that MSBuild refuses to auto-generate the BaseViewModel_Accessor assembly. Of course, BaseViewModel is just an example – I am getting the error for every test class that requires accessors.

Those very same projects build just fine on the same machine from within Visual Studio 2010 (but not VS11).

I am aware of at least one answer to this question, but it is somewhat unsatisfactory, as VS is obviously installed on my machine, and I am not using NUnit but Microsoft’s very own unit testing framework.

I suspect that the observed behavior might have to do with the fact that VS11 is a “Developer Preview” (my VS10 is Ultimate), so it may be crippled and not able to generate the accessors. However, I am explicitly using .NET 4 MSBUILD.exe and so expecting it to be able to use whatever VS10 is using internally…

Anyway, if someone has any less invasive solutions than to remove both Visual Studio installations and .NET 4.5, and re-install everything from scratch, they would be much appreciated.

There’s got to be a way of fixing whatever got broken by installing VS11. Preferrably, I would like to keep VS11/.NET 4.5 installed, and not have to reinstall VS10 from scratch… However, I already tried “repairing” VS10 and it did not help.

  • 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-26T19:50:33+00:00Added an answer on May 26, 2026 at 7:50 pm

    To put this isse to rest, I did have to uninstall VS11, and .NET 4.5. I also had to re-install .NET 4.0, as it seemed to have been corrupted in the process.

    This wasn’t a “production” machine, btw, but it sure would have been nice to separate concerns. .NET 4.5 and VS11 installation should not have – in principle – destroyed a working .NET 4.0/VS2010 combination.

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

Sidebar

Related Questions

I have a nightly build DOS batch script that invokes devenv.exe to build a
I have a NAnt script that does a build and deployment of an ASP.Net
I have the following script set as my VS2010 pre-build script: cd $(ProjectDir) C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
I have a build script and as part of that script it copies a
I have a utility build script that gets called from a variety of project-specific
I have an ant build script that needs to pull files down from a
I'm currently experimenting with build script, and since I have an ASP.net Web Part
I have a custom script step in my build process that zips the executable.
I have a nant build script that specifies the compilation of various Visual Studio
I have a build script fragment that looks as follows: foreach(...) ... add_custom_command( OUTPUT

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.