zoukankan      html  css  js  c++  java
  • 不能用con作为类名

    A class file was not written. The project may be inconsistent, if so try refreshing this project and building it

    翻译:

    未写入类文件。项目可能不一致,如果出现这种情况,则尝试刷新此项目并构建它

     

    这是因为使用了系统的关键字,我是在定义一个类,类名为Con的时候出现的

    这是因为有些名称在Windows下面都不能创建。注意,不许分大小写。Con,con,CON 都不可以!

    con是操作系统保留的一个设备名字,还有很多设备名都不能拿来用,如下:

    The following reserved device names cannot be used as the name of a file: 

    CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

    Also avoid these names followed by an extension (for example, NUL.tx7).

    解决方案:修改con类名,即可成功编译。

  • 相关阅读:
    Timer Pattern
    la négation
    expression de la fréquence
    .NET 索引器
    JQuery.Gantt(甘特图) 开发指南
    .NET 预处理器指令
    .NET 数据类型之匿名类型(var)
    .NET base与this
    .NET using关键字
    .NET 基础语句
  • 原文地址:https://www.cnblogs.com/valar/p/5896859.html
Copyright © 2011-2022 走看看