tag:help.appveyor.com,2012-11-13:/discussions/problems/10028-net-47-project-is-failing-to-buildAppVeyor: Discussion 2018-10-19T08:18:35Ztag:help.appveyor.com,2012-11-13:Comment/441015602017-11-22T07:36:08Z2017-11-22T07:36:10Z.NET 4.7 project is failing to build<div><p>Hi,<br>
I recently switched to .NET 4.7 framework from .NET 4.5.2 and after that my project is not building.<br>
<a href="https://ci.appveyor.com/project/muhammadmuzzammil1998/swsh/build/job/sp5dv2qtovyn8wpb/messages">https://ci.appveyor.com/project/muhammadmuzzammil1998/swsh/build/jo...</a></p>
<p>It says that there are syntax errors but they are not errors in .NET 4.7.<br>
Errors are coming on "local function", a feature of C# 7, on line ~490.<br>
<a href="https://github.com/SecureWindowsShell/SWSH/blob/unstable/SWSH/Program.cs#L490">https://github.com/SecureWindowsShell/SWSH/blob/unstable/SWSH/Progr...</a></p>
<p>Build worker image: Visual Studio 2017</p>
<p>How do I fix this?</p></div>muhammadmuzzammil.cstag:help.appveyor.com,2012-11-13:Comment/441015602017-11-22T17:37:14Z2017-11-22T17:37:14Z.NET 4.7 project is failing to build<div><p>In your <a href="https://github.com/SecureWindowsShell/SWSH/blob/master/appveyor.yml">appveyor.yml</a> add the following to build on VS 2017 image:</p>
<pre>
<code>image: Visual Studio 2017</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/441015602017-11-23T10:33:12Z2017-11-23T10:33:12Z.NET 4.7 project is failing to build<div><p>THANK YOU!! :D</p></div>muhammadmuzzammil.cs