468,785 Members | 1,645 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,785 developers. It's quick & easy.

Web Services project

Is there a way to create a web service project that has a proper project
file (e.g. csproj), instead of having it be file based where whatever
happens to be in the directory magically becomes part of the project?

Thanks
Feb 24 '06 #1
1 1184
Frank,

Any project should have a csproj file...

It's usually created in My Documents\Visual Studio 2005\Projects by default.
But if you want more control here's what I do:

I first create a new visual studio project of the type blank solution. To do
this I go to New - Project and then in the New Project window expand the
"Other Projects" node and select Visual Studio Solutions. Then select "Blank
Solution" in the Templates pane name the blank solution whatever you'd like,
set it's location if you don't want to use the default, and click "OK".

Now in the solution explorer you will have a blank solution (with the name
you gave it) with nothing in it. Right click on the Blank Solution and click
"Add - New Website". Select "ASP.NET Web Service" and set the location to
File or HTTP (I prefer HTTP and I use virtual directories so that I can
place the files right into the solution folder.)

The following instructions are for creating a HTTP website using a virtual
directory:

Select "HTTP" in the location drop down.

Select the language for the site.

Click the "Browse" button.

In the window that opens the second icon of a folder in the top right is for
creating a new virtual directory. Click that folder icon.

In the New Virtual Directory window that opens give the directory an
appropriate alias such as: MyWebService and then click the "Browse" button.

Browse to the location you put your blank solution folder in. Enter the
solution folder itself and then click the "Create New Folder" icon. Create a
folder with the same name you gave for the "Alias Name" select that folder
and click "Open".

Now click the "OK" button.

You will now have a new IIS website who's files are all stored inside the
virtual directory folder inside your solution folder.
--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Frank Rizzo" <no****@nospam.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
Is there a way to create a web service project that has a proper project
file (e.g. csproj), instead of having it be file based where whatever
happens to be in the directory magically becomes part of the project?

Thanks

Feb 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Chris Dunaway | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.