'Building with MSBuild 14.0/C# 6.0 in AppVeyor
I am trying build a library with C# 6.0 code in AppVeyor. I have tried configurations in this update from AppVeyor, this discussion and this blog post.
Here's what I did:
- Select Visual Studio 2015 as operating system from AppVeyor web interface
Add MSBuild 14.0 folder to the path (tried both from web interface and appveyor.yml)
SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin\;%PATH%
Changed these lines in solution file
# Visual Studio 14 VisualStudioVersion = 14.0.23107.0
Tried to invoke MSBuild with custom build script
None of these worked. It still picks up MSBuild 12.0 and fails. What else can I try? There are people who got it working, I can't see what I'm missing.
Solution 1:[1]
In addition to what you tried above, you need to make sure you used the Visual Studio 2015
image.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | TravisEz13 |