By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,759 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,759 IT Pros & Developers. It's quick & easy.

Sharing a webreference across projects

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
> 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

P: n/a
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

P: n/a

"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

P: n/a
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.