473,587 Members | 2,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Storing source code in C:\Inetpub\wwwr oot

I've been brought onto a new project and there's a file that lays out
the preferred method of obtaining the source code.

This file starts as follows:

"Do not get the source for the web project throught SourceSafe explorer
or Visual Studio will attempt to open the web project from wwwroot, not
your work directory."

If I understand this correctly (by no means a certainty) it's saying
that storing your source code in C:\Inetpub\wwwr oot\MyProject is a Bad
Thing.

The file goes on to explain about creating the folder structure in a
different, preferred Projects area on your system.

"Create the directory structure where you want to put the web client
source, for example d:\Work\MyProje ct\Source\MyPro ject.Client.
Share that folder as a virtual directory with the name matching the
project name (do this either through IIS console or in windows
explorer). You'll now have a empty directory.

Now open Visual Studio. Use File -> Source Control -> Open from source
control... to load the solution and projects onto your local machine."

This is not how I've been doing things for the past four years. My
C:\Inetpub\wwwr oot folder stores the source code for dozens of
projects.

Have I been making a fundamental mistake? Is there de facto something
Wrong, or Bad, about using this location to store Source?

Thanks

Edward

Jun 19 '06 #1
3 2246
Hi,

te********@hotm ail.com wrote:
I've been brought onto a new project and there's a file that lays out
the preferred method of obtaining the source code.

This file starts as follows:

"Do not get the source for the web project throught SourceSafe explorer
or Visual Studio will attempt to open the web project from wwwroot, not
your work directory."

[snip]

We use the same policy in my firm. We don't use wwwroot to store the
code, but instead we map a virtual directory to an existing folder,
which may be any location accessible from your PC (in my case, it's
another partition on the harddisk).

The advantage of doing that are (off the top of my head):

- Grouping all your code in the same location. This way, you have the
web projects files in the same file structure than the referenced
projects' files.
- You don't handle web projects differently than "normal" projects
- It allows more flexibility for the user: The user may choose where he
wants to store his source code files

Disadvantage:

- When you open a solution referencing a web project, you must make sure
that the virtual directory has been created, and references the empty
directory where your source code will be placed from the source control
tool.

Note that all this is moot in Visual Studio 2005, because you can now
(finally...) choose any location you want for your web application
projects, including the file system.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 19 '06 #2

Laurent Bugnion wrote:
Hi,

[snip]

Thanks, Laurent. Seems like six of one, half a dozen of the other (in
other words, not much to choose). I think I'll stick with my way until
VS2005 ;-}

Edward

Jun 19 '06 #3
Hi,

te********@hotm ail.com wrote:
Laurent Bugnion wrote:

Hi,


[snip]

Thanks, Laurent. Seems like six of one, half a dozen of the other (in
other words, not much to choose). I think I'll stick with my way until
VS2005 ;-}

Edward


I think that if you're the only developer on your projects, your way is
fine. If you work in a team with other developers on the same web
application, though, I would recommend against using wwwroot.

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 19 '06 #4

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

Similar topics

4
4265
by: Heather | last post by:
Hi I am desparately looking for advice in relation to storing the results after selecting items from two combo boxes on a Referral form. The first combo box 'ctl Type' displays a full list of Agency Types, then the 2nd combo box displays a list of Organisations, depending upon the Agency Type Selected. The first combo box 'ctlType'...
0
981
by: Derek | last post by:
Hi All, I am trying to build a web based application using ASP.NET that I can use to store and retrieve source code samples. The question I have is what is the best way to store information that may consist of many reserved characters? I want to be able to enter and view my code samples through a web browser. The database server will be...
2
2460
by: Manish Naik | last post by:
Hi, Using ASP.Net, I want to store and retrive documents (Word, excel, etc) from SQL Server 2000 database. I have tried image type data field, but could not succed. Can any one help me please. Regards, Manish Naik
17
8021
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to read or modify this string so I don't want to store it in an INI / Text file or in registery. Can someone please tell me the best practice for this....
9
2053
by: Brad | last post by:
I have written some code to manipulate data/records in a MASTER (order header) and DETAIL (order details) tables. What I have written is too extensive to post but essentially trying to: 1. Assign to a datarow (dr1) the first record of the MASTER table 2. Assign to another datarow (dr2) the second record of the MASTER table 3. If...
5
2190
by: hfk0 | last post by:
Hi, I'm new to ASP.net, SQL Server and visual studio.net, and I'm having problem inserting and storing data from a web form to a SQL database. I created a simple ASP.NET web form, a simple SQL database, a database connection (using the SQlDataSource Web Control from the Toolbox), and created the following stored procedure in Visual...
3
2251
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When I receive the object from the web service, I'm interested in storing that object in ViewState in the web application, but I receive the error...
4
1038
by: Jeff | last post by:
Hey VS2005 / .NET 2.0 I've been developing an .net 2.0 application. I've used to save this project to my local C drive on my computer. But I think it is not a good idea to store source code on the local machine, hdd can crash and then source code is like history... So I'm thinking about moving the source code over to a server, so it...
11
10103
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have worked with application settings in VS2005 and C# for awhile, but usually with standard types. I have been trying to store a custom container/class/type in an application setting and I have seen erratic results. I am aware of one known defect where user classes do not show up in the list of types on the Property/Settings page in the...
0
7920
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...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
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. ...
0
8347
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...
0
8220
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...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
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
0
1189
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...

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.