Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

namespace Visualstudio does not exist in the namespace Microsoft, missing assembly reference

I inherited a C# Visual Studio 2010 project that I am unable to compile because it’s looking the following reference which I am unable to satisfy.

using Microsoft.VisualStudio.Tools.Applications.Runtime;

I am new to VS but from what I have researched it has something to do with the version Microsoft Office and the .Net framework version. I currently have MS Office 2003 installed (with Project 2010 and Visio 2010). The Solution requires .Net 4.0 but from what I found on the web it looks like MS Office is reverting .Net to an earlier version.

When I type in using Microsoft. Intellisense only shows

  • {}Contract
  • {}CSharp
  • {}Internal
  • {}SqlServer
  • {}VisualBasic
  • {}Win32

So I am missing the {}VisualStudio resource.

Thanks.

like image 256
Chad Avatar asked Oct 27 '11 20:10

Chad


1 Answers

I get the same error message but I was referencing:

using Microsoft.VisualStudio.TestTools.UnitTesting;

The solution for me was changing the target of .Net 4 CLIENT framework to .Net 4.0 FULL framework.

like image 67
Jeremy Thompson Avatar answered Sep 29 '22 06:09

Jeremy Thompson