更新时间:2021-11-02 23:01:06
显然,这是一个问题的.NET Framework 4.5的Windows 7 64位SP1上运行。当我改变目标框架的.NET Framework 4.5.1,这个问题解决了。我无法解释为什么发生这种情况,但至少有一个解决方法吧。
Apparently this is an issue with .NET Framework 4.5 running on Windows 7 x64 SP1. When I change the target framework to .NET Framework 4.5.1, this issue is resolved. I can't explain why this is happening, but at least there is a work-around for it.
- 编辑 -
我刚刚发现变化框架4.5.1版是不是解决了问题。当我做了改变,Visual Studio会自动添加在的csproj下面的每个属性组:
I just discovered that the change to framework version 4.5.1 isn't what resolved the issue. When I made that change, Visual Studio automatically added the following to each property group in the csproj:
<Prefer32Bit>false</Prefer32Bit>
添加此行到每个配置后,这个问题就解决了。我仍然在寻找一个解释,为什么这解决了问题,这样我就可以了解如何避免它在未来。
After adding this line to each configuration, this issue was resolved. I'm still looking for an explanation as to WHY this fixes the issue, so I can understand how to avoid it in the future.