Regular expressions

  • Thread starter Thread starter ìÅÂÅÄÉÎÓËÉÊ áÌÅËÓÁÎÄÒ
  • Start date Start date
Ì

ìÅÂÅÄÉÎÓËÉÊ áÌÅËÓÁÎÄÒ

Good day!
i have a little problem, which I can't undestand. In VS.NET 2003 create
emply VC# project, add empty code file, and write next simple code:
////////////
using System.Text.RegularExpressions;
class Test
{
static void Main()
{
}
}
////////////
While building, I got error message:

The type or namespace name 'RegularExpressions' does not exist in the class
or namespace 'System.Text' (are you missing an assembly reference?)

But when I compile this file using csc.exe, compiling finish with no error.
What I do wrong?
I'm sorry for my English
Thanks.
Alexandr.
 
You have referenced System.Text.RegularExpressions in your code, but you
apparently never added Regular Expressions to your list of project
references.
Go into the project explorer and add a reference to the library.

--- Nick
 
Good day!
i have a little problem, which I can't undestand. In VS.NET 2003
create emply VC# project, add empty code file, and write next
simple code: ////////////
using System.Text.RegularExpressions;
class Test
{
static void Main()
{
}
}
////////////
While building, I got error message:

The type or namespace name 'RegularExpressions' does not exist
in the class or namespace 'System.Text' (are you missing an
assembly reference?)

But when I compile this file using csc.exe, compiling finish
with no error. What I do wrong?
I'm sorry for my English

Alexandr,

You need to add a reference to the System.dll to your C# project.
 
1574455701
And why the csc.exe compiling without errors, but I don't use key
/r:system.dll?
 
Back
Top