I was using .NET Framework 4.5 but my new library had .NET Framework 4.5.2 and I got the same issue when I tried to build. I solved it by updating my project from 4.5 to 4.5.2 (same as my library).
More Related Contents:
- Should ‘using’ directives be inside or outside the namespace?
- Using Xpath With Default Namespace in C#
- Getting all types in a namespace via reflection
- Visual Studio 2010 suddenly can’t see namespace?
- Getting “type or namespace name could not be found” but everything seems ok?
- How can I get all classes within a namespace?
- C# namespace alias – what’s the point?
- ‘namespace’ but is used like a ‘type’
- “Could not load type [Namespace].Global” causing me grief
- Can’t find System.Windows.Media namespace?
- namespace naming conventions
- XPATHS and Default Namespaces
- Namespace and class with the same name?
- Does C# Support Project-Wide Default Namespace Imports Like VB.NET?
- the name does not exist in the namespace clr-namespace
- What namespace will a class have if no namespace is defined
- Finding all Namespaces in an assembly using Reflection (DotNET)
- ‘CompanyName.Foo’ is a ‘namespace’ but is used like a ‘type’
- How to use XPath function in a XPathExpression instance programatically?
- Should ‘using’ directives be inside or outside the namespace in C#?
- How to add namespaces in web.config file?
- Read from xml files with or without a namespace using XmlDocument
- Should the folders in a solution match the namespace?
- System.drawing namespace not found under console application
- C# – How to check if namespace, class or method exists in C#?
- Class with same name in two assemblies (intentionally)
- Use of Namespaces in C#
- Can I import a static class as a namespace to call its methods without specifying the class name in C#?
- Creating a specific XML document using namespaces in C#
- Partial class in different namespaces