suddenly errors "Error (active) CS1061 'MainWindow' does not contain a definition for 'chkOpenOutputFolder' and no accessible extension method 'chkOpenOutputFolder' accepting a first argument of type 'MainWindow' could be found (are you missing a using directive or an assembly reference?)"
close vs, delete .vs folder, start vs, if still issues, rename new .vs, undelete original .vs, now works!?
public static string Stamp = "03-03-2024 12:04:05";
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -Command "$pattern = 'public static string Stamp = \".*?\";'; $date = Get-Date -Format 'dd-MM-yyyy HH:mm:ss'; $replacement = 'public static string Stamp = \"' + $date + '\";'; $path = '$(ProjectDir)Version.cs'; $content = Get-Content $path -Raw; $newContent = $content -replace $pattern, $replacement; [System.IO.File]::WriteAllText($path,