tag:help.appveyor.com,2012-11-13:/discussions/problems/17441-please-use-language-version-72-or-greater-to-allow-non-trailing-named-argumentsAppVeyor: Discussion 2018-10-20T01:27:14Ztag:help.appveyor.com,2012-11-13:Comment/462545192018-10-13T21:55:14Z2018-10-13T21:55:17ZPlease use language version 7.2 or greater to allow non-trailing named arguments<div><p>Hi,</p>
<p>According to <a href="https://help.appveyor.com/discussions/problems/14512-program-does-not-contain-a-static-main-method-suitable-for-an-entry-point">this thread</a>, C# 7.2 should be supported.</p>
<p>However, I could not get it to work:<br>
1. <a href="https://ci.appveyor.com/project/ohadschn/letsencrypt-webapp-renewer/builds/19487184"><code><LangVersion></code> specified as 'latest'</a><br>
1. <a href="https://ci.appveyor.com/project/ohadschn/letsencrypt-webapp-renewer/builds/19487256"><code><LangVersion></code> specified as '7.2'</a><br>
1. <a href="https://ci.appveyor.com/project/ohadschn/letsencrypt-webapp-renewer/builds/19487214"><code><LangVersion></code> specified as '7.3'</a></p>
<p>All result in the same error:</p>
<blockquote>
<p>error CS1738: Named argument specifications must appear after all fixed arguments have been specified. Please use language version 7.2 or greater to allow non-trailing named arguments</p>
</blockquote>
<p>For now I simply removed the offending qualifier, but I'd love to understand why I can't get it to work. My image is <code>Visual Studio 2017</code>.</p>
<p>Thanks,<br>
Ohad</p></div>Ohad Schneidertag:help.appveyor.com,2012-11-13:Comment/462545192018-10-14T05:56:57Z2018-10-14T05:56:57ZPlease use language version 7.2 or greater to allow non-trailing named arguments<div><p>From <a href="https://ci.appveyor.com/project/ohadschn/letsencrypt-webapp-renewer/builds/19487214#L190">this</a> line, it looks like you're building "release" when the property condition in which you placed the <code><LangVersion></code> node specifies "debug"... or perhaps I am mistaken?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/462545192018-10-14T20:58:40Z2018-10-18T05:59:24ZPlease use language version 7.2 or greater to allow non-trailing named arguments<div><p>You are not mistaken, I completely forgot that's how the VS UI works.<br>
It's working great now - thanks!</p></div>Ohad Schneidertag:help.appveyor.com,2012-11-13:Comment/462545192018-10-20T01:27:13Z2018-10-20T01:27:13ZPlease use language version 7.2 or greater to allow non-trailing named arguments<div><p>No problem.</p></div>Owen McDonnell