i am using string interpolation using $
in my code. It compiles fine but when i check in my code, the build server throws an error BC30037: Character is not valid
. Following is an example on how i have used string interpolation:
dim r = New RadNode($"{acq.FormNo} - ${CInt(acq.TotalAmount)}", icon:=RadTreeIcons.RedTriangle)
The build server has Visual Studio 2015 Entreprise edition installed.
If i run this from command prompt:
C:\Program Files (x86)\MSBuild\14.0\Bin>MSBuild /tv:14.0 "Proj.sln"
, the code compiles file. However if i change the above argument to
C:\Program Files (x86)\MSBuild\14.0\Bin>MSBuild /tv:12.0 "Proj.sln"
, i get the same error
I have also made these changes:
i have set the MSBuildArguments
Property to /p:VisualStudioVersion=14.0
and also changed the TFSBuild.proj
file and changed this line to <Project DefaultTargets="DesktopBuild" xmlns="schemas.microsoft.com/developer/msbuild/2003"; ToolsVersion="14.0">"
but same issue is happening.
Changed the (web vbproj) file and changed ToolSet Version to 14.0 from 12.0. Other vb projects part of the solution are still targeting 12.0 but gets compiled in dll as part of web vb project.