关于项目和解决方案组织的最佳实践 [英] Best Practices regarding Organiztion of Projects and Solutions
问题描述
嗨:
我刚刚收购了Visual Studio 2010,并希望创建可以用于大量相关应用程序的Web项目和组件以及Web服务我在自己的网站上以及我可以在其他网站上使用的一些组件。
我已经阅读了一些关于此的文章,我很坦率地感到困惑。
I've just acquired Visual Studio 2010 and would like to create Web Projects and components and web services that I can leverage for a number of related applications that I have on my own site as well as some components that I could use on other sites. I've read a few articles on this and am quite frankly getting confused.
假设我的公司是ABC.com。 实际上,我的所有开发都是针对Web的。 这是我正在考虑的两种方法。 第一种是在c:\\inetpub \wwwroot \abc 创建一个文件夹。然后在名为ABC.com.App1的
文件夹中创建我的第一个Web应用程序,并创建一个名为App1的新解决方案。 通过这种方式,我可以在App1解决方案下创建其他项目并利用它们(跟我一起 - 我是项目中的新手,并不完全确定我会怎么做)。 据推测,如果我以相同的方式创建一个新的,主要是不相关的解决方案,那么
- App2及其下的项目,我可能仍然可以在App1中引用组件。
Let's say my company is ABC.com. Virtually all of my development is for the Web. Here's two approachs that I'm looking at. The first is to create a folder at c:\\inetpub\wwwroot\abc and then create my first Web application in that folder with Name as ABC.com.App1 and create a new solution called App1. This way I could create other projects under the App1 solution and leverage them (bear with me - I'm a newbie in projects and not exactly sure how I would do that). Presumably, if I create a new, mainly unrelated solution in the same way - App2 with project under it, I might still be able to reference components in the App1.
My第二种方法是使用location创建我的第一个Project: c:\\inetpub\wwwroot并创建项目名称ABC.App1和新的解决方案ABC,然后在ABC解决方案名称下创建未来项目。
My second approach is to create my first Project by using location: c:\\inetpub\wwwroot and creating project name as ABC.App1 and new solution called ABC and then creating future projects under the ABC solution name.
不确定采用哪种方法,如果是,哪一个是最好的,并且在我开始学习我正在做什么的时候将允许我最大的灵活性和代码使用。
Not sure which approach, if either, is best and will allow me the greatest flexibility and code use while I start to learn what the heck I am doing.
这里的任何帮助都非常感谢。
Any help here greatly appreciated.
Roger
推荐答案
我推荐第一种方法。
这篇关于关于项目和解决方案组织的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!