错误TS1149:文件名'C:/Project/frontend/scripts/State.ts'仅在大小写方面与已包含的文件名'../frontend/scripts/State.ts'不同。
我已经三遍检查了参考资料中的大小写,实际文件中的大小写也正确。据我所知,这仅仅是因为相对路径使用了不正确的大小写,还是仅由于相对路径本身?
事实是,它在Mac和Linux上可以正常编译,但在Windows上会引发此错误。
如果有帮助,请forceConsistentCasingInFileNames在tsconfig中启用它,然后使用tsify进行编译。
我正在使用 C# 库 DotNetZip(Ionic.Zip 和 Ionic.Zlib)从目录生成电子书。目录如下所示:
BookName
|
|___content/
| images/
| css/
| (html pages, .ops, .ncx)
|
|___META-INF/
| container.xml
|
|___mimetype
Run Code Online (Sandbox Code Playgroud)
生成存档的代码如下所示:
using (ZipFile zip = new ZipFile(pathTemp + ".epub"))
{
zip.RemoveSelectedEntries("*.*");
zip.AddFile(mimetype, "").CompressionLevel = CompressionLevel.None;
zip.AddDirectory(pathTemp + "\\content", "content");
zip.AddDirectory(pathTemp + "\\META-INF", "META-INF");
zip.Save();
}
Run Code Online (Sandbox Code Playgroud)
当我通过EPUB Validator运行它时,它会抛出以下错误:
mimetype 文件有一个长度为 36 的额外字段。mimetype 文件不允许使用 ZIP 格式的额外字段功能。
我没有压缩 mimetype 文件,所以我不知道发生了什么。
所以我有一个Circle结构体,非常简单,如下所示:
public struct Circle
{
public Circle(int x, int y, int radius) : this()
{
Center = new Point(x, y);
Radius = radius;
}
public Point Center { get; private set; }
public int Radius { get; private set; }
}
Run Code Online (Sandbox Code Playgroud)
我有一个PhysicsEnity看起来像这样的课程:
public class PhysicsEntity
{
public int Width { get; protected set; }
public int Height { get; protected set; }
public Vector2 Position { get; set; }
public Vector2 Velocity { get; set; } …Run Code Online (Sandbox Code Playgroud) c# ×2
compression ×1
epub ×1
game-physics ×1
javascript ×1
monogame ×1
typescript ×1
windows ×1
xna ×1
zip ×1