run tests on older .net versions

explunit's Avatar

explunit

03 Apr, 2017 07:44 PM

Am I correct that it is not possible on the appveyor platform to run tests against older .Net versions? I.e. our project requires Visual Studio 2015 (and thus .Net 4.6) to build, but targets .Net 4.5.2 and later for runtime. We would like to run the unit tests against both .Net 4.5.2 and .Net 4.6.x

Looking at your matrix of software it looks like the only way to run tests against 4.5.2 is to target the VS 2013 image, which will not be possible since the code uses c# 6 features.

There are some behaviors of .Net, e.g. signature algorithm support, which differ based on whether 4.6.2 is installed. It would be great to have regression test support for older versions.

  1. 1 Posted by Ilya Finkelshte... on 03 Apr, 2017 08:57 PM

    Ilya Finkelshteyn's Avatar

    Could you please try to add msbuild 2015 installation script at install stage for Visual Studio 2013 image? You can conditionally run it using APPVEYOR_BUILD_WORKER_IMAGE environment variable (though it will be no-op for Visual Studio 2015 image anyway).

    Let us know if this helps.

    Ilya.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:16 AM.

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