Errors in Sourcefile

  • 63 Views
  • Last Post 18 April 2017
Diin posted this 17 April 2017

When I download the latest version source files and extracted into visual studio 2013   it shows 43 errors. The unexpected characters are showing for all code that look like  $"<img src=\"{url}\" alt=\"{alt}\" />";

celt posted this 18 April 2017

You need a VS2015 if you don't want to change anything.

...or, change the line with

return "<img src=\" + url + "\" alt=\"" + alt "\" />";

or

String.Format("<img src=\"{0}\" alt=\"{1}\" />", url, alt)

or something like that. It's just a sort of a string contcatenation.

http://stackoverflow.com/questions/31514767/string-interpolation-doesnt-work-with-net-framework-4-6

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=unexpected+character+'$'+c%23

 

Close