I want to create a serialization assembly for my assembly. sgen does it fine, but I can’t figure out how to get it to assign the serialization assembly the same version as the source assembly.
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sgenseem to take source assembly version by default, it is quite reasonable.Here is how I run it, there is nothing special:
/force — to overwrite existing serializer assemblies
/assembly — path to the assembly, I run it in the post-build event in the VS project settings, so I use the
$(TargetPath)variable/compiler: … — csc options, I use them to sign serializer assemblies with the key