📜 ⬆️ ⬇️

Solving the problem with encodings in Mono

Problem.


In general, this problem may manifest itself in different ways. In my case, it was SharpDevelop, which completely refused to compile Hello world, which in the command shell (including through NAnt) is assembled without errors. At the same time, SharpDevelop was stingy with information:
''Gmcs''   -1. (MSB6006)
After about an hour of bydlokoding and finding the source of the problems, the development environment agreed to supplement the information about the error with new useful information:
Please add the correct encoding to MONO_EXTERNAL_ENCODINGS and try again

Decision.


The environment variable “ MONO_EXTERNAL_ENCODINGS ” is created with the value “ default_locale ”, the command shell or development environment is restarted. In my case, the problem no longer manifests itself.

')

Source: https://habr.com/ru/post/38204/


All Articles