VS2015 build failing

aleksandar.toplek's Avatar

aleksandar.toplek

13 Feb, 2015 04:54 PM

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;

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Feb, 2015 05:15 PM

    Feodor Fitsner's Avatar

    Nothing has been changed on Visual Studio 2015 CTP image. When did it stop working?

  2. 2 Posted by aleksandar.topl... on 13 Feb, 2015 05:24 PM

    aleksandar.toplek's Avatar

    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.

  3. Support Staff 3 Posted by Feodor Fitsner on 13 Feb, 2015 05:30 PM

    Feodor Fitsner's Avatar

    "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:

    msbuild "C:\projects\sparkiy-client\SparkiyClient\SparkiyClient\SparkiyClient.Windows\SparkiyClient.Windows.csproj" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
    Microsoft (R) Build Engine version 12.0.31101.0
    [Microsoft .NET Framework, version 4.0.30319.0]
    

    But you need MSBuild 14.0, right?

  4. 4 Posted by aleksandar.topl... on 13 Feb, 2015 05:46 PM

    aleksandar.toplek's Avatar

    So was 14 set by default before? Did CTP change that?

  5. Support Staff 5 Posted by Feodor Fitsner on 13 Feb, 2015 05:47 PM

    Feodor Fitsner's Avatar

    Maybe Preview was changing PATH, but apparently CTP didn't.

  6. 6 Posted by aleksandar.topl... on 13 Feb, 2015 06:05 PM

    aleksandar.toplek's Avatar

    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.

  7. aleksandar.toplek closed this discussion on 13 Feb, 2015 07:33 PM.

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