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

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
 
J

Joanna Carter [TeamB]

"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
 
A

Afshar

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
 
J

Joanna Carter [TeamB]

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top