Bug 32494

Summary: Xamarin Studio on Windows does not support C# 6 features
Product: [Desktop] Xamarin Studio Reporter: Aaron Sky <aaron.sky>
Component: Project ModelAssignee: Lluis Sanchez <lluis>
Severity: normal CC: arpitj, atinc, john.miller, lluis, mohitk, mono-bugs+monodevelop, naqeeba, peter.collins, sandy
Priority: Normal    
Version: 5.9   
Target Milestone: C6SR1   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Aaron Sky 2015-07-27 15:01:02 UTC
Builds are failing on latest stable of XS when trying to build code with C# 6.0 features. What version of MSBuild does XS on Windows use, what is its path, and if there is one, what is the plan for supporting and/or using Microsoft Build Tools 2015?
Comment 1 Sandy Armstrong [MSFT] 2015-07-29 14:32:00 UTC
I was recently looking into this, and it appears that we hard-code a preference for tools version 12 (VS2013):


VS2015 is tools version 14.
Comment 2 Sandy Armstrong [MSFT] 2015-07-30 11:12:49 UTC
Michael pointed out that this can be worked around by adding this to your csproj:

<PropertyGroup Condition="'$(Platform)' != 'Unix'">

Alternatively, you can set a CscToolPath system environment variable to the expanded value of that expression (which I have done, and it's working great now).
Comment 3 Mohit Kheterpal 2015-08-18 10:19:11 UTC
As per above discussion, marking this issue as Confirmed.
Comment 4 Peter Collins 2015-10-13 14:50:23 UTC
*** Bug 34831 has been marked as a duplicate of this bug. ***
Comment 5 Lluis Sanchez 2015-11-03 10:45:13 UTC
*** Bug 34583 has been marked as a duplicate of this bug. ***
Comment 6 Lluis Sanchez 2015-11-03 10:51:35 UTC
*** Bug 33846 has been marked as a duplicate of this bug. ***
Comment 7 Lluis Sanchez 2015-11-11 12:59:22 UTC
Fixed in (a0c5725bfa4a07ff67a99a4bdff1f9cf8b638386)
Comment 8 Lluis Sanchez 2015-11-11 14:21:19 UTC
*** Bug 35395 has been marked as a duplicate of this bug. ***
Comment 10 xamarin-release-manager 2015-11-20 13:46:24 UTC
Fixed in version (cycle6)

Author: Lluis Sanchez Gual
Commit: 5866862b44137081d88bdcb8184da0d00c1a8206 (mono/monodevelop)
Comment 11 Atin 2015-12-17 14:10:56 UTC
I have checked this issue with latest C6SR1 build i.e 
XamarinStudio- and now this issue is working fine. I have checked this issue with "Topeka" sample from bug

Screencast for mac: http://www.screencast.com/t/SoocX1RU2GpK
Screencast for Windows: http://www.screencast.com/t/vVe2az5OKP

Hence I am closing this issue.