Closed
Description
Compiler fails to compile the file with error.
error CS1504: Source file '***/Assets/TrueSync/Physics/Farseer/Common/PhysicsLogic/RealExplosion.cs' could not be opened -- GetCPInfoExW
To Reproduce
Steps to reproduce the behavior:
- Clone repo https://github.com/VolodymyrBS/CSharpCompilerSettingsForUnityBugRepro.git
- Import project on macOS
- Check Console
- See an error
Environment:
- Version 1.0.1
- Platform: Editor Mac
- Unity version: [e.g. 2019.3.5f1]
- Build options: any
- Injected compiler version - 3.5.0, 3.7.0
Additional context
Probably it's related to this issue
mono/mono#12603
ILSpy shows that System.Text.Encoding.CodePages.dll library inside Microsoft.Net.Compiler package use WinApi
Note: Can't share the original project but only part of it enough to reproduce the error.
Note: Error will also occure if you try to directly call mono <path to downloaded csc.exe> <path to RealExplosion.cs>