473,714 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Jun 21 '06 #1
3 1566
"Afshar" <af************ @gmail.com> a écrit dans le message de news:
11************* *********@m73g2 00...legr oups.com...

| 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

--
Joanna Carter [TeamB]
Consultant Software Engineer
Jun 21 '06 #2
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%\Micros oft.NET\Framewo rk\v2.0.50727 so VS could find and use it
for IntelliSense.

Regards,
Afshar
Joanna Carter [TeamB] wrote:
"Afshar" <af************ @gmail.com> a écrit dans le message de news:
11************* *********@m73g2 00...legr oups.com...

| 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

--
Joanna Carter [TeamB]
Consultant Software Engineer


Jun 22 '06 #3
"Afshar" <af************ @gmail.com> a écrit dans le message de news:
11************* *********@g10g2 00...legr oups.com...

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%\Micros oft.NET\Framewo rk\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

--
Joanna Carter [TeamB]
Consultant Software Engineer
Jun 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1685
by: Pete | last post by:
Hi, Can anyone tell me why intellisense auto completion etc doesn’t work when writing VB script on asp.net pages in VS.net. If I load a legacy asp page intellisense works fully in the VB script, as does colour coding etc, but if I work on an asp.net page there is no sign of intellisense in the script at all, or colour coding, case correction,
1
1778
by: Guy | last post by:
I've written a DLL assembly in C#. I've built the DLL, and reference it from other projects. The assembly contains a single file, containing a single abstract class. This class contains loads of static "helper" methods, as well as a load of nested abstract classes that also contain static "helper" methods. This set up allows me to write code like the following FormMethods.BusinessObjectEvents.HandleIsEditChanged()...
1
2209
by: Christopher W. Douglas | last post by:
I'm working in VB.Net, using Visual Studio 2003. I have a project, let's call it Foo, that contains common methods, forms, and objects I use in other projects. It compiles as Foo.dll, which I then reference from the project that needs it. Let's say I have a method, Bar, that I want to access from another project. If I add a public module Methods to Foo, and add a public method Bar to Methods, I can call it from my other project a...
1
1895
by: Yaron | last post by:
Hi, I have a custom ListView-type control that I designed a few months ago. The control is completely stable and functional. However, often, the Visual Studio .NET IDE's Intellisense will lose and not display members not contained inside of Control (which my control is inherited from). Despite this, program execution still works fine; Intellisense just stops displaying these members, is all. If I close down Visual Studio and open it again,...
9
2679
by: Ulf Lindback | last post by:
Hi! We have an application surveillance product with a number of API's for different languages; one of them is a C API. Now I wonder how we can supply intellisense to our Visual Studio.Net (native C/C++) users (preferably both VS 7.0 and 7.1). I would like to have something like the parameter info you get for e.g. printf when you enter the opening parenthesis, printf(
12
4831
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode. When this happens its time to close VS C++.NET, which can only be done via the Windows Task Manager. I tried repairing C++. It did seem to help, but the problem is back a few hours later. I will try creating a new project, copy over source files,...
2
1179
by: Natan Vivo | last post by:
Can anyone tell me what exactly what makes intellisense works for custom controls in aspx pages in VS 2005? I just installed Atlas in my office computer, created a new atlas project and it doesn't show any code completion dialog when I type "<atlas:". At home I have exactly the same version of VS 2005, and it works perfectly. I even had to format and reinstall everything here, but it still doesn't work.
2
2699
by: Shehab Kamal | last post by:
I have a C# .NET 1.1 solution that consists of 2 projects. The first project is a class library that has well formed XML documenation. In this project IntelliSense shows me the description of each method. I have added a reference to this class library in the second project. But IntelliSense doesn't show me the description of any method. Note: I have compiled the class library so that it generates a doc file named assemblyname.dll.xml but...
3
340
by: Travis | last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the Intellisense for that program. I went to try Visual Basic, and the intellisense is so much different. I'll try to make an example: Say I want to write: MessageBox.Show("Hi there") In C#, once I type just a single "M," everything (objects, classes, everything) that begins with M will appear in the intellisense list. Once you get to "Mes" MessageBox will be selected...
0
8808
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9316
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6637
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4727
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3159
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2524
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.