Page 1 of 1

Compiler error by using ToString(string format)

Posted: Mon Jun 23, 2014 3:43 pm
by michael23
The code above will getting the compile error CS1501 - "Keine Überladung für die Methode "ToString" nimmt 1-Argumente an. (CS1501)".

Code: Select all

TimeSpan interval = new TimeSpan(0, 32, 45);
// Escape literal characters in a format string.
string fmt = @"mm\:ss\ \m\i\n\u\t\e\s";
string test = interval.ToString(fmt);
In "plain" Visual Studio this will be compiled without any problems. Why the ranorex studio can't compile this code?

Re: Compiler error by using ToString(string format)

Posted: Tue Jun 24, 2014 8:26 am
by mdgairaud
Hi michael23,

That's not a Ranorex bug. To solve your issue you must change the .NET framework of your Ranorex project to .NET4 . With .NET3.5 it will fail no matter the IDE you use


regards.