I have a project that the framework is targeting .NET Framework 4.6.1
, as part of the continuous integration process on the tfs we created a Build Solution task to ensure that the code compiles correctly.
Now the TFS server has the latest version of the .Net Famework 4.6.2
. On the register this is the value for the Release key of the framework
On all other OS versions: 394806 => .NET Framework 4.6.2
But when the build runs it comes with this error:
Error CS1056: Unexpected character '$'
I don't want to replace the string interpolation with the string.Format
to solve this issue, please provide another workaround to solve it.
Do I need to install something else on the TFS server?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…