Is it possible to compile a .NET 2 WinForms application to run on .NET 4, if no .NET 2 is installed?

StackOverflow https://stackoverflow.com/questions/5432673

문제

Recently I got a customer complaint, that a small .NET 2.0 application I wrote did not run on his Windows 7 computer.

After investigating, I found out that there was no folder c:\Windows\Microsoft.NET\Framework\v2.0.50727 on his machine, just the folder for V4.0.

I was unaware that such a constellation is even possible.

My question:

Is it somehow possible to instruct my application to use the .NET 4 runtime, if no .NET 2 runtime is found on a client machine?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top