質問

I have been told that .Net Framework 4.5 is the in place update of version 4. And So does happen for the .Net Framework 4.5.1. And actually the necessary dll of .net framework will be replaced when been upgraded. So my question is can I compile a project which target framework is 4.0 in 4.5 environment installed system?

役に立ちましたか?

解決 2

Yes, you can.

The only breaking change I've encountered so far is in debugging - the debugger interfaces changed in 4.5, which can be tricky if you're trying to debug process dumps. It's not an issue if you use the latest Visual Studio (or just use WinDbg, although that certainly isn't for everyone) and copy the framework directory from the computer that had the error, but it's very annoying.

他のヒント

The 4.0 and 4.5 frameworks are highly compatible. For the most part as long as you have compiled against .NET 4.0 you'll continue to get those same behaviors, even when running on a machine with .NET 4.5 installed. There are some exceptions - places where you get new behavior simply because you're running on a .NET 4.5 machine, even if you didn't explicitly target .NET 4.5. Those exceptions are called out at http://msdn.microsoft.com/en-us/library/dn458358(v=vs.110).aspx.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top