Hello,
I updated all my projects to use C# 7.0 and .NET Framework 4.7.2.
But I couldn't use nameof() expression.
Any idea why is it?
P.S. Ranorex 9.3.2
nameof() expression
Re: nameof() expression
Hi
It is not possible to compile the solution or what? I believe that NameOf is C# 6 related? Actual Ranorex version should be able to compile C# code up to version 7, so there should not be a problem with compiling this expression. Could you please post a small sample solution, featuring problematic code?
It is not possible to compile the solution or what? I believe that NameOf is C# 6 related? Actual Ranorex version should be able to compile C# code up to version 7, so there should not be a problem with compiling this expression. Could you please post a small sample solution, featuring problematic code?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 6
- Joined: Mon Mar 30, 2020 2:10 pm
Re: nameof() expression
Hello odklizec,
Yep, I could not compile. You can see it on screenshots.
As you can see, all my projects are updated to the last support version.
But I could not use C# 7.0 features.
Yep, I could not compile. You can see it on screenshots.
As you can see, all my projects are updated to the last support version.
But I could not use C# 7.0 features.
Re: nameof() expression
Hi,
I just tried to convert C#5 to C#7, added nameof and it compiles OK? So I guess something's missing on your computer? Have you tried to install 4.7.2 SDK and targeting pack?
I just tried to convert C#5 to C#7, added nameof and it compiles OK? So I guess something's missing on your computer? Have you tried to install 4.7.2 SDK and targeting pack?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 6
- Joined: Mon Mar 30, 2020 2:10 pm
Re: nameof() expression
Hello,
I have already made this. I had converted all projects, and after that, I stuck with this problem.
Also, I have installed sdk.
I have already made this. I had converted all projects, and after that, I stuck with this problem.
Also, I have installed sdk.
Re: nameof() expression
Hi,
Well, there seems to be missing 4.7.2 targeting pack in your system? This is what I have installed:
Well, there seems to be missing 4.7.2 targeting pack in your system? This is what I have installed:
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 6
- Joined: Mon Mar 30, 2020 2:10 pm
Re: nameof() expression
Could not solve the problem with targeting packs.
Fixed problem by downgrading to .net framework 4.6.2
thank you!
Fixed problem by downgrading to .net framework 4.6.2
thank you!