Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
My client give me his FTP I'm download source code.
Its published.
How can i do changes in code.
My client have not the Unpublished code.
What can i do?
Well, you need to check a few things
1- Check the code and see whether you can find .cs files with you .aspx files. If you can find them then it means that the website was deployed in Debug mode and you can atleast have the code of all the asp.net forms.
And if you cannot find the .cs files then it was deployed in Release mode and you are screwed.
2- Check the debug/release folder of the code and see whether you can find some custom DLL's. (By custom, i mean DLL's that are not from Microsoft and any third party). If you can find some custom DLL's then you cannot do anything because you donot have the code for the DLL's. (So, you do not have the Dll project).
You can still retrieve the code of DLL's by using some tools but that is not recommended.
EDIT:
You cannot get the exact code, but you can get a decompiled version of it.
The most popular (and best) tool is Reflector, but there are also other .Net decompilers (such as Dis#). You can also decompile the IL using ILDASM, which comes bundled with the .Net Framework SDK Tools.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have little C# experience. I have at one time maintained C# code on existing project. Now I'm assigned a task of developing a C# client connecting a server installed on local host. The server provides support for user to develop client in several languages. For C++, several folders containing dlls and headers, that's enough(I know how to use). For C#, several folders of .cs files. This way I don't know how to use. They're not compiled assemblies. May I need to include all the folders and cs files one by one into my own project and build them together? Please refer to pictures below:
C++ developer support:
C# developer support, I don't know how should I start to build a client:
The content under Support folder provides users ways to call interfaces which in turn connecting to the running server.
I'll generate a C# program using those files under Support\csharp\ folder.
I begin in this way as picture below, not sure if it's the correct beginning?
And about the error hint: if the namespace and the class name are same, how to instantiate it with new:
If there's no .csproj file, you must include them (cs files) in a C# VisualStudio project (.csproj), and compile/build them. You must know (and add) the external libraries used or deduce them from the using sentences (import's).
Then you can build that project in a external solution, and get dll to your own project, or add a new project on same solution and build them together.
It's a bad idea (namespace and class with the same name). Look at this SO thread: Namespace and class with the same name?. If you can't change it, you must set the path explicitly everywhere:
QQQClient.QQQClient quts = new QQQClient.QQQClient();
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to Obfuscate my Xamarin android app and I did it for the DLL was in the
output but when I click export android package in visual studio the DLL I protected was delete and the DLL without obfuscate replace it
How should I do it?
Obfuscating of Xamarin Android apps doesn't make much sense (of course you can turn on "Enable ProGuard" option if you want) but you can turn on "Embed assemblies to native code" which will convert all code into a binary .so file.
Here's a blog post explaining how to obfuscate a Xamarin Android app with Dotfuscator. It says there's an issue around file locations after the obfuscation process:
In order for the Xamarin platform specific build process to properly find the obfuscated assemblies, they have to be copied back into the original assembly locations after obfuscation. Android has an additional restriction in that the original obfuscated PCL must be copied back to its project specific location as well.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have take over a old asp.net website and there is no Visual Studio Project for it. If i want to change some functionality, is there a way to put in a .cs file overriding the logic in the bin file?
I am not aware of any other solution but one.
You can decompile the whole dll, create a new project and attach all classes there. Then recompile and replace an old dll with a new one.
You may need to decompile the whole web site, as it is likely there will be some dependencies to other dlls.
For anyone who stumbles across this question, I'd like to suggest an alternate approach. Take a look at Fody. Fody is an IL weaving tool which allows you to weave in changes to existing .dll compiled files. Here is a Basic Fody Addin Project. You'll notice Fody would allow you to inject or 'weave' code changes into the IL without a decompile.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have googled over the internet and read some forums, but I could not find a really good solution to suit my requirements. I am looking for an automatic application update framework for my project.
Which do you think the best application update framework for .net?
Requirements:
free
easy to use and integrate with existing .net project
check/download/install updates automatically from a server
if it is needed, update also its referenced new dll-s from the server
if new dll is referenced to the app, should be also downloadad automatically from the server
if new items (e.g. XML files, language resource files) needed for a new version, also download them
UPDATE:
installation folder must be changeable by the user (clickonce is not an option)
check this http://www.codeproject.com/KB/install/DDayUpdate_Part1.aspx out - it combines ClickOnce (Update machnism) + Windows installer (installation) to make possible what you are asking for...
Another (perhaps better?) option: http://www.codeproject.com/KB/cs/DotNetAutoUpdateClient.aspx
Check out ClickOnce Deployment at http://msdn.microsoft.com/en-us/library/t71a733d(v=vs.80).aspx
It works really great. To use it, just open up the project properties in VS and go to the deploy tab.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Scenario
I have a C# application compiled as a DLL.
I have a build from last week and a build from this week.
There has been a significant change in performance so I want to compare the the two builds to see what has changed.
ANY IDEAS?........SUGGESTIONS?
Cheers
EDIT:
Yes it would be better to compare the source code from version control........except we are using TFS, not by choice, and even with the bolton application TFS takes source control to a whole new level of shite........it's very difficult to revert without messing around with workspaces etc....i just thought the DLL approach would be easier...The application is a monster as well......
I would recommend to disassemble two libraries with the Reflector (right click on the assembly -> Export) and then compare directories generated with some merging tool, like WinMerge.
This is a free option to compare .Net C # assembly:
Assembly Diff Tool for .NET - JustAssembly
Today the same can be done with JetBrains dotPeek. Load the dll right mouse button -> export to project and compare in WinMerge
Wouldn't it be better to profile the two dll? You will find where in the second one you are spending more time than in the first. This should give you an indication of what has gone wrong.
An updated answer to this question, if it is a dll written in C#, I would recommend dotPeek by JetBrains. Its free! After decompiling, you can copy the code text into a text editor like Notepad++ that allows you to compare two text files.