Is there a reliable way to keep Compact Framework and Desktop projects in sync with Visual Studio 2008?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 13:06:36

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.

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.

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.

Yes, there is a trick ;-p Consider this line from my protobuf-net CF project file:

<ItemGroup>
    <Compile Include="..\protobuf-net\**\*.cs" />
</ItemGroup>

It says "in this project, include and compile all the .cs files from (back a level, up to the sibling protobuf-net folder) and all sub-folders".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!