XML serialization for non-web projects

I am trying to solve a known problem of automatically generated serialization assemblies in VS 2010, both VB.NET and C #. The parameter "Create serialization of assemblies" in the project settings does nothing for non-web projects (see http://blog.devstone.com/aaron/archive/2008/02/07/2778.aspx and others). Thus, calls to serializers generate exceptional file I / O errors, which are very unsuccessful and for which there is no cure. The above method does not work with VS2010, and SGEN still works with enabled / proxytypes.

+2
source share
1 answer

Decision:

" " , , "", , xml .proj:

<PropertyGroup>
    <SGenUseProxyTypes>false</SGenUseProxyTypes>
    <SGenPlatformTarget>$(Platform)</SGenPlatformTarget>
</PropertyGroup>

/. , , AnyCPU. , AnyCPU , x86 x64.

+4

All Articles