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
1
vote
1 answer

How .NET build / compilation works

I was trying to find some simple overview but found nothing. So I hope someone will help me here. I would like to know what is the flow of compilation/assembly process in .NET. I just know: 1)The code is compiled into CIL 2) 3) ... 4) Executable…
Kalamro
  • 233
  • 2
  • 3
  • 6
1
vote
1 answer

MonoGame references an unsupported version of nunit.framework

I'm developing a C# project in Xamarin that uses MonoGame. I'd like to start writing tests, but when I added the NUnit assembly, wrote a stub test, and tried to execute it I got the following exception: UnsupportedFrameworkException: Skipped loading…
user12341234
  • 6,573
  • 6
  • 23
  • 48
1
vote
1 answer

How to make only one DLL when publishing asp.net website instead of "App_Web...dll's?

I have a ASP.NET Web application which has 2 projects (one for UI and one for Business layer). Now when I publish this for deployment, it's giving me so many DLLS in bin folder which starts with prefix "App_Web...." in the name. How can I make it…
Shyju
  • 214,206
  • 104
  • 411
  • 497
1
vote
1 answer

Import C# dll's dotted name files in IronPython problems

I've been trying to import two C # .dll using IronPython. One is called m1.sdk.dll the other is called m1.sdk.something.dll. But I got error. The error message says it could not find a type in m1.sdk.something.dll. But they are loaded through…
1
vote
1 answer

WF4: Many dynamic assemblies in current app domain?

Full code: using System; using System.Linq; using System.Activities; using System.Activities.Statements; namespace ManyAssemblies { class Program { public sealed class SayHelloActivity : Activity { readonly WriteLine writeLine = new…
1
vote
2 answers

Assembly missing when building my c# application

This is a console application that I am developing using VS2010 in C#. II got a dll from one of my colleague that I need to use. I added the dll as the reference , added the required name space. Added code to create an instance of the object and…
Nair
  • 7,438
  • 10
  • 41
  • 69
1
vote
1 answer

Renaming executable (.exe) afterwards

Is it save to rename an (entry) assembly (.exe) including it´s configuration file (.config) afterwards? May the .net runtime throw an exception, cause the name is diffrent that the name it was build with? There are no other assemblies that have…
Jehof
  • 34,674
  • 10
  • 123
  • 155
1
vote
1 answer

publisher policy in GAC

I want to redirect consumers of dll v1 to dll v2. I will add a publisher policy in GAC for that. Must the policy be in GAC? Does this mean dll v2 itself must also reside in GAC?
Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
1
vote
1 answer

Running a dynamic void from a assembly loaded into an interface

So, i have an assembly that i loaded into the interface, and it works perfectly: MarshalByRefObject pluginObject = ... ecko.Plugins.Interface.Plugin plug = pluginObject as ecko.Plugins.Interface.Plugin; but, allthough i will have alot of methods in…
caesay
  • 16,932
  • 15
  • 95
  • 160
1
vote
1 answer

Merging Assemblies

I m working on a project which contain about 17 projects in it, means 17 DLL's. i want to merge some assemblies together. after googling i found ILMerge . is Ilmerge good ? n how to use it? can anyone tell me ? i tried it but so many errors came…
Saad
  • 1,312
  • 5
  • 17
  • 40
1
vote
1 answer

TFS and Microsoft.common.targets assembiles out of sync VS2015

I just upgraded my TFS source to use DevExpress 15.2.5. However, now I get a bunch of warnings in the output such as C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3274: The primary reference…
Tim
  • 952
  • 3
  • 12
  • 31
1
vote
1 answer

WPF Prism Assembly StrongNaming

I am trying to strong name my WPF assemblies to add to the GAC. I have references to the to the prim assemblies in my project and the compilation fails with Error 1 Assembly generation failed -- Referenced assembly…
NVM
  • 5,442
  • 4
  • 41
  • 61
1
vote
3 answers

How can I pass a solution resource as a FileStream object (to an intercepted File.Open command)?

I extend upon a legacy library which accesses files on the harddrive. I have such files as embedded resources in my unit test project. I have ported parts of the library to accept streams, which allows me to use GetManifestResourceStream to pass my…
Tormod
  • 4,551
  • 2
  • 28
  • 50
1
vote
2 answers

Strongly-typed assembly not being found despite being correctly referenced

We have a project which utilizes Sharp Architecture. For the purposes of some testing, we made some adjustments to strongly type some assemblies. Following this, the project would no longer build. VS2010 complained that: error CS0012: The type…
Robert G
  • 61
  • 2
1
vote
1 answer

assembly reference problem--'assembly not referenced' versus type in two assemblies

I'm having a problem with assembly references. I have four assemblies: A class library called EncryptionUtils Another class library called PasswordUtils that uses EncryptionUtils Another class library called Toolkit that is an ILMerge of many…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222