Convert projects to .NET v4.5.2 causes unhandled exception
Posted: Thu Oct 13, 2016 10:13 am
I've been fiddling with Ranorex v6 for a while now. My project has grown over time and I've upgraded it from v6.0.01 to v6.0.2 and on to the current v6.1.0. FWIW the Ranorex Studio About box notes that the .NET Runtime Version is 4.0.
Reading a few posts on the forum I learned that we can now target .NET v4.5.2. I found this setting in the Properties for one of my projects. On the Compiling tab there is a "Target Framework: .NET Framework 4.0" setting. If I click the Change button I am taken to a "Project Upgrade" tab which lets me select all my solution projects and change the target framework to ".NET Framework 4.5.2". They are all set for Compiler Version "C# 5.0".
As soon as I convert them to .NET v4.5.2 the .EXE that Ranorex Studio produces crashes on startup with an unhandled win32 exception. I've tried rebuilding the solution, cleaning the solution, manually cleaning the solution of all obj/bin directories. Same result every time.
I was a bit horrified at the time but discovered that if I reconvert the projects in my solution back to target ".NET Framework 4.0" then all is well again. Phew!
Just curious to know what I am doing wrong? Might be a bug, might be me, not sure. Any thoughts? Not hugely important.
BTW, when you convert the projects and then go back to the project properties the target framework displayed is the previous .NET framework. You have to go into "Change" and back out again before the Compiling tab updates correctly.
Reading a few posts on the forum I learned that we can now target .NET v4.5.2. I found this setting in the Properties for one of my projects. On the Compiling tab there is a "Target Framework: .NET Framework 4.0" setting. If I click the Change button I am taken to a "Project Upgrade" tab which lets me select all my solution projects and change the target framework to ".NET Framework 4.5.2". They are all set for Compiler Version "C# 5.0".
As soon as I convert them to .NET v4.5.2 the .EXE that Ranorex Studio produces crashes on startup with an unhandled win32 exception. I've tried rebuilding the solution, cleaning the solution, manually cleaning the solution of all obj/bin directories. Same result every time.
I was a bit horrified at the time but discovered that if I reconvert the projects in my solution back to target ".NET Framework 4.0" then all is well again. Phew!
Just curious to know what I am doing wrong? Might be a bug, might be me, not sure. Any thoughts? Not hugely important.
BTW, when you convert the projects and then go back to the project properties the target framework displayed is the previous .NET framework. You have to go into "Change" and back out again before the Compiling tab updates correctly.