简体   繁体   中英

Run a .net framework 1.1 program under .net framework 4.0

I want to run the freeware version of codesmith (2.6, that has been built on .net framework 1.1) on Windows Server 2008 r2 64bit

There is a way to force it run under the .net framework 4.0?

The .net 1.1 installer says there are compatibility issues on my os

edit: I wanted to know if there is a way to decompile/recompile , like those hacks to add x64 compatibility to .net apps if it was flagged as 32bit only in visual studio

It's possible

Just delete:

<startup>
    <supportedRuntime version="v1.1.4322" />
    <supportedRuntime version="v1.0.3705" />
    <requiredRuntime version="v1.0.3705" />
</startup>

from CodeSmith.exe.config, and it works flawlessly on .net framework 4.0 on x64 :-D

I'd highly recommend updating to the latest version that has been fully tested on the latest editions of Windows 64bit and .NET. Please contact sales/support and we will work with you ;) and help get your templates updated if needed.

Thanks -Blake Niemyjski

Updating to Windows 8.1 actually removed previously installed Framework 1.1.

Deleting the <startup> node in config file did not work for me, however - changing that part in the CodeSmith.exe.config to:

<startup>
  <supportedRuntime version="v2.0.50727" />
</startup>

made it work on Framework 2.0 without the problem, so I was able to make changes on my old project.

It is not possible. Dot net 1.1 and 4.0 has many differences. There is a good number of API that has been changed. So, even if you could hack it to run on 4.0, it might be crashing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM