与不使用 Visual Studio 的团队成员一起开发 Web 项目
对于在某些成员不使用 Visual Studio 的团队中工作,有人有什么好的建议吗?其他人在做什么?
这是一个一般性问题,但我的具体情况是使用 Visual Studio 2008 和 SVN 进行源代码控制来开发 ASP.NET MVC 应用程序。
在我们的办公室里,我们有小团队。通常,我们有一名或多名使用 Visual Studio 的开发人员和一名使用没有 Visual Studio 的 Mac 的图形/html/css 设计人员。
这有几个问题。
首先,如果没有视觉工作室,设计师就无法轻松看到他的变化。设计师让我们使用他们在我们办公室的 PHP 方面使用的技术。我们使用构建服务器,以便设计人员检查他们的更改,然后在指向我们构建服务器的 Web 浏览器中查看它们。不完全是他们想要的吗?他们进行了调整并再次检查。
其次,每当我将项目部署到生产环境时,我总是执行发布或使用 Web 部署项目。这样做的问题是,如果设计者将文件添加到项目文件结构中,它不会自动添加到 Visual Studio 项目文件中。因此,必须有人仔细检查所有文件夹并查找项目中没有的文件,以确保所有内容都包含在内。添加文件后,设计者可以毫无问题地更改文件,除非删除它会导致 Visual Studio 感到胃痛。
其他人也一定有这些同样的问题。他们如何处理它们?
我们可以让我们的设计师使用 Visual Studio,但它确实不能很好地适应他们的工作流程。
我最关心的是第二个问题。我不喜欢问题 1,但我们当前的解决方案有效,但我真的很想知道人们是否有好的建议。
Does anyone have any good suggestions for working on teams where some members do not use Visual Studio? What are other people doing?
This is a general questions, but my specific situation is developing ASP.NET MVC applications using Visual Studio 2008 and SVN for source control.
In our office we have small teams. Usually we have one or more developers using Visual Studio and one graphic/html/css designer using a Mac with no Visual Studio.
This has a couple of problems.
First, without visual studio the desinger can't see his changes easily. The designers got us to use a technique that they were using on the PHP side of our office. We use a build server so the designers check in their changes and then view them in a web browser pointed at our build server. Not quite what they want? They make a tweak and check it in again.
Second, whenever I deploy a project to production I always either do a Publish or use a Web Deployment Project. The problem with this is that if a designer adds a file to the project file structure it isn't automaticly added to the Visual Studio Project file. So someone has to go through all the folders and look for files that aren't in the project to make sure everything gets included. Once the file is added, the designer can change the file no problem, unless the delete it which causes heartburn for Visual Studio.
Other people must have these same issues. How do they handle them?
We can get our designers to use Visual Studio but it really doesn't mesh well for their workflow.
I'm mostly concerned with the 2nd issue. I don't like issue 1 but our current solution works, however I would really like to know if people have good suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
为了更新项目,可以选择编写手动更新 .proj 文件的脚本 - 它们只是 XML。
For updating the project, there is the option of writing a script that manually updates the .proj files - they're just XML.
我知道这是一个简单的解决方案,但简单就是好的。解决方案资源管理器工具栏上有一个“显示所有文件”按钮,这将使 VS 显示 .sln 和项目文件所在的根文件夹和子文件夹中存在的所有文件。这样可以轻松查看物理上位于这些文件夹中但未包含在项目中的文件。通过按住 Shift 键单击或按住 Control 键单击、右键单击并转到“包含在项目中”可以非常快速且轻松地选择所有这些内容。
同样,右键单击并排除带有黄色感叹号的文件也很容易,因为它不再存在。
I know this is a simple solution, but simple is good. There is a button on the Solution Explorer toolbar to "Show All Files", which causes VS to show ALL files that exist in the root and subfolders where your .sln and project files are. This makes it easy to see files that are physically located in those folders, but are not included as part of your project. It's very fast and easy to select all of those by shift-click or control-click, right click, and go to "Include in Project".
Likewise, it's easy to right-click and exclude a file that has the yellow exclamation point, because it no longer exists.
正如您所说,问题是该文件未包含在 Visual Studio 项目中。
由于设计者没有VS,他无法将文件添加到VS项目中。
解决此问题的一种方法是授予设计者“更新”权限,但不授予“创建”权限。然后,当他们需要开始处理新文件时,他们必须去找开发人员并要求创建该文件并将其添加到 VS 项目中。
这样,如果没有同时将文件添加到 VS 项目中,则无法添加任何文件。
As you say the problem is that the file is not included in the Visual Studio Project.
Since the designer does not have VS he cannot add the file to the VS project.
One way to fix it, is to give the designer "Update" but not "Create" rights. Then when they need to start work on a new file, they must go to a developer and ask for the file to be created and added to the VS project.
In that way no file can be added without it being added to the VS project at the same time.
我们的办公室也有同样的问题。对于Web项目,我们总是使用文件->“新建网站”而不是“新建项目”。对于“项目,图形需要告诉开发人员他们添加了哪些文件,或者您必须通过浏览颠覆历史来弄清楚这一点。
We have the same problem in our office too. For web projects, we always use File->"New Website" instead of "New project". For "projects, the graphics need to tell the developers what files they added or you have to figure that out by going through the subversion history.
Expression Suite 就是针对这个问题而设计的。 Expression Web 现在能够通过其自己的内置 Web 服务器运行 Web 应用程序,就像 Visual Studio 一样。该套件更多地针对设计人员进行了调整,重点是管理样式表和 HTML 创建。
您可以在 Expression Suite 网站上找到更多信息。
希望这对你有用。
Expression Suite was designed for this issue. Expression Web has the ability now to run a web application via it's own built in webserver just like visual studio can. The suite is tuned more for designers and has the focus on managing stylesheets and the creation of HTML.
You can find more information on the Expression Suite website.
Hope this works for you.