Questions tagged [assemblies]

Assemblies are collections of compiled .Net types and resources grouped into a logical and physical unit (in the form of a .dll file or .exe file).

Assemblies are collections of compiled .Net types and resources grouped into a logical and physical unit (in the form of a .dll file or a .exe file - which has an entry point).

If a .exe is a .NET assembly then it also contains a CLR header as a data block inside the PE header.

2372 questions
10
votes
2 answers

Reference unmanaged assembly

I'm trying to reference a managed DLL in my .NET project, without copying it into my output directory. So, when my program runs, it runs the DLL from the location it's installed - wherever that is. The problem lies in the fact that this managed DLL…
XSL
  • 2,965
  • 7
  • 38
  • 61
10
votes
3 answers

Is there a reason to create a .net DLL rather than EXE if file is used as a referenced assembly?

I noticed that I can add a reference not only to a DLL but also to an EXE in Visual Studio and access all classes in the EXE as it if were a DLL. Is there any reason to create a DLL or can I just as well reference the EXE? I am asking because I…
Andrew J. Brehm
  • 4,448
  • 8
  • 45
  • 70
10
votes
2 answers

How to find out which assembly handled the request

I have a Web solution which contains two projects (A and B) with B referencing A. In A I have an Html extension method that obviously can be called from either A or B. My question is once the method is called (usually from a partial view) is there a…
suzi167
  • 489
  • 2
  • 8
  • 22
10
votes
5 answers

How to find out if a .NET assembly was compiled with the TRACE or DEBUG flag

Is there any way to find out if an assembly has been compiled with the TRACE or DEBUG flag set without modifying the assembly?
Ralf
  • 101
  • 1
  • 3
10
votes
2 answers

SSMS 2017 Could not load file or assembly 'Microsoft.AnalysisServices.AppLocal'

I recently installed Microsoft SQL Server Management Studio 2017.5 in order to connect to some Azure resources. When attempting to connect to any db (including my localhost) I get an error saying: 'Could not load file or assembly…
Tyler Moon
  • 241
  • 1
  • 2
  • 7
10
votes
4 answers

VS2010 Assembly reference between projects failed

Context: I have 3 projects in my solutions (C#, .NET 4.0): Abc.Business (Dll project) Abc.Test (Test project) Abc.Ui (Wpf project) Abc.Business is my business logic. It contains Entities, Managers, Services, Etc. Abc.Test have a…
10
votes
1 answer

Load assembly doesn't worked correctly

I try to load a assembly into my source code in C#. So i first compile the source file: private bool testAssemblies(String sourceName) { FileInfo sourceFile = new FileInfo(sourceName); CodeDomProvider provider =…
anon
10
votes
2 answers

Is it possible to reference different version of the same assembly into a single project?

In my solution, I have several projects which use Log4Net (1.2 and 2.5). Then I have a project where I do all the unit testing (of the other projects). So I'm in a situation where depending on what I test/mock I would need Log4Net 1.2 or 2.5. I read…
Serge Intern
  • 2,669
  • 3
  • 22
  • 39
10
votes
4 answers

Details of Assembly version

we will find Assembly version from Assembly.cs in every library. [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] My question is what is 1.0.0.0 meant by this? Thanks
Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191
10
votes
3 answers

x86 Assembly set of 'push'es and 'pusha' difference

I was told to put valid registers into stack not to overwrite them later in "subprogram" and it's clear to me, everyone knows it. But when I read the code of my mates I found the following code: puts: ; display character in ax push ax …
Bartłomiej Szałach
  • 2,393
  • 3
  • 30
  • 50
10
votes
3 answers

Parsing plain Win32 PE File (Exe/DLL) in .NET

I need to parse plain Win32 DLL/Exe and get all imports and exports from it to show on console or GUI (i.e. Win Forms). Is it possible to parse Win32 DLL/Exe in C#.NET by reading its export/import tables and get managed types from it? As it's…
Usman
  • 2,742
  • 4
  • 44
  • 82
10
votes
1 answer

Can I use both C# and C++/CLI in a single assembly?

Can I put together both C# and C++/CLI source files in a single project, and then compile them to obtain a single .DLL assembly?
Meh
  • 7,016
  • 10
  • 53
  • 76
10
votes
5 answers

Why would Assembly.GetExecutingAssembly() return null?

I am using a xml file as an embedded resource to load an XDocument. We are using the following code to get the appropriate file from the Assembly: XDocument xd = new XDocument(); Assembly assembly = null; try { assembly =…
Nathan
  • 160
  • 1
  • 1
  • 7
10
votes
5 answers

Determine Loaded Assemblies

How can I determine all of the assemblies that my .NET desktop application has loaded? I'd like to put them in the about box so I can query customers over the phone to determine what version of XYZ they have on their PC. It would be nice to see…
Nick
  • 13,238
  • 17
  • 64
  • 100
10
votes
2 answers

ASP.NET - bin Directory vs. Adding Assembly in web.conf

I am relatively new to ASP.NET programming (but not programming in general), and I have been looking through a project that has been handed off to me. Within this project, there is a bin directory which contains a slew of various DLL files. Then,…
JasCav
  • 34,458
  • 20
  • 113
  • 170