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
14
votes
3 answers

Loading an assembly by Bytes loses the location

I want to load the assembly via the following var loadedAssembly = Assembly.Load(File.ContentsAsBytes); the File.ContentAsBytes returns the dll as a byte[], via the following System.IO.File.ReadAllBytes("dll location"); The issue is the loaded…
dbones
  • 4,415
  • 3
  • 36
  • 52
14
votes
3 answers

404 on Controllers in External Assemblies

I am having trouble resolving 404 responses in my Asp.Net MVC 4 project. It's built in VS2012 targeting 4.5. I have pre-compiled views and controllers built into stand-alone DLLs. I am able to dynamically load the DLLs and inspect them from my core…
MisterJames
  • 3,306
  • 1
  • 30
  • 48
14
votes
5 answers

Using Precompiled .NET Assembly DLL in Mono?

We're currently testing Mono to see if our .NET DLLs will work for customers on Linux. Our DLLs provide components for Windows Forms. I placed the DLLs in the Debug directory, added the references, and created a class deriving from a Windows Form.…
NickAldwin
  • 11,584
  • 12
  • 52
  • 67
13
votes
7 answers

Automatic assembly version number management in VS2008

I have a VS2008 project written in c# with a number of assemblies. I'd like to have a simple way of managing the version numbers between all of the different assemblies and a way to automatically increment the build number and have that saved into…
Jack Hughes
  • 5,514
  • 4
  • 27
  • 32
13
votes
1 answer

Static constructor for the whole assembly

I have many entry points in my assembly and I want some initialization code to be executed once per AppDomain prior to running any other code from this assembly. What would be the best way to do it? One solution I see is to have a class with static…
Konstantin Spirin
  • 20,609
  • 15
  • 72
  • 90
13
votes
3 answers

Accessing unregistered COM objects from python via a registered TLB

I have three pieces of code that i'm working with at the moment: A closed source application (Main.exe) A closed source VB COM object implemented as a dll (comobj.dll) Code that I am developing in Python comobj.dll hosts a COM object (lets say,…
EB.
  • 3,383
  • 5
  • 31
  • 43
13
votes
3 answers

Which assemblies conflict in "found conflict between different versions"?

I am getting "found conflict between different versions" from one of my projects. How do I find out which assemblies are actually in conflict?
ripper234
  • 222,824
  • 274
  • 634
  • 905
13
votes
3 answers

Updating a DLL in a Production ASP.NET Web Site bin folder

I want to update a class library (a single DLL file) in a production web application. This web app is pre-compiled (published). I read an answer on StackOverflow (sorry, can't seem to find it anymore because the Search function does not work very…
Josh Stodola
  • 81,538
  • 47
  • 180
  • 227
13
votes
2 answers

When should we not create Assembly's strong name? What are the disadvantages of "strong named assembly"?

I have a project, i.e. library.exe. In this I have referenced an assembly (logging.dll ver 1.0.3.0) and I have given this assembly a strong name. Now suppose I changed a method in logging.dll and made version 1.0.4.0. Now when I copy/replaced the…
Mansoor Mehmood
  • 449
  • 6
  • 11
13
votes
6 answers

Pros/Cons of using an assembly as a license file?

I was initially going to use a signed serialized xml file to store license details. In planning, more and more has moved into this "license file" which will allow for us to distribute a single application and control available functions via the…
Tim
  • 7,746
  • 3
  • 49
  • 83
13
votes
8 answers

What is the best way to use assembly versioning attributes?

The AssemblyVersion and AssemblyFileVersion attributes are the built-in way of handling version numbers for .NET assemblies. While the framework provides the ability to have the least significant parts of a version number (build and revision, in…
Chris Charabaruk
  • 4,367
  • 2
  • 30
  • 57
13
votes
3 answers

ILMerge and localized resource assemblies

We have an application whose structure when compiled looks something like this: Foo nb-NO Text.resources.dll sv-SE Text.resources.dll Bar.dll Foo.exe Text.dll Is it possible to use ILMerge on this? How would you do that?
Svish
  • 152,914
  • 173
  • 462
  • 620
13
votes
2 answers

Why doesn't fusion log binding errors?

I have added the following to the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion: EnableLog DWORD 1 LogFailures DWORD 1 If I start an ASP.NET web site from Visual Studio it throws a Parser Error: Could not load file or…
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
13
votes
1 answer

Why do WinRT framework assemblies have the same fully qualified name as their (different) non-WinRT counterparts?

This is really just more of a curiosity type question. I deal with looking up types across assemblies and raw IL. Windows 8 really puts a kink in something I'm implementing though. I've found that WinRT and non-WinRT framework assemblies share the…
Earlz
  • 62,085
  • 98
  • 303
  • 499
13
votes
2 answers

Read AssemblyFileVersion from AssemblyInfo post-compile

How can one read the AssemblyFileVersion, or its components AssemblyFileMajorVersion, AssemblyFileMinorVersion, AssemblyFileBuildNumber, AssemblyFileRevision, within the .csproj, following compilation? I have tried the following which pulls the…
Gregyski
  • 1,707
  • 3
  • 18
  • 26