This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Converting .NET App to x86 native code
is there a way to create a standard (not .NET Assembly type) 32Bit DLL for Windows using C# or Java?
And for WinCE ??
Thank you
This was referenced in one of the comments, but I wanted to post it as an answer:
For C#:
https://stackoverflow.com/a/1779505/490561
Basically, the idea is to use Mono and then Ahead Of Time Compilation. I think that'd do the trick.
For Java, the idea is similar:
https://stackoverflow.com/a/2011727/490561
Related
This question already has answers here:
Edit .NET assembly and recompile
(3 answers)
Closed 7 years ago.
I have used many decompilers but have too little experience to understand where it is that I can edit the c# code of specific objects within the DLL. Is it possible to simply edit the C# code and save the changes? If so how could I go about doing this?
TL:DR
How do I edit C# code inside a DLL that I do not have the source code for?
You can edit & patch .NET DLL/EXE with https://github.com/0xd4d/dnSpy
Worked perfectly well for me.
This question already has answers here:
How can I call (Iron)Python code from a C# app?
(3 answers)
Closed 9 years ago.
I have a Python module, and I'd like to be able to import parts of it like classes in C#, accessing its methods and such as .NET native as possible.
How can I accomplish this using IronPython?
Take a look at this: https://wiki.python.org/moin/IntegratingPythonWithOtherLanguages
You can assemble Python modules as dynamic-link libraries and then pinvoke them in any .NET application. You can find more details here: http://msdn.microsoft.com/en-us/library/aa719104(v=vs.71).aspx
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Embedding DLLs in a compiled executable
Is it possible to embed a DLL into a console application If it is possible, how would one go about doing it?
Normally, I'm cool with just leaving the DLLs outside but there have been a couple of people at work who have asked me this and I honestly don't know.
If the libraries are also .NET, you can use ILMerge.
http://www.codeproject.com/Articles/9364/Merging-NET-assemblies-using-ILMerge
Edit (after learning it is native code)
Check out duplicate question here:
How can a C++ windows dll be merged into a C# application exe?
or
Embedding unmanaged dll into a managed C# dll
You can use SmartAssembly by Redgate as this can accomplish what you want. We use this tool to do exactly that.
You can use ILMerge for .NET assemblies. It won't work for native code.
ILMerge is a utility for merging multiple .NET assemblies into a
single .NET assembly. It works on executables and DLLs alike and comes
with several options for controlling the processing and format of the
output. See the accompanying documentation for details.
Download here: http://www.microsoft.com/en-us/download/details.aspx?id=17630
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Can you compile C# without using the .Net framework?
im sure it's a common question. I did read about it but I don't know how to actually do it.
I did see an answer over here that to remove system.dll and another reference, but I can't because I use them, so I read that I can include the Framework in my program or something like that. but how?
Thanks!
Edit: I mean to run after I compiled, sorry, my mistake
I'm afraid that you cannot compile a C# program without the .NET Framework (or equivalent such as Mono) it was written for. There are some ways you can run a program without the framework, but not compile.
I would say, no by my opinion. You need "something" that compiles your code into binary. Will be this .NET Framework, Mono, MyOwnVeryCool framework, you have to have some dependency. If you think about .NET platform you need to compile to IL, so you have a dependecy from CLR, if you don't want compile to IL, so it's not more .NET platform.
Consider the fact also, that on latest Windows OS its already shipped "builtin".
Regards.
This question already has an answer here:
Closed 12 years ago.
Possible Duplicate:
Call C# dll function from Visual C++
I have a set of C# classes. Can I import these classes in a C++ project like libraries and use them in this new project?
Yes. You have to reference the dll.
You said C++/CLI, correct?