I am getting this error when I am adding 'using System.Timers' in visual studio 2013
using System.Timers;
Error:
The type or namespace name 'Timers' does not exit in the namespace 'System' (are you missing an assembly reference?)
I am getting this error when I am adding 'using System.Timers' in visual studio 2013
using System.Timers;
Error:
The type or namespace name 'Timers' does not exit in the namespace 'System' (are you missing an assembly reference?)
The System.Timers
namespace is in the System.dll
assembly.
Either you have accidentally removed the reference to System.dll
, or you have created some other identifier named System
that is interfering with your declaration.
Since you are not very sharing I created a test project. A PCL (Portable Class Library) project. I just took all platforms, including Silverlight 5.
When I add the using
you are talking about, it indeed says the namespace doesn't exist. So it seems to be you have a project type that doesn't support System.Timers
.
To support Guffa's assumption of removing the System
assembly, indeed, that gives the exact same error message too.
Depending on your project you might need to add a reference to be able to import the namespace.
To do open your project explorer and rightclick "references" -> "add reference"