tag:help.appveyor.com,2012-11-13:/discussions/problems/2365-get-appveyor-to-build-using-vs2015AppVeyor: Discussion 2018-10-19T08:17:17Ztag:help.appveyor.com,2012-11-13:Comment/372344392015-06-27T09:25:59Z2015-06-27T09:25:59ZGet appveyor to build using VS2015<div><p>I am having issues trying to get this <a href="https://github.com/jageall/IdentityServer.v3.Admin.MongoDb/blob/6d0863a53a65850d165cbfb965cf6cebf7d1b823/Source/IdentityServer.v3.MongoDb.Admin.sln">
solution</a> to build using c# 6.0</p>
<p>i have tried:</p>
<p>install:<br>
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%</p>
<p>didn't make any <a href="https://ci.appveyor.com/project/jageall/identityserver-v3-admin-mongodb/build/1.3.0.18">
difference</a></p>
<p>build_script:<br>
- "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe"
"Source\IdentityServer.v3.MongoDb.Admin.sln" /verbosity:normal
/logger:"C:\Program
Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"</p>
<p>isn't <a href="https://ci.appveyor.com/project/jageall/identityserver-v3-admin-mongodb/build/1.0.17">
valid</a>, I probably did something silly though</p>
<p>and I updated the version numbers in the project/solution files
to 14.0 which also <a href="https://ci.appveyor.com/project/jageall/identityserver-v3-admin-mongodb/build/1.3.0.20">
made</a> no <a href="https://ci.appveyor.com/project/jageall/identityserver-v3-admin-mongodb/build/1.3.0.19">
difference</a></p>
<p>I have avoided setting the os in the yaml file as per <a href="http://www.appveyor.com/blog/2015/06/23/new-oss-build-environment-and-xamarin-support">
this</a> blog entry where it says 'If your project is using custom
image for MinGW, Cygwin, Qt or Visual Studio 2015 RC we encourage
you to switch to "default" image (remove "os:" setting from
appveyor.yml) as build workers on a new OSS environment have all
these software installed.'.</p>
<p>How do i get appveyor to see the project/solution as being 2015
so it builds using c# 6?</p></div>jagealltag:help.appveyor.com,2012-11-13:Comment/372344392015-06-27T18:34:54Z2015-06-27T18:34:54ZGet appveyor to build using VS2015<div><p>Worked like a charm: <a href="https://github.com/jageall/IdentityServer.v3.Admin.MongoDb/pull/4">
https://github.com/jageall/IdentityServer.v3.Admin.MongoDb/pull/4</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372344392015-06-27T19:42:51Z2015-06-27T19:42:51ZGet appveyor to build using VS2015<div><p>thanks, it sure does, if i diff that with the one that failed,
the only difference is a newline at the end of the file. The only
other differences is that the solution file and the project file
are both 2015 format. Does it require both or was the failure just
a transient error?</p></div>jagealltag:help.appveyor.com,2012-11-13:Comment/372344392015-06-27T19:44:06Z2015-06-27T19:44:06ZGet appveyor to build using VS2015<div><p>For AppVeyor only solution with <code>Visual Studio 14</code>
header matters.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372344392015-06-27T19:54:05Z2015-06-27T19:54:05ZGet appveyor to build using VS2015<div><p>Good to know, thanks for the help. Loving the new build
environments btw, so much faster!</p></div>jageall