Description
When trying to build in Batch mode in Release configuration projects NativeCore x86 and x64, Reclass.NET x86 and x64 and Reclass.NET_Launcher, I get this error:
Severity Code Description File Line Suppression State
Error The command "powershell -Command "((Get-Date).ToUniversalTime()).ToString("yyyy/MM/dd HH:mm:ss") | Out-File 'D:\Projects\Reversing\ReClass.NET\ReClass.NET\Resources\BuildDate.txt'"
" exited with code 9009.
When I remove the pre-build powershell command from the pre-build events, I start to get this error:
Severity Code Description File Line Suppression State
Error Invalid Resx file. Could not find file 'D:\Projects\Reversing\ReClass.NET\ReClass.NET\Resources\BuildDate.txt'. Line 381, position 5. D:\Projects\Reversing\ReClass.NET\ReClass.NET\Properties\Resources.resx 381
After I manually create empty BuildDate.txt
file at the specified path, the solution seems to start to build correctly and I can start the program. Don't know if it will function correctly.
If I manually add the BuildDate.txt
file and restore the powershell command, I still get the 9009
error when trying to build.
Windows 10, Visual Studio 2019 and this problem occurs on the last commit of the master branch at the time of writing.