Error during Team Build: The type or namespace name 'Serializable' could not be found

你说的曾经没有我的故事 提交于 2019-12-12 01:55:57

问题


New problem with VS2005 Team Build:

Building locally a solution of a mobile client for a platform of the company, everything goes pretty neat and compilation occurs without major hiccups, but using the very same solution on a Team Build gives me the following problem:

Solution: TB Client.sln, Project: Client.PocketPC.UIAPI.csproj, Compilation errors and warnings
EnumBackgroundImages.cs(10,6): error CS0246: The type or namespace name 'Serializable' could not be found (are you missing a using directive or an assembly reference?)

I have the [Serializable] attribute on other projects and no problems with it, having exactly the same assembly references and using directives, and they all compile on my local machine and the build machine, all references are ok on the build machine and such.
I have no more ideas of what to try.


回答1:


I don't know why it would work on your machine and not on the build server, but your problem is that SerializableAttribute is not included in the compact framework.




回答2:


If they compile on the build machine, then perhaps you forgot to do a merge to your production branch?




回答3:


The problem was that .NET Compact Framework wasn't installed on the build machine, and it solves this issue about the serialization.



来源:https://stackoverflow.com/questions/2356640/error-during-team-build-the-type-or-namespace-name-serializable-could-not-be

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