zoukankan      html  css  js  c++  java
  • (转)unity开发相关环境(vs、MonoDevelop)windows平台编码问题

    转自:

    http://www.cnblogs.com/sevenyuan/archive/2012/12/06/2805114.html

    1、unity会爆出错误:

      There are inconsistent line endings in the 'Assets/...cs' script. Some are Mac OS X (UNIX) and some are Windows.

      This might lead to incorrect line numbers in stacktraces and compiler errors. Unitron and other text editors can fix this using Convert Line Endings menu commands.

    2、monoDevelop在保存更改时也会报出编码错误:

      The file "E:BillGameframeunity...NetmanagerNetmanager.cs" has line endings which differ from the policy settings.   Do you want to convert the line endings?

    解决方案:

    1、将unity新建文件改为‘CRLF’

      将:C:Program FilesUnityEditorDataResourcesScriptTemplates下4个unity新建文件的模板改为‘CRLF’,

      修改方法:用VS打开,在文件-高级保存选项-行尾 选择window(CRLF);

    2、修改MonoDevelop环境编码:

      修改方法:Project-Solution Option-Source Code-Code Formatting- 下3个文件格式的Line endings都改为Windows

  • 相关阅读:
    第十一次作业
    第十次作业
    第九次作业
    第八次作业
    第七次作业
    第六次作业
    第五次作业
    java第三次作业
    Java第二次作业
    Java第一次作业
  • 原文地址:https://www.cnblogs.com/xbglbc/p/3456964.html
Copyright © 2011-2022 走看看