简体   繁体   English

与.NET项目和前端开发人员一起工作

[英]working with .NET projects and front-end developers

We have multiple projects in .NET where we have 2 copies of it, the source code and the published version. .NET中有多个项目,其中有2个副本,源代码和发布的版本。 When a front-end developer comes in he normally works in the published version as they don't normally use Visual Studio, so we end up with lots of changes in the published version that we need to copy back onto the source code version. 当前端开发人员进来时,他通常会使用已发布版本,因为他们通常不使用Visual Studio,因此我们最终在已发布版本中进行了许多更改,需要将其复制回源代码版本。 This leads to errors as people forget to copy the changes. 由于人们忘记复制更改,因此会导致错误。

Does anyone have similar problems? 有人有类似的问题吗? Any tips? 有小费吗?

Thanks 谢谢

Since you're already using version control, you can setup SVN hooks that email the back-end developers whenever front-end developers change files. 由于您已经在使用版本控制,因此您可以设置SVN挂钩,以便在前端开发人员更改文件时通过电子邮件向后端开发人员发送电子邮件。 Probably not the best approach though... 虽然可能不是最好的方法...

Another approach that you can take is to create 2 separate source-code versions of your project. 您可以采用的另一种方法是创建项目的2个单独的源代码版本。 One source-code version would contain all of your developer specific .cs files, including base page and control classes, custom controls, etc. The second project would be an asp.net project. 一个源代码版本将包含所有开发人员特定的.cs文件,包括基本页面和控件类,自定义控件等。第二个项目将是asp.net项目。 The asp.net project would have only presentation files - aspx, ascx, master files, etc. Front-end developers would work on the source code version of the asp.net project. asp.net项目将仅具有演示文件-aspx,ascx,主文件等。前端开发人员将使用asp.net项目的源代码版本。 They would have the pub version of the binaries project. 他们将具有二进制项目的发布版本。

With this solution, back-end developers must develop custom controls for the front-end developers to work with. 使用此解决方案,后端开发人员必须开发供前端开发人员使用的自定义控件。 Front-end developers are always working on the latest source version of the asp.net project. 前端开发人员始终在研究asp.net项目的最新源版本。 Typically you'll find that back-end developers wind up creating a completely custom asp.net tag library for the front-end developers to work with. 通常,您会发现后端开发人员最终会为前端开发人员创建一个完全自定义的asp.net标记库。

There are only one correct answer: The front-end developers must be able to commit their changes to TFS. 只有一个正确的答案:前端开发人员必须能够将其更改提交到TFS。

They don't have to install entire Visual Studio to get access to TFS, read more here: Standalone GUI client for TFS 2010 Source Control 他们不必安装整个Visual Studio即可访问TFS,请在此处阅读更多信息: TFS 2010源代码控制的独立GUI客户端

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM