fusion

How to add an assembly manifest to a .NET executable?

a 夏天 提交于 2019-11-27 13:06:20
How can i add an assembly manifest to my .NET executable? An assembly manifest is is an XML file that is added to a .NET portable executable (PE) with resource type RT_MANIFEST (24). Assembly manifests are used to declare a number of things about the executable, e.g.: If i want to disable DPI-scaling because i am a good developer: <!-- We are high-dpi aware on Windows Vista --> <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> <dpiAware>true</dpiAware> </asmv3:windowsSettings> </asmv3

32 or 64 bit DLL loading from .Net managed code

匆匆过客 提交于 2019-11-27 12:34:31
问题 I have a unmanaged DLL (the scilexer.dll of Scintilla code editor, used by Scintilla.Net from CodePlex) that is loaded from a managed application trough the Scintilla.Net component. The windows managed application runs without problem on both 32 and 64 bit environments, but I need to create different installations that uses the 64 or the 32 scilexer.dll. Is there a way to distribute both DLLs in 32 and 64 bit format so that the DLL loader of the .Net framework loads the unmanaged DLL in the

Java streams lazy vs fusion vs short-circuiting

只谈情不闲聊 提交于 2019-11-26 20:29:32
问题 I'm trying to form a cocise and conherent understanding of the application of lazy evaluation within the Java streams API. Here is what I currently understand: elements are only consumed as they are needed, i.e. streams are lazy, and intermediate operations are lazy such that e.g. filter, will only filter when it is required to. intermediate operations may be fused together (if they are stateless). short-circuiting operations do not need to process the entire stream. What I want to do is

How to add an assembly manifest to a .NET executable?

让人想犯罪 __ 提交于 2019-11-26 16:13:03
问题 How can i add an assembly manifest to my .NET executable? An assembly manifest is is an XML file that is added to a .NET portable executable (PE) with resource type RT_MANIFEST (24). Assembly manifests are used to declare a number of things about the executable, e.g.: If i want to disable DPI-scaling because i am a good developer: <!-- We are high-dpi aware on Windows Vista --> <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> <asmv3:windowsSettings xmlns="http://schemas

TypeLoadException says &#39;no implementation&#39;, but it is implemented

∥☆過路亽.° 提交于 2019-11-26 03:23:26
问题 I\'ve got a very weird bug on our test machine. The error is: System.TypeLoadException: Method \'SetShort\' in type \'DummyItem\' from assembly \'ActiveViewers (...)\' does not have an implementation. I just can\'t understand why. SetShort is there in the DummyItem class, and I\'ve even recompiled a version with writes to the event log just to make sure that it\'s not a deployment/versioning issue. The weird thing is that the calling code doesn\'t even call the SetShort method. 回答1: NOTE - If

TypeLoadException says &#39;no implementation&#39;, but it is implemented

自闭症网瘾萝莉.ら 提交于 2019-11-25 20:37:51
I've got a very weird bug on our test machine. The error is: System.TypeLoadException: Method 'SetShort' in type 'DummyItem' from assembly 'ActiveViewers (...)' does not have an implementation. I just can't understand why. SetShort is there in the DummyItem class, and I've even recompiled a version with writes to the event log just to make sure that it's not a deployment/versioning issue. The weird thing is that the calling code doesn't even call the SetShort method. NOTE - If this answer doesn't help you, please take the time to scroll down through the other answers that people have added