inconsistent line endings 解决方法
来源:互联网 发布:顺德经济发展数据 编辑:程序博客网 时间:2024/06/08 16:04
I'm using Unity 3D in combination with Visual Studio 2008 on a Windows 7 64 bit system.
When saving a cs file in Visual Studio and returning to Unity 3D I always get the following warning:
There are inconsistent line endings in the 'someFileName.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.
I've seen that more people have this problem but they all are using OS X.
How can I fix this problem on my Windows machine?
UPDATE:
OK, I fixed the problem by replacing the NewBehaviourScript.cs that is located in Unity\Editor\Data\Resources
By creating a new script using Windows it contains only CrLf for new lines. So now when I create a new cs script in Unity and edit it in Visual Studio all the line endings are the same. So no more warnings
Create a new class in visual studio and set it up in the same way as the default NewBehaviourScript.cs.
Do not copy and paste as you will most likely copy the line endings too, thus undoing your efforts.
It is possible Unity does this so that other OS's & IDE's 'understand' the script too.
Line endings by the way are the characters that text editors interpret as a new line.
"/n" or "/r" for example.
- inconsistent line endings 解决方法
- Inconsistent Line Endings
- Inconsistent Line Endings
- visual studio->Inconsistent Line Endings
- VC中忽略Inconsistent Line Endings提示带来的问题
- There are inconsistent line endings in the "XXX.cs" script
- There are inconsistent line endings in the 'Assets/Scripts/xxx.cs' script.
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windo
- There are inconsistent line endings in the 'Assets/Scripts/Test.cs' script. Some are Mac OS X (UNIX)
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windows
- 三种 line endings 让人很郁闷
- The line endings in the following file are not consistent.
- The line endings in the following file are not consistent.
- the line endings in the following file are not consistent.
- warning c4273: inconsistent dll linkage 的解决方法
- warning c4273: inconsistent dll linkage 的解决方法
- ceph故障【pgs inconsistent;scrub errors】解决方法
- svn碰到“Cannot accept non-LF line endings in 'svn:log' property”而无法提交时
- 使用MAP文件快速定位程序崩溃代码行
- 驱动器号不见了,盘符只有名字,小细节而已
- ubuntu下安装ndk
- android log
- zabbix 实现curl 监控
- inconsistent line endings 解决方法
- 35岁时搞技术还搞的动吗?
- 远程代码注入
- 报表文件通过JSP传参
- 路由器、猫、集线器、交换机的区别
- 第84天
- 【Lucene 4.x 学习教程】(0)简介
- 归并排序
- NGUI实用操练(五)如何将3D模型至于NGUI上【NGUI2.6.3】