SGEN : error : Mixed mode assembly -
can me im getting error when im publishing project on release mode
sgen : error : mixed mode assembly built against version 'v2.0.50727' of runtime , cannot loaded in 4.0 runtime without additional configuration information.
please me im stuck on issue.
for build/publish in release mode please follow below step
- create new file sgen.exe.config
- keep below code in file
<?xml version ="1.0"?> <configuration> <runtime>
<generatepublisherevidence enabled="false"/>
</runtime> <startup uselegacyv2runtimeactivationpolicy="true"> <supportedruntime version="v4.0"/> </startup> </configuration>
please keep file in below path
c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\netfx 4.5.1 tools folder
and x64
c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\netfx 4.5.1 tools\x64 folder
- now restart visual studio
- open project in administrator mode , build/publish in release mode.
Comments
Post a Comment