I am working on an old project in VS2017. My changes work fine in the development environment. But when I try to build to a server I get this error;
Models\HoldingCompany.cs (21): Unexpected character '$'
The line affected is;
public override string ToString()
{
return $"{this.Name} - {this.VatRegistrationNumber}";
}
Now it is true that the project was not originally written in C# 6. So what do I need to do to fix this? I have install the .Net framework 4.6 on the server I am deploying to. I have googled around trying to find what else I need to do but I have not come up with anything. I am using the original XAML Build definitions. This is my log file: https://1drv.ms/t/s!ArKf9AZKW_zWgQVzxitLQzMWjfSh