471,599 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Sharing a webreference across projects

Hi there

I have 1 solution (visual studio 2005) within this solution i have many
projects, they should all be able to have the same webreference to a
webservice.

But as far as i can figure out, i must have 1 webreference per project, and
not 1 for the whole solution.

How can i solve this ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005
Nov 17 '05 #1
5 1465
Add the same webreference to several projects. This works fine for me or am
I misunderstanding your question?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Søren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:de***********@newsbin.cybercity.dk...
Hi there

I have 1 solution (visual studio 2005) within this solution i have many
projects, they should all be able to have the same webreference to a
webservice.

But as far as i can figure out, i must have 1 webreference per project,
and not 1 for the whole solution.

How can i solve this ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in
PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Nov 17 '05 #2
> Add the same webreference to several projects. This works fine for me or
am I misunderstanding your question?
That is exactly what i am trying to prevent.

We have about 40 different programs (aspx pages) that needs to talk to
different webservices, and also a few standalone applications. All in the
same solution.

I had hoped i could add the webreferences in 1 place, and then share them.

To do that i need to have them all in the same project ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Søren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:de***********@newsbin.cybercity.dk...
Hi there

I have 1 solution (visual studio 2005) within this solution i have many
projects, they should all be able to have the same webreference to a
webservice.

But as far as i can figure out, i must have 1 webreference per project,
and not 1 for the whole solution.

How can i solve this ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in
PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005


Nov 17 '05 #3
Hi,

You cannot do this, each project is an independent entity and needs to be
able to compile by itself. You will need to include the refeence in each
project.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Søren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:de***********@newsbin.cybercity.dk...
Hi there

I have 1 solution (visual studio 2005) within this solution i have many
projects, they should all be able to have the same webreference to a
webservice.

But as far as i can figure out, i must have 1 webreference per project,
and not 1 for the whole solution.

How can i solve this ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in
PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Nov 17 '05 #4

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:OA*************@TK2MSFTNGP15.phx.gbl...
Hi,

You cannot do this, each project is an independent entity and needs to be
able to compile by itself. You will need to include the refeence in each
project.
Hi there

Thanks for the claryfication.
--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Søren Reinke" <so***@reinke.fjernmig.dk> wrote in message
news:de***********@newsbin.cybercity.dk...
Hi there

I have 1 solution (visual studio 2005) within this solution i have many
projects, they should all be able to have the same webreference to a
webservice.

But as far as i can figure out, i must have 1 webreference per project,
and not 1 for the whole solution.

How can i solve this ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in
PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005


Nov 17 '05 #5
One work around for this could be the following:

Create a code library (.NEt .dll) which serves as a wrapper for all of your
webservices. This way, you will only need to add a reference to a single
assembly in each of the projects requiring webservice access.

If not all applications use all of the webservices, you could create
multiple code libraries in which you logically group your webservices.

This also means that when you recompile your webservices, you will only need
to update the webservice references in one place.

--
Of all words of tongue and pen, the saddest are: "It might have been"

Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"Søren Reinke" wrote:
Hi there

I have 1 solution (visual studio 2005) within this solution i have many
projects, they should all be able to have the same webreference to a
webservice.

But as far as i can figure out, i must have 1 webreference per project, and
not 1 for the whole solution.

How can i solve this ?

--
Best regards C.T.O. Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Simon Neve | last post: by
reply views Thread by Darren Oakey | last post: by
3 posts views Thread by Shikari Shambu | last post: by
2 posts views Thread by David | last post: by
2 posts views Thread by Jeff Dege | last post: by

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.