开发者

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

开发者 https://www.devze.com 2022-12-21 09:11 出处:网络
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 t

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 CS024开发者_如何学JAVA6: 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.


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.


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


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

0

精彩评论

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