How to reproduce:
1. Create a new project
2. Open the Player Settings (Edit > Project Settings…)
3. Change the Product Name to “CON”
4. Build
5. Check the Console window
Expected result: The errors in the Console window show useful information on why the build failed
Actual result: “Updating the timestamp on the file failed: The parameter is incorrect.” error is thrown in the Console window, not stating that the .exe file can not be named after any of the names reserved by Microsoft
Reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.5f1, 2023.1.0b2
Reproduced on: Windows 10 Enterprise
Note: The Product Name can be changed to any of these “CON, PRN, AUX, NUL, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9”