473,383 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How do I automatically update references to a class library?

I'm building a simple application that consists of two projects:
- Desktop
- DataObjects

'Desktop' consists of the forms for the app whereas 'DataObjects' consists
of utility classes that will be used by 'Desktop' and other projects [in the
future].

Whenever I add a new class to 'DataObjects', no matter what I do - ie. Build
and/or Rebuild - it doesn't seem to update the reference into Desktop. The
only way I can get this to occur is to close VStudio and then reopen the
solution.

Surely there must be an easier way to update the references?

Robert W.
Vancouver

Nov 17 '05 #1
4 3386
How is the reference being added?

In my projects, I do Add Reference, and then select the Project tab. This,
of course, assumes that DataObjects is in the same solution.

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
I'm building a simple application that consists of two projects:
- Desktop
- DataObjects

'Desktop' consists of the forms for the app whereas 'DataObjects'
consists
of utility classes that will be used by 'Desktop' and other projects [in
the
future].

Whenever I add a new class to 'DataObjects', no matter what I do - ie.
Build
and/or Rebuild - it doesn't seem to update the reference into Desktop.
The
only way I can get this to occur is to close VStudio and then reopen the
solution.

Surely there must be an easier way to update the references?

Robert W.
Vancouver

Nov 17 '05 #2
Brendan,

I also use the "Add Reference" function and the reference definitely does
work. But if a new class is added into the Class Library then rebuilding it
the class does not seem to be available to the objects that refer to it.

But once again, upon restarting the solution then the newly added class is
available.

Robert


"Brendan Green" wrote:
How is the reference being added?

In my projects, I do Add Reference, and then select the Project tab. This,
of course, assumes that DataObjects is in the same solution.

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
I'm building a simple application that consists of two projects:
- Desktop
- DataObjects

'Desktop' consists of the forms for the app whereas 'DataObjects'
consists
of utility classes that will be used by 'Desktop' and other projects [in
the
future].

Whenever I add a new class to 'DataObjects', no matter what I do - ie.
Build
and/or Rebuild - it doesn't seem to update the reference into Desktop.
The
only way I can get this to occur is to close VStudio and then reopen the
solution.

Surely there must be an easier way to update the references?

Robert W.
Vancouver


Nov 17 '05 #3
You're not getting some kind of clash between namespaces or something?

Apart from that, I'm afraid I'm out of ideas.

Cheers,
Brendan.
"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
Brendan,

I also use the "Add Reference" function and the reference definitely does
work. But if a new class is added into the Class Library then rebuilding
it
the class does not seem to be available to the objects that refer to it.

But once again, upon restarting the solution then the newly added class is
available.

Robert


"Brendan Green" wrote:
How is the reference being added?

In my projects, I do Add Reference, and then select the Project tab.
This,
of course, assumes that DataObjects is in the same solution.

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
> I'm building a simple application that consists of two projects:
> - Desktop
> - DataObjects
>
> 'Desktop' consists of the forms for the app whereas 'DataObjects'
> consists
> of utility classes that will be used by 'Desktop' and other projects
> [in
> the
> future].
>
> Whenever I add a new class to 'DataObjects', no matter what I do - ie.
> Build
> and/or Rebuild - it doesn't seem to update the reference into Desktop.
> The
> only way I can get this to occur is to close VStudio and then reopen
> the
> solution.
>
> Surely there must be an easier way to update the references?
>
> Robert W.
> Vancouver
>


Nov 17 '05 #4
Brendan,

I do have different namespaces for the Class Library and the "Forms" project
but I didn't think that matters. Anyhow, I've just learned to restart the
solution as an effective workaround.

Maybe it's a bug with Visual Studio?

Robert

"Brendan Green" wrote:
You're not getting some kind of clash between namespaces or something?

Apart from that, I'm afraid I'm out of ideas.

Cheers,
Brendan.
"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
Brendan,

I also use the "Add Reference" function and the reference definitely does
work. But if a new class is added into the Class Library then rebuilding
it
the class does not seem to be available to the objects that refer to it.

But once again, upon restarting the solution then the newly added class is
available.

Robert


"Brendan Green" wrote:
How is the reference being added?

In my projects, I do Add Reference, and then select the Project tab.
This,
of course, assumes that DataObjects is in the same solution.

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
> I'm building a simple application that consists of two projects:
> - Desktop
> - DataObjects
>
> 'Desktop' consists of the forms for the app whereas 'DataObjects'
> consists
> of utility classes that will be used by 'Desktop' and other projects
> [in
> the
> future].
>
> Whenever I add a new class to 'DataObjects', no matter what I do - ie.
> Build
> and/or Rebuild - it doesn't seem to update the reference into Desktop.
> The
> only way I can get this to occur is to close VStudio and then reopen
> the
> solution.
>
> Surely there must be an easier way to update the references?
>
> Robert W.
> Vancouver
>


Nov 17 '05 #5

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

Similar topics

1
by: Steve | last post by:
I'm building a solution using devenv at the command line (nightly script) but I can't figure out how to automatically update a web reference. Is this possible? Thanks, Steve
4
by: sparks | last post by:
As you might know that "java.lang" package are automatically imported by the java compiler so that one don't need to write the import statement of that package in the source code. Are there any...
3
by: Mark | last post by:
Hi all, What I am trying to achieve is for a user to enter a colleague identification number into field . Then they are to add the first date of holiday into field . Finally they are to add the...
2
by: C# beginner | last post by:
Hi all I have two .NET applications, one is a C# class library that interoperates with COM and the other is a C# windows application that tests the C# class library. My test application was...
1
by: C# beginner | last post by:
Hi all I posted this question earlier today. I did not get many resposes. Please help me out with this problem. Thanks a lot. ---------------------------------------------------------- I have...
4
by: BH | last post by:
I'm working on several ASP.NET projects at the same time. I have a separate web server and each has its own solution folder on my local PC. The strange thing I noticed is that one of the...
2
by: aparnasinha26 | last post by:
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
1
by: ITHELP85 | last post by:
using SQL Server 2005 I have a table SALES_ITEM, users should be able to input the Primary Keys (ItemNumberSK and InvoiceNumber), and Qty. I want the ItemName and UnitPrice fields to update...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.