Open Closed

Timing App Service Compilation Error with "$" #1279


0
mengvisal created
Support Team

Hi!

I am trying to update to ASP.NET Zero the latest version. However, i have compilation error for the $ sign in GetTimezoneInfos method of TimingAppService.

var defaultTimezoneName = $"{L("Default")} [{defaultTimezone.DisplayName}]";

Do you have any suggestion?


2 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    You can change it like this

    var defaultTimezoneName = String.Format("{0} [{1}]", L("Default"), defaultTimezone.DisplayName);
    

    We are not trying to use this syntax because it does not work on vs 2013 but we missed it this time. We will change it on the next release as well.

  • 0
    mengvisal created
    Support Team

    Thanks!