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
23
votes
1 answer

Side effects of calling Assembly.Load multiple times

If one calls Assembly.Load multiple times does it cause any side effects? e.g. for (int i = 0; i < N; i++) { Assembly.Load(assemblyStrongName); // ....... } This loads the assembly one time doesn't it? I've checked with…
JohnDoDo
  • 4,720
  • 8
  • 31
  • 47
23
votes
3 answers

Is this DLL managed or unmanaged?

I hold before you a DLL. Using only the Win32 SDK, can you tell me if this DLL is a .NET assembly? Why? Our application loads plugins in the form of DLLs. We are trying to extend the definition of these plugins to allow for .NET assemblies but the…
Charles
  • 2,642
  • 3
  • 33
  • 53
23
votes
3 answers

Cannot find `ZipArchive` in the “System.IO.Compression” namespace

My question is related to I didn't find "ZipFile" class in the "System.IO.Compression" namespace But I have referenced the DLL's for my 4.5.1 webforms project: Properties of my project give me: Target framework: .Net Framework 4.5.1. and the…
JP Hellemons
  • 5,977
  • 11
  • 63
  • 128
23
votes
2 answers

Assembly File Version not changing?

I have in my assemblyinfo.cs class the code: [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.*")] Calling System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() works fine and gives the updated…
maxp
  • 24,209
  • 39
  • 123
  • 201
22
votes
5 answers

Can strong naming an assembly be used to verify the assembly author?

I have been reading the proper article in MSDN, Strong-Named Assemblies and a related Stack Overflow question, Checking an assembly for a strong name. To which extent can a strong-named assembly be verified to avoid tampering? Is it possible to use…
Pablo Marambio
  • 1,562
  • 1
  • 15
  • 29
22
votes
2 answers

Google Protobuf 3.0.0 assemblies for C#

In our project we successfully use Google Protobuf for C++. Now there is a need to compile the same *.proto file to use it in C# code. I downloaded the recent Protobuf version 3.0.0-alpha-3. It provides support of proto2 format for C#, which is…
22
votes
1 answer

Difference between Root Namespace and Assembly Name

What's the difference between the two?
MOZILLA
  • 5,862
  • 14
  • 53
  • 59
22
votes
1 answer

.NET4: In-Process Side-by-Side Execution Explained

Overview: I'm interested in learning more about the .NET4 "In-Process Side-by-Side Execution" of assemblies, and need additional information to help me demystify it. Motivation: The application in question is built against .NET2, and uses two…
emptyset
  • 3,164
  • 4
  • 26
  • 33
22
votes
1 answer

Maven creating flat zip assembly

To Maven gurus out there: I'm trying to package non-java project artifacts (.NET) into a single zip file. I'm having 2 problems: If I change packaging in my POM to zip zip, I get this error message: [INFO] Cannot find…
Bostone
  • 36,858
  • 39
  • 167
  • 227
22
votes
5 answers

Creating C# Type from full name

I'm trying to get a Type object from type full name i'm doing the folowing: Assembly asm = Assembly.GetEntryAssembly(); string toNativeTypeName="any type full name"; Type t = asm.GetType(toNativeTypeName); I get null, why? the assembly is my…
Adi Barda
  • 3,259
  • 11
  • 32
  • 33
21
votes
1 answer

Decoding and understanding assembly code

So a little background. I am a beginner with c and assembly code, we have an "bomb" assignment (written in c)which calls methods that require certain passwords, but the code is not visible and I need to determine the correct password by looking at…
Gadesxion
  • 391
  • 2
  • 6
  • 18
21
votes
2 answers

How to organize F# source of large project (>300 classes) in Visual Studio?

In C# you can put files in folders corresponding to their namespaces and view them in the Solution explorer. In F# it seems I have to put everything in plain specifically ordered list for compilation. When I get to scale of ~300 of classes it gets a…
Alfa07
  • 3,314
  • 3
  • 26
  • 39
21
votes
3 answers

What is a partially trusted assembly/application/code/etc in .NET?

Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is. Also, what is a fully trusted assembly and how do they differ from one another? I…
sker
  • 17,842
  • 8
  • 37
  • 41
21
votes
3 answers

C#: In what assembly is SHDocVw.WebBrowser_V1 defined?

It's used on several websites which all seem to assume the reader knows what to do to have this type available, but I have no clue. Example site, see the first…
marc40000
  • 3,167
  • 9
  • 41
  • 63
21
votes
10 answers

Project References DLL version hell

We're having problems getting visual studio to pick up the latest version of a DLL from one of our projects. We have multiple class library projects (e.g. BusinessLogic, ReportData) and a number of web services, each has a reference to a…
Mr Shoubs
  • 14,629
  • 17
  • 68
  • 107