में अपग्रेड करने के बाद काम नहीं करता है मैंने हाल ही में वीएस -2008/.NET 3.5 एसपी 1 प्रोजेक्ट को वीएस -2010 और .NET 4 में अपग्रेड किया है। मेरे पास एक पोस्ट-बिल्ड इवेंट है जो एक्सएमएलएसरियलाइजर्स असेंबली उत्पन्न करने के लिए एसजीएनएन को कॉल करता है।एसजीएनएन वीएस -2008 से वीएस -2010
जब भी मैं इसे चलाने का प्रयास करता हूं तो मुझे निम्न त्रुटि मिलती है।
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\sgen.exe" /debug /force /verbose /c:"platform:x86" "C:\path\to\SomeAssembly.dll"
Microsoft (R) Xml Serialization support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: An attempt was made to load an assembly with an incorrect format: c:\path\to\someassembly.dll.
- Could not load file or assembly 'file:///c:\path\to\someassembly.dll'
or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
If you would like more help, please type "sgen /?".
मुझे कमांड लाइन से SGEN चलने में एक ही त्रुटि मिलती है, लेकिन मुझे पता नहीं चल सकता कि समस्या क्या है। कोई विचार?