IntelliSense doesn't work in single .cs with refrences.

  • Thread starter Thread starter Afshar
  • Start date Start date
A

Afshar

Hi,

I am writing a single .cs in IDE that uses some refrences that I have
created previously as dll. I compile this refrences with /r switch in
csc.exe with no problem.
IntelliSense works with cs commands and syntaxes. But the problem is It
doesn't know my own refrences and so doesn't show my class members.
What can I do with with these? Please Help!

Regards,
Afshar Mohebbi
 
"Afshar" <[email protected]> a écrit dans le message de (e-mail address removed)...

| I am writing a single .cs in IDE that uses some refrences that I have
| created previously as dll. I compile this refrences with /r switch in
| csc.exe with no problem.
| IntelliSense works with cs commands and syntaxes. But the problem is It
| doesn't know my own refrences and so doesn't show my class members.
| What can I do with with these? Please Help!

Have you also added a using clause for each namespace that you need to
reference ?

Joanna
 
Hi Joanna,

Yes I add necessary refrences when compiling with csc.exe utility with
switch /r, but it is outside VS. Actually I don't add refrence when I
am writing code in VS beacuse it's a single .cs and not a project.
I guess I must add my assembly (dll) somewhere like
%WINDIR%\Microsoft.NET\Framework\v2.0.50727 so VS could find and use it
for IntelliSense.

Regards,
Afshar
 
"Afshar" <[email protected]> a écrit dans le message de (e-mail address removed)...

Yes I add necessary refrences when compiling with csc.exe utility with
switch /r, but it is outside VS. Actually I don't add refrence when I
am writing code in VS beacuse it's a single .cs and not a project.
I guess I must add my assembly (dll) somewhere like
%WINDIR%\Microsoft.NET\Framework\v2.0.50727 so VS could find and use it
for IntelliSense.

No, don't go messing around with assembly locations, simply add a reference
within the project manager to the assembly in its current location.

Why are you using csc when you can build from within the IDE ?

Joanna
 
Back
Top