I have one c# Application which i have only published Application in IIS and i don't have the original code with me.
we have to make some changes in one (.cs) file which is dependent on entire application and dlls.
Is it possible to convert the Application and make some changes and publish again.
I did run into this situation before where client is only having published code and I need to enhance a product.
For those , I decompiled published DLLs using Telerik's JustDecompile as I found it more mature and accurate than DotPeek and Reflector.
Few of the things will still not work after decompilation and that is obvious so you will need to manually fix those.
You may also remove few of the layers by introducing your own layer to avoid all DLL decompilation , but for that you need to understand decompiled code.
I hope that it will help you in running project.
Thanks,
Related
I have followed this example on how to mix C# and C++ code in single assembly and all compiles fine. But all this is from the developer command prompt. I want to put all this in one Visual Studio solution and can't succeed. Does anybody know how to do that? (I am still very inexperienced with Visual Studio)
I have found several articles about this, but all give examples from the command prompt. This SO answer even recommends not doing this at all, not sure why?
Also, many of those articles talk about creating a managed DLL (using dllexport/dllimport, but I need to link the obj/lib files directly in the same C# assembly.
Note: The reason I need to do this, is to add a licensing static library to my C# desktop application project. The library is written in C/C++ and is already used in my back-end, I would like to use the same logic for the front-end. Loading the library as a DLL would defeat the purpose since anybody could just change it for a fake one. Therefore linking it in the same assembly is essential.
C#/.Net devs:
I've a DLL project. To debug I created a solution and with a Win Forms project with reference to DLL, included the project for the DLL. Recently, I had to sign the DLL w/ strong name key so it could be installed in GAC on a Win Server, running SQL Server/SSIS and be called by SSIS packages.
I tested this by installing compiled DLL in GAC on dev machine. What I now find is that I can't step into the DLL project from the Win Forms project unless my code with any changes are compiled and the resulting DLL AND the PDB are placed in the GAC and the new version of DLL is installed there, after uninstalling the prior version DLL.
It seems that all this effort is required simply to test/debug even a change to a single line of code.
No doubt I'm missing something. It can't that difficult. I have learned some things from reading other posts but I haven't picked up on quite this issue. Or, maybe everyone simply accepts this as the way it is? Any help or links to help explaining this and why it's necessary, or what I'm doing incorrectly are appreciated.
Just the fact that the solution and projects have to build/compile every time we run the process for test/debug purposes seems tedious. Having to go out an interface with GAC for every little adjustment during debug/test additionally. . . I might to stop defending C#/.Net to co-workers. But, I bet I missing something. Help me out please.
Jim.
I am using Agile .NET's virtualization features since a time, and I have wanted to try their Code Encryption. The obfuscation completes fine, but once I deploy my DLL with It, the application just doesn't work.
I hardly found that the obfuscator will provide you some dlls like AgileDotNetRT and AgileDotNetRT64, in the options, but I don't get any.
I even tried copying those dlls from the install folder without luck.
Anyone knows why? I haven't found any info on the "docs".
Old question, but Encryption doesn't work on mono, which was confirmed by the devs.
Background
I'm currently doing a benchmark of solutions to convert java code to c#
We have a fast evolving java software and wan't to port some low level (not ui) apis with a tool, because maintaining all changes between versions could prove really tiresome...
Anyway, I've been trying to use Sharpen, as I heard it's a pretty wicked tool used by some mono "freaks" to keep some versions of their tools in check.
What I did
For this purpose, I tried several tutorials I found on internet, the easiest to understand being http://www.pauldb.me/post/14916717048/a-guide-to-sharpen-a-great-tool-for-converting-java
As the link he gives for a pre-build sharpen plugin is now broken, I build my own version of the plugin using sources and instructions found here : https://github.com/xamarin/XobotOS/
Result
The plugin build perfectly, and is installed in my eclipse folder. But when I try to run the ant script after setting everything up, I get an error :
java.lang.RuntimeException: Application "sharpen.core.application" could not be found in the registry.
Conclusion
Well. I'm lost here.
I have no idea what that means.
I'm using Windows 7 64bit
I'm using Eclipse 3.7
I'm using java 6 sdk 64 bit
If anyone ran into this and has a solution... That be helpful.
Thanks in advance.
Initially I tried the same approach as you did, with the same result. But if you follow the instructions in the README.build file, section Setting things up, you should be able to launch a secondary Eclipse applications with the sharpen.core and sharpen.xobotos plug-ins included.
You could then import your Java project subject to conversion into the secondary Eclipse app, provided that you have included a Sharpen Xobot builder command and nature into your project file, like this .project file in the XobotOS/android folder. I edited the .project file manually before importing the project, but I assume you can also configure this from within Eclipse?
The configuration files provided by Paul Du Bois are not applicable, instead you will need to copy and edit the converter-config.xml file from the XobotOS/android folder. This file in turn references a file in the app sub-folder, which probably also needs to be copied and edited.
This is basically as far as I have been able to take it until now. I have been able to edit the configuration files to enable the converter to run, but at this point I have only been able to generate C# stubs. If you or someone else manages to take this even further, I would be happy to learn how to generate real C# files using the XobotOS Sharpen converter.
UPDATE
Asked Miguel de Icaza if there were any instructions for converting arbitrary Java projects using the XobotOS Sharpen version. He responded that there are many hard-coded details in this version that makes it difficult to apply to arbitrary projects. At this stage he recommends Lluis Sanchez' Sharpen version to be used instead.
BTW, the NGit library has been moved to here. You will find a fully functional sharpen plug-in for Eclipse in the gen/plugins sub-folder.
UPDATE MAY 17
Note that you need to have the Plug-in Development Environment software installed in Eclipse to be able to build and run the plug-in projects. IF you are running Eclipse IDE for Java (SE) Developers, you need to extend it with the PDE software.
I switched to work on another computer, I installed visual C# express and protoBuf-net,
and then I copied the source of the project to the other computer.
Now when I open the project on the second computer, the program does not serialize and deserialize the data.
When I'm debugging, every time I step into a piece of code using Protobuf, I get this message:
I'll check the project files for a problem (that _fixed looks highly suspicious) but unless you need the "v2" features it may be easier to use the pre-built dll that can be downloaded. Since this appears to relate to pre-release software it may be easier to e-mail me (as the author) directly.
For info, there are some bat files in the repo that should cleanly build the core project for common .net versions. I can't check right now (away from PC).