Questions tagged [.net-assembly]

A group of classes and namespaces compiled into a binary file, written in a .NET-specific language such as C# or VB.NET.

An assembly in .NET terminology is a set of modules assembled into a single process assembly (executable, ".exe") or a library assembly (".dll").

Assembly is the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions for .NET-based applications. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality.

3347 questions
1
vote
1 answer

C# csproj file "Choose" element for assembly HintPaths

Is it possible to use the Choose/When/Otherwise elements on a reference hintpath? Something like this: False
Doc
  • 435
  • 1
  • 5
  • 15
1
vote
0 answers

Generating a wrapper unit for a .Net Assembly

On a Win 10 64-bit system, I'm trying to generate an import unit for the System.Xml NET Assembly into Delphi Seattle for a 32-bit project. So far as I understand it, I'm supposed to go to Component | Import Component, select Import .NET Assembly…
MartynA
  • 30,454
  • 4
  • 32
  • 73
1
vote
2 answers

This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

I have an old .net app, a mod loader for a game. I wanted to modify it to support a similar game, but get the assembly error when i switch out the included dll with a newer one and try and load a mod script. is there a way to make the app compatible…
slarlac249
  • 11
  • 1
1
vote
1 answer

C# build against non specific version of strong-named assembly

According to MSDN: When you build a .NET Framework application against a specific version of a strong-named assembly, the application uses that version of the assembly at run…
DanielG
  • 1,217
  • 1
  • 16
  • 37
1
vote
2 answers

How do I get Assembly name from full assembly string?

I have a string like this: "MyProduct.Framework.Business.ShopBusiness" But the assembly name it self is only: "MyProduct.Framework.Business" I need to create a string like this: "MyProduct.Framework.Business.ShopBusiness,…
alansiqueira27
  • 8,129
  • 15
  • 67
  • 111
1
vote
0 answers

Why use absolute assemblies when reference .NET assemblies are available?

I am seeing the following mix of references specified for a csc command in a Visual Studio…
Sabuncu
  • 5,095
  • 5
  • 55
  • 89
1
vote
0 answers

PCL Load assembly at runtime in memory

Background: I am trying to create an app where users can create a Portable Class Library (PCL) and upload it into my software. Since my software is a client/server architecture, I am looking to do the client on windows, ios, android and windows…
1
vote
1 answer

MS SQL Server check existence of registered Assembly

In a database I generally use a XML based version of a split function. Later on with some research I created a Assembly CLR version of the split function. In a database update process (patch) I remove all user functions, patch the database and then…
YvesR
  • 5,922
  • 6
  • 43
  • 70
1
vote
2 answers

Visual Studio c++ 2015 runtime deployment with legacy application

I have a winforms .net4.5.2 application which depends on a c++\cli wrapper which is included in the VS project by reference. When the winforms application, that is built using Any CPU, is launched a assembly resolver is used to point out the correct…
tompish
  • 79
  • 3
1
vote
1 answer

WCF and Assembly.GetExecutingAssembly

I need verify that the calling code to my wcf service has been not tampered. The calling code is located in one dll file on client pc. I get the calling code by Assembly.GetExecutingAssembly(). To do some tests, I have created in my wcf service a…
cls71
  • 177
  • 2
  • 8
1
vote
0 answers

c# Programm can't find assemblys where VS 2015 is able to

Well the problem should be minor....should. I'm building my program with an assembly referenced with an absolute path (c:\ProgramData\Cryptus) which is obviously there: The app itself will be run from ...Cryptus\HUB; The library is referenced and…
1
vote
0 answers

Extend DbContext class using Ef6

I need to extend the generated dbcontext in my application using EF6 namespace DAL.Entities { using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Core.Objects; using…
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
1
vote
0 answers

Read embedded resource inside UWP app?

Sorry if the title is bad, really couldn't think of a more concrete way of saying it. But anyway, my problem is as follows: I have a library I'm writing (.NET 3.5), it contains mostly plain code and doesn't use any fancy libraries. The library have…
Whyser
  • 2,187
  • 2
  • 20
  • 40
1
vote
2 answers

Create an instance of a class in a different assembly by strings

I need to create an instance of a class, while only having the full class name (with namespaces) and the file-name of the assembly where the class is defined. I know that the assembly is in the current working directory. The default constructor…
Leifb
  • 370
  • 7
  • 20
1
vote
1 answer

How to get all assembly references using Mono.Cecil?

I'm using Mono.Cecil to inspect a portable class library I've built. I'm wondering how to get all of the referenced assemblies after I read the DLL in, much like how ILSpy does it. Can anyone help? Here is the code I have so far: var module =…
James Ko
  • 32,215
  • 30
  • 128
  • 239
1 2 3
99
100