开发者

VS2008 project with Entity Framework model results in "always dirty" compile

In VS 2008, I have a simple .csproj that contains an Entity Framework .edmx (V1) file. Every time I build the project, the output DLL is updated, even though nothing has changed. I have reproduced this in the simplest-possible project (containing one ordinary .cs file and one edmx model). If I remove the edmx model and build repeatedly, the output assembly will not be touch开发者_JAVA技巧ed. If I add the edmx model and build repeatedly, the output assembly is modified each time. This is a problem because the real project is a dependency of dozens of other projects and it is wreaking havoc with what times when working in higher layers of the application. Is this a known problem? Any way to fix it?

Thanks!


Okay, I found this little gem on a Microsoft EF blog:

Incremental Build We used to re-deploy EDMX files (if any of the files were set to produced embedded output resources) regardless of whether anything had changed in the model. This unnecessarily initiated other build actions, and for some large projects, these extra build actions could take some time. In VS 2010, we updated our EntityDeploy build task to only deploy when the model has changed.

At least it's fixed in EF4...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜