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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:22:25+00:00 2026-06-18T14:22:25+00:00

I recently installed Visual Studio 2012 and tried recompiling an existing project which is

  • 0

I recently installed Visual Studio 2012 and tried recompiling an existing project which is a mixed mode C++ application with a little C++/cli used to access a .net assembly required by the app.

Part of the C++/CLI implementation uses a ReaderWriterLockSlim class to protect access to a dictionary from multiple threads.

This all compiles and works fine with VS2010. After upgrading to VS0212 and .Net 4.5 however, the project now fails to compile since it cannot find the ReaderWriterLockSlim in the System::Threading namespace.

I’m fairly sure the installation is fine since I can create a new C# project and use ReaderWriterLockSlim without any problems.

A new C++ project shown below also fails. I cant find any reference to this class being deliberately removed for C++/CLI users either on here or google. Has anyone else had a similiar experience.

#include "stdafx.h"
using namespace System::Threading;

int _tmain(int argc, _TCHAR* argv[])
{
    ReaderWriterLockSlim^ rwlock = gcnew ReaderWriterLockSlim();

    return 0;
}
  • 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-18T14:22:27+00:00Added an answer on June 18, 2026 at 2:22 pm

    Be sure to pay attention to the MSDN Library article for the class when you have a problem like this. Right at the top of the article it shows you which reference assembly is required to use the class:

    Assembly: System.Core (in System.Core.dll)

    Which is not included by default in the C++/CLI project template. Fix that with Project + Properties, Common Properties, Framework and References. Review the "References" list. Click the Add New Reference button and tick System.Core from the Assemblies + Framework list.

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

Sidebar

Related Questions

Using Visual Studio 2012 which was recently installed but now I can't connect to
I have recently installed Visual Studio 2012 Pro and noticed that I don't have
I recently installed Visual Studio 2012, and I've been banging my head against my
I've recently installed the release version of Visual Studio 2012, and am having lots
Hi I recently installed Visual Studio 2012 and converting one of my projects that
I recently downloaded and installed Visual Studio 2012 RC and made a program with
I recently installed the Windows Phone 7 SDK with an existing Visual Studio Ultimate
I recently installed Visual Studio and SQL Server 2012. I'm wondering if I'm missing
I've recently downloaded and installed Windows 8 OS along with Visual Studio 2012 and
I recently installed Visual Studio 2010 and SQL Server 2012 on a Windows Server

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.