C#: debug vs release.dlls [duplicate] - c#

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How to tell if .net app was compiled in DEBUG or RELEASE mode?
Hi,
If I have third party pre-compiled code, how can I tell if the .dll's provided are release or debug versions?
If the .pdb files exist alongside the .dll's, does that mean the dll's are debug versions?
Thanks
Nic

Not necessarily - there can be .pdbs transferred as well - you could look at the dll using reflector and check that the assembly information - if there is a Assembly: debuggable information like below
then its debug
see this article fro other details http://www.undermyhat.org/blog/2009/07/in-depth-determine-whether-a-type-method-variable-or-assembly-is-debug-or-release-build/

Related

"SignTool.exe not found" when debugging in Visual Studio 2015 [duplicate]

This question already has answers here:
Visual Studio SignTool.exe Not Found
(8 answers)
Closed 5 years ago.
I was writing a simple program in Visual Studio that requires an external library. When I debug it everything went smoothly.
Since I want to distribute the exe alone without the dlls, I installed Costura, clear all the previous builds and then press debug. Strangely the error "SignTool.exe not found" error pops out. However I am not publishing the exe, I am just trying to build it, how come this error will pop out?
Even after I uninstalled Costura, this problem still exists.
I suspect that Costura modifies your project to require signing. If you don't care about signing, you can disable/revert it.
It seems that SignTool.exe is not installed by default for VS2015, but you can add it yourself.

What is the best way to embed an executable into my Visual Studio project? [duplicate]

This question already has answers here:
Embedding an external executable inside a C# program
(8 answers)
Closed 7 years ago.
I have an executable with dll dependencies that I am using in my program and I want to be able package the other exe and dlls together with my application. This is a c# application and I am not sure what the other exe is (c# or c++).
As of now, I am just referencing an external file (C:\blah\bin\blah.exe) with the exe and dlls, but this won't work once other people start using the application and will need the exact exe file location.
Is there a good way for me to embed this exe into my application?
You can use resources for that purpose: https://support.microsoft.com/en-us/kb/319292/
https://msdn.microsoft.com/en-us/library/f45fce5x(v=vs.90).aspx
Another link: https://msdn.microsoft.com/en-us/library/7k989cfy(v=vs.90).aspx

Debug an executable without pdb outside visual studio [duplicate]

This question already has answers here:
How to Debug .net applications without Visual Studio
(3 answers)
Closed 7 years ago.
At a remote computer I need to debug an executable which is built in release mode.
There is no Visual studio installed but the .Net framework is.
I read about windbg and remote debugging and other solutions fellow programmers suggested but the subject is vague and I don't have a complete overview of the subject and the options available for my condition.
There is a possibility i can get the .pdb file.
Edit: I know this post was marked as a duplicate. The difference with the other post is that i can not download or send large files like the Windows SDK and the computer does not have internet connectivity. As i said .net framework is installed. Where can i find mdgb??
dotPeek by JetBrains can generate PDB files for you (and act as a Symbol Server). https://confluence.jetbrains.com/display/NETCOM/Introducing+JetBrains+dotPeek#IntroducingJetBrainsdotPeek-GeneratingPDBfiles

embed a DLL into a console application [duplicate]

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

Obfuscation of .NET exe/dll [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
.NET obfuscation of a DLL: how can I protect my code?
Hi all,
I'm using .net framework 4.0 and making any program. When i finished it, i publish it and get my programs exe.
But any 3rd party softwares decompiles my exe and anybody views my codes.
For example :
How do i save my code?
Thanks all...
You could use an obfuscation tool, like Dotfuscator or Eazfuscator.NET.
Eazfuscator.NET is free, Dotfuscator has a limited Community Edition, but is lacking many of the features available for free in the other product.
UPDATE
Eazfuscator.NET is now commercial. This link provides a download link for the last free version and lists some alternatives (as of September 2012)

Categories