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
15
votes
2 answers

Can I sign an assembly for which I do not have source code?

I have received an assembly from a third party. I need to add it to the GAC, but it does not have a strong name. Is there any way for me to sign the assembly using my own key so that it will be strong named?
Michael L Perry
  • 7,327
  • 3
  • 35
  • 34
15
votes
2 answers

MSB3644 The reference assemblies for framework were not found

I am getting the following MSB3644 complication error: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your …
Dave New
  • 38,496
  • 59
  • 215
  • 394
15
votes
1 answer

how to add arbitrary information in manifest from maven assembly plugin

i use the assembly plugin to create a uber jar from several maven artifacts. Now I like to add some company specific entries into the Manifest of the created assembly jar. But how ? the archive element doesnt allow arbitrary elements (or is there a…
Emerson
  • 1,327
  • 2
  • 15
  • 24
15
votes
3 answers

Assembly.GetTypes() - ReflectionTypeLoadException

We implement a plugin framework for our application and load plugin assemblies using Assembly.Loadfrom. We then use GetTypes() and further examine the types with each plugin file for supported Interfaces. A path for the plugins is provided by the…
Veskechky
  • 173
  • 1
  • 2
  • 6
15
votes
5 answers

How can I merge resource files in a Maven assembly?

I'm using Maven and its assembly plugin to build a distribution package of my project like this: one project assembles a basic runtime (based on Felix), with the appropriate directories and bundles, in a ZIP file. third-party libraries are…
Hanno Fietz
  • 30,799
  • 47
  • 148
  • 234
14
votes
2 answers

Sql Server CLR load assembly failed

I am trying to deploy an CLR TVF (table value function). In the code I am using JavaScriptSerializer to parse some JSON string, so I reference the System.Web.Extensions dll and my problems start there. Project builds fine, but when I try to…
Klark
  • 8,162
  • 3
  • 37
  • 61
14
votes
1 answer

Missing Assemblies Tab in Reference Manager dialog box

I have the latest Visual Studio Community version 2019. I have been following this awesome free series by Bob Tabor. Sorry about the link to images, but rules are rules I guess, can't add images until I have 10 points whatever that means. I am in…
ShynnSup
  • 141
  • 1
  • 3
14
votes
7 answers

major.minor.build.revision versioning style vs year.month.day.whatever versioning style

Is there any reason to use one versioning style over the other for .NET assemblies???? I'd like to know if there are any advantages/disadvantages in using either style besides taste.
angrifel
  • 724
  • 2
  • 6
  • 19
14
votes
3 answers

Is a Java JAR file similar to an .Net Assembly?

I'm familiar with .Net and what assemblies are - but sadly my Java knowledge isn't as strong. I know Java and .Net are different "worlds" (possibly like comparing apples with pears) but are JARs and .Net Assemblies roughly eqivalent concepts? Edit:…
Adrian K
  • 9,880
  • 3
  • 33
  • 59
14
votes
3 answers

Is there a ILMerge equivalent tool for Mono?

I'm looking for a open source tool to merge multiple .NET assemblies into a single assembly.
tgiphil
  • 1,242
  • 10
  • 22
14
votes
4 answers

Is there a way to tell if a C# assembly has been compiled with the optimization parameter?

Rather, is there a way to tell if it's been compiled with the optimization parameter enabled or disabled. I don't want to know if it's release or debug, since either can be enabled with or without optimizations. From my perspective, even though…
John
  • 434
  • 2
  • 20
14
votes
4 answers

WPF assembly reference missing - project still building

I am trying to use the Dynamic Data Display library for WPF in my solution. I added a reference to DynamicDataDisplay.dll in my project. I also added a namespace in the .xaml like this:…
Mario Pistrich
  • 488
  • 2
  • 5
  • 16
14
votes
7 answers

C# type defined in an assembly that is not referenced

I have two projects A and B. Project A makes use of type X in project B, so I have a reference to B added in A. Everything built fine. I signed project B using a strong named key file. Everything still built fine. Then I decided to change the…
CSharpHolder
  • 171
  • 1
  • 1
  • 4
14
votes
3 answers

When should [assembly: InternalsVisibleTo()] be used?

I understand that the InternalVisibleTo attribute is used to expose types and methods with the internal access modifier to a specified assembly. I have only ever used this for exposing internal methods to a separate assembly containing a suite of…
fletcher
  • 13,380
  • 9
  • 52
  • 69
14
votes
2 answers

How to reference WPF style keys defined in a separate assembly in another library

I have two libraries and a single application assembly project layout and I'm wondering how can I reference styles by their key in one of my libraries that's defined in the other. My solution layout: WpfControls.dll - Holds generic reusable…
jpierson
  • 16,435
  • 14
  • 105
  • 149