有没有可靠的方法来使Compact Framework和Desktop项目与Visual Studio 2008保持同步? [英] Is there a reliable way to keep Compact Framework and Desktop projects in sync with Visual Studio 2008?

查看:66
本文介绍了有没有可靠的方法来使Compact Framework和Desktop项目与Visual Studio 2008保持同步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发同时针对完整/桌面.Net框架和紧凑型.Net框架的SDK。因此,我有一个解决方案,其中包含紧凑框架和完整框架的项目。项目文件包含相同的源文件,或者应该。与我一起使用此SDK的一些开发人员仅在完整框架方面工作。他们不时将文件添加到整个框架项目中,但忘记将其添加到紧凑框架项目中。最终,其他一些代码(已经在两个项目中)都引用了这种新类型。然后,那天晚上构建失败,因为紧凑框架项目不包含新文件。
有人知道一种工具或技巧来验证两个项目文件是否同步吗?请记住,文件并不完全相同(一个用于紧凑框架,另一个用于完整框架)。

I am working on an SDK that is targeting both the Full/Desktop .Net Framework and the Compact .Net Framework. As such I have a solution that has projects for the Compact Framework and the full framework. The project files contain the same source files, or thay should. Some of the developers that are working on this SDK with me are only working on the full framework side. From time to time they add a file to the full framework projects, but forget to add it to the compact framework project. Eventually some other peice of code (already in both projects) references this new type. Then the build fails that evening because the compact framework project does not include the new file. Does anyone know of a tool or trick to verify that two project files are in sync? Remember that the files are not identical (one is for the compact framework and the other for the full framework).

BTW,在提到它之前,我已经阅读了Moths博客

BTW, before you mention it I have read The Moths blog posts on this.

Pat O

推荐答案

听起来像您一样持续进行集成,这实际上就是其中的第一步-确保所有开发人员都尽快了解构建中断。

Sounds like you already have continuous integration going on, that is really step one in this -- making sure all the developers know about the build breaking as soon as possible.

,请查看JetBrains Team City,Cruise Control或Microsoft Team Systems Team Build。

If you don't, please check out JetBrains Team City, Cruise Control, or Microsoft Team Systems Team Build.

根据您的源代码控制服务器,您可能可以设置签入策略也一样因此,如果签入特定文件并生成警报。

Depending on your source control server, you might be able to setup check-in policies as well. So if a particular file is checked in, and alert is generated.

但是通常我会通过链接文件共享尽可能多的代码。如果您必须在两者之间使用不同的代码(希望有细微的差别),则可以围绕不同的代码执行#IFDEF。

But typically I share as much code as I can through linked files. If you have to have different code between the two, hopefully subtle differences, you can do #IFDEFs around the differing code.

抱歉,对此没有简单的答案。

Sorry, but no easy answers on this one.

这篇关于有没有可靠的方法来使Compact Framework和Desktop项目与Visual Studio 2008保持同步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆