Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

C# 7.1 project won't build in NCrunch
csmager
#1 Posted : Tuesday, August 22, 2017 1:08:34 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/22/2016(UTC)
Posts: 9
Location: United Kingdom

Was thanked: 1 time(s) in 1 post(s)
I have a project in Visual Studio with the Language Version set to 'C# latest minor version (latest)' in VS 2017.3 (so this is C# 7.1 - I have also tried setting the version explicitly to C# 7.1).

This builds find in Visual Studio, but in NCrunch I get errors relating to C# 7.1 features such as the one below:

Quote:
Tuple element name 'xxxx' is inferred. Please use language version 7.1 or greater to access an element by its inferred name.

Remco
#2 Posted : Tuesday, August 22, 2017 10:35:52 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this problem.

Is this something you can reproduce with a sample project that you can share with me?
csmager
#3 Posted : Wednesday, August 23, 2017 8:46:54 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/22/2016(UTC)
Posts: 9
Location: United Kingdom

Was thanked: 1 time(s) in 1 post(s)
So... this morning I installed an update to VS 15.3.2 and the problem disappeared. The syntax I was using isn't actually a 7.1 feature, the error was a regression (you can see the release notes refer to a C# 7.0 Regression in Tuples).

I've tried pretty hard to reproduce an issue using actual C# 7.1 features, but I haven't had any success. So based on that, I think my original comments can be ignored.
1 user thanked csmager for this useful post.
Remco on 8/23/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download