VS2015 build failing
We are using .NET 4.6 and C# 6.0 new features in out project, but it seems that this is not supported with VS2015 Preview nor CTP while it was compiling just fine before. Is there something new we have to configure to use these features?
error CS1519: Invalid token ';' in class, struct, or
interface member declaration
for this line
public bool IsDirty => this.isDirty;
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 13 Feb, 2015 05:15 PM
Nothing has been changed on
Visual Studio 2015 CTP
image. When did it stop working?2 Posted by aleksandar.topl... on 13 Feb, 2015 05:24 PM
How about Preview? We did have some problems with CTP on our local machines so we rolled back to Preview (problems were with C++ project, not with C# like this is tough)
As of when did it stop to work, I'm not sure, i had number of builds that failed due to wrong branch being pulled (local branch) of one of submodules.
Today i got it right, pushed new data and now I get this error.
Build: https://ci.appveyor.com/project/AleksandarDev/sparkiy-client/build/...
Source: https://github.com/Sparkiy/sparkiy-client/tree/edge
Error on file
ExtendedViewModel.cs
source:https://github.com/Sparkiy/sparkiy-client/blob/edge/SparkiyClient/S...
These error does seem like only from not supporting new C# syntax. Project has correctly set targeted framework to 4.6
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
Builds file locally.
Support Staff 3 Posted by Feodor Fitsner on 13 Feb, 2015 05:30 PM
"Preview" image has gone and now it's just redirect to "CTP".
Looking at your build log I've noticed that you use
msbuild
from PATH which is MSBuild 12.0:But you need MSBuild 14.0, right?
4 Posted by aleksandar.topl... on 13 Feb, 2015 05:46 PM
So was 14 set by default before? Did CTP change that?
Support Staff 5 Posted by Feodor Fitsner on 13 Feb, 2015 05:47 PM
Maybe Preview was changing PATH, but apparently CTP didn't.
6 Posted by aleksandar.topl... on 13 Feb, 2015 06:05 PM
Yep, that was it. Just like mentioned on your blog post http://blog.appveyor.com/blog/2015/01/20/visual-studio-2015-ctp-image
(I now get c++ error like we did locally with CTP, I hope I'll manage to solve that one soon)
Thanks for great support, as always!
In future you should send email notifications when image gets deprecated.
aleksandar.toplek closed this discussion on 13 Feb, 2015 07:33 PM.