mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-28 18:47:28 +01:00
Removes every // and /// comment from the 28 .cs files, -1331 lines.
Done with a lexer rather than a regex: the sources carry plenty of // inside
string literals (@"//\$decor\b", the //$o trainset directives, sb.Append("// "),
"https://wiki.eu07.pl/") and those must survive. It tracks regular, verbatim and
interpolated strings, interpolation holes and char literals. Every file was
checked by comparing the sequence of string-literal characters before and after
the strip; all 28 match. BOMs preserved, blank-line runs collapsed to one.
Claude-Session: https://claude.ai/code/session_01HamVNWE9mwmz1vs2iEpNQq
19 lines
376 B
C#
19 lines
376 B
C#
using System.Reflection;
|
|
|
|
namespace StarterNG;
|
|
|
|
public static class AppInfo
|
|
{
|
|
|
|
public static string Version { get; } = BuildVersion();
|
|
|
|
private static string BuildVersion()
|
|
{
|
|
string text = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "0.0.0.0";
|
|
#if DEBUG
|
|
text += " (DEBUG)";
|
|
#endif
|
|
return text + " public beta";
|
|
}
|
|
}
|