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

Does using assembly compiled in older version of .NET framework affects whole performance?

Lets imagine that we have two assemblies: Foo.Logic (compiled on .NET 2.0 framework) Foo.Application (compiled on .NET 4.0 framework) that have reference and uses compiled Foo.Logic. Does it have impact on Foo.Application performance (or have any…
Dariusz
  • 15,573
  • 9
  • 52
  • 68
11
votes
1 answer

Supply Assembly to CompilerParameters ReferencedAssemblies from memory and not disk?

I have a CompilerParameters object that I use to feed a Microsoft.CSharp.CSharpCodeProvider object and an ICodeCompiler object that derives from that. Everything works OK, and I can compile code on the fly. My problem is with the referenced…
Nick
  • 739
  • 11
  • 22
11
votes
6 answers

How can I uninstall Win32 assemblies and cleanup WinSxS?

After a lot of trial and error (mostly due to lack of documentation and examples) I have managed to create MSI installers that install custom DLLs to WinSxS as side-by-side assembly. There is only one problem: Uninstalling leaves all files (DLLs,…
gix
  • 5,737
  • 5
  • 34
  • 40
11
votes
2 answers

List all available .NET assemblies

What is the best way to list all available .NET 2.0 assemblies? An example of the list needed is the one MS Visual Studio shows when you do 'Add Reference...' in the .NET tab. I have read Visual studio uses its own directory configuration and the…
Caerbanog
  • 1,295
  • 1
  • 12
  • 18
11
votes
2 answers

Is there a setting to show assemblies as they are loaded during debugging in Visual Studio?

I believe there is a setting (or combination of settings) in Visual Studio that allow you to see in the Immediate Window (or Output Window, I can't remember which), the timestamp and name of an assembly as it is loaded while debugging. I used to…
11
votes
2 answers

.NET assemblies and DLL rebasing

According to this article rebasing is not necessary for .NET assemblies due to JIT compilation of the code. The article states: "JIT-compiled code does not have a rebasing problem since the addresses are generated at run time based on where the…
Brian Rasmussen
  • 114,645
  • 34
  • 221
  • 317
11
votes
3 answers

Resolving Assemblies, the fuzzy way

Here's the setup: A pure DotNET class library is loaded by an unmanaged desktop application. The Class Library acts as a plugin. This plugin loads little baby plugins of its own (all DotNET Class Libraries), and it does so by reading the dll into…
David Rutten
  • 4,716
  • 6
  • 43
  • 72
11
votes
3 answers

VS.NET: Project Refs vs. Assembly Refs

There's some debate here over which is better for referencing our common code base from other projects: by project or by assembly. I'm in favor of referencing the project, especially since we have automated unit tests that prove that the common…
Corey Coogan
  • 1,569
  • 2
  • 17
  • 31
11
votes
3 answers

WCF extensions without including the assembly version

As discussed here, I'm trying to add a WCF endpoint-extension; I've got it working, but I need to include the full assembly details:
Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900
11
votes
1 answer

How do I find all assemblies containing type/member matching a pattern?

I have a folder (possibly, with nested sub-folders) containing thousands of files, some of them are DLLs, and some of those DLLs are .NET assemblies. I need to find all assemblies containing types/members matching a certain pattern (e.g.…
Liu Jin Tsai
  • 371
  • 1
  • 6
11
votes
2 answers

Prevent external assembly injection via PublicKeyToken

I'm using the following code: AppDomain.CurrentDomain.AssemblyLoad += (sender, args) => { var token = args.LoadedAssembly.GetName().GetPublicKeyToken(); if (!IsValidToken(token)) { Process.GetCurrentProcess().Kill(); …
Federico Berasategui
  • 43,562
  • 11
  • 100
  • 154
11
votes
2 answers

Howto load assemby at runtime before AssemblyResolve event?

Actually i tried to implement some kind of 'statically linked' assemblies, within my solution. So i tried the following: Adding a reference to my assembly with CopyLocal = false Adding the .dll file itself to my solution with 'Add as link' Adding…
Oliver
  • 43,366
  • 8
  • 94
  • 151
11
votes
4 answers

Where are Web Application Project Assembly references stored?

Where are assembly refernces stored for a web application? In a Web Site, I see assembly tags written to the assembly node in the web.config when you add a reference. I am just curious as to how the Web Application Project makes the connection to…
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
10
votes
13 answers

How to prevent others from using my .Net assembly?

I have an assembly which should not be used by any application other than the designated executable. Please give me some instructions to do so.
cathy
  • 115
  • 2
  • 12
10
votes
5 answers

How should I reference assemblies from another solution?

I have two scenarios: There is a Framework project for the company, and for all projects we are going to use this framework. There is a custom Framework project which is specific for a client and only some people in the company will ever need to…
BrunoLM
  • 97,872
  • 84
  • 296
  • 452