我有一个项目,其中嵌入了一些文件,其中两个以.SMS.something. 编译项目时,即使我没有指定要使用附属程序集的任何地方,也会生成“SMS”文化的附属程序集,它甚至是一种文化吗?
我已经到处寻找解释,但我不知所措。我发现的唯一事情是人们试图将实际文化的资源程序集嵌入到他们的可执行文件中,但这不是我的情况。我只想让我所有的嵌入式资源(只有一种语言)都在同一个程序集中。
如何防止这种自动生成附属程序集,或指定 SMS 不是一种文化?
我正在研究一个JavaScript应用程序并且遇到了这种奇怪的行为.
任何人都可以向我解释原因
function BaseClass() {}
function ClassOne() { this.bar = "foo"; }
function ClassTwo() { this.foo = "bar"; }
var base = new BaseClass();
ClassOne.prototype = base;
ClassTwo.prototype = base;
var one = new ClassOne();
var two = new ClassTwo();
one instanceof ClassTwo && two instanceof ClassOne;
// The line above will return true, but i think it should return false,
// because obviously one is not an instance of ClassTwo!
Run Code Online (Sandbox Code Playgroud) .net ×1
c# ×1
culture ×1
function ×1
instanceof ×1
javascript ×1
msbuild ×1
new-operator ×1
prototype ×1