开发者

Does changing the target cpu of a vb.net break binary compatibility?

开发者 https://www.devze.com 2023-02-21 20:18 出处:网络
开发者_如何学JAVAJust like the title says, If I change the target cpu of a vb.net assembly, will it break binary compatibility?\"Binary compatibility\" was a VB6 term, it was relevant to generating a
开发者_如何学JAVA

Just like the title says, If I change the target cpu of a vb.net assembly, will it break binary compatibility?


"Binary compatibility" was a VB6 term, it was relevant to generating a COM dll that used the same Guids for the interfaces and classes so you could update an existing dll and not fear that your update would break the existing program. The rules are completely different for .NET code, the jitter helps a lot.

Nor is the Platform target setting for a DLL project very relevant. Only the setting on the EXE project matters, it determines the bitness of the process. You could consider forcing your DLL to x86 if it has a dependency on legacy 32-bit code. That will make the program crash quicker on the BadImageFormatException instead of getting an obscure COM exception.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号