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
0 answers

Set NuGet package target framework

I'm trying to set a target framework for my NuGet package with NuGet Package Explorer. I've created a folder lib/net462/myassembly.dll. I want to prevent the package from being installed on .NET projects targeted lower than version 4.6.2. When I…
Arnold Pistorius
  • 522
  • 4
  • 18
1
vote
0 answers

How to check if referenced dll is needed for class on runtime

I hav ea program which dynamically loads and adds elements based on all found dlls in a given directory. (in short: Assembly.LoadFrom("...xyz.dll").GetTypes().Where(t => typeof(MyBaseClass).isAssignableFrom(t).Select(t =>…
Robin
  • 123
  • 7
1
vote
0 answers

Assembly Version Conflict (Microsoft.Data.Services.Client)

Using Microsoft.Azure.ActiveDirectory.GraphClient 2.1.1 in an ASP.NET Core 1.1.1 MVC 6 project running with Framework 4.6.1 underneath. One of it's dependencies in Microsoft.Data.Services.Client. However when I compile I get what seems to be the…
RNDThoughts
  • 892
  • 3
  • 13
  • 30
1
vote
1 answer

Could not load file or assembly 'System.Data.DataSetExtensions

This is my first time working with SQL Server 2012 and I'm having a problem getting access to the database. I did a backup and restore from a SQL Server 2008 R2 database, set the logins and permissions, set the database to trustworthy and enabled…
CL95
  • 11
  • 1
  • 2
1
vote
0 answers

Unity Container does not work with Strongly Types Assemblies

I am trying to register a type using Unity : Container.RegisterType("Name001"); Here MyTypedClass is inside an assembly which signed with a snk. So when I try to resolved, getting this error: Additional…
Simsons
  • 12,295
  • 42
  • 153
  • 269
1
vote
1 answer

assembly load referenced a few dlls

In my ASP.NET MVC project, I want to make my service classes as a class library. I want to add a few dlls to my main project. The dlls that will be added have assembly references on their own. Some of them might are the same, such as System…
Mehmet
  • 739
  • 1
  • 6
  • 17
1
vote
1 answer

Added reference and using but type is not exist

I whant override MultipartMemoryStreamProvider. In class library project I added reference on System.Net and System.Net.Http. Also I added using for this namespaces in 'cs' file. When I'm write public class MyProvider :…
user6408649
  • 1,227
  • 3
  • 16
  • 40
1
vote
1 answer

.Net assemblies and internal access modifier usage

I read several topics, Googled many sites, read dozen of definitions about "internal" access modifier. But still confusing. I could not find exact definition of assembly. Let's assume in Visual Studio I have Solution, in which I have Two projects -…
Elshad Shabanov
  • 483
  • 10
  • 17
1
vote
1 answer

SQL Server can't find my function in my DLL / Assembly

I created a library class in C# with this code as you can see: namespace ManagedCodeAndSQLServer { public class BaseFunctionClass { public BaseFunctionClass() { } [SqlProcedure] public static void…
Ehsan Akbar
  • 6,977
  • 19
  • 96
  • 180
1
vote
0 answers

how to add image/file to assembly from computer storage using C# code

I want the following functionality in my code, so I can save files or images to assembly of my project from computer for later use: SetHeaderImage(openFileDialog1.FileName); private static void SetHeaderImage(string filePath) { …
1
vote
2 answers

Windows UWP - Dynamically Load Assembly In Side Loaded App

It seems to be a deliberate security of Windows 10 Store apps that assemblies not be allowed to be loaded at runtime. I think that this feature is massive overkill and stops UWP development dead in its tracks. However, if it is a rock solid design…
Christian Findlay
  • 6,770
  • 5
  • 51
  • 103
1
vote
0 answers

C# Dynamic compile and replace/reload of assembly from within same assembly

I have several issues with several SDK's comming from OEM manufacturers for specific devices. SDK is usually based on C or C++ dll, so I have a lot of Marshaling going around (a lot===YOU CAN'T EVEN IMAGINE). Problem start with next version of SDK…
SoLaR
  • 778
  • 7
  • 22
1
vote
2 answers

Could not load file or assembly 'Elasticsearch.Net' or one of its dependencies

I've recently upgraded from NEST 1.9 to NEST 2.3. From some reason the assemblies in .NET have not been updated and are still looking for ElasticSearch.net package Elasticsearch.Net, Version=1.0.0.0 I've tried uninstalling then installing…
Adrian
  • 5,603
  • 8
  • 53
  • 85
1
vote
0 answers

Finding all types with a constructor parameter of a particular interface?

I am trying to get a list of all the types in a particular assembly, and then filter that to all types with a constructor that has a particular type as a parameter. In this case, I'm looking for all constructors that contain ILoggerFactory. // Get…
user9993
  • 5,833
  • 11
  • 56
  • 117
1
vote
1 answer

PostSharp - Applying aspect to mscorlib but prohibit modifying calls in my own class

My aspect: [Serializable] class DumbLogger : OnMethodBoundaryAspect { public override void OnEntry(MethodExecutionArgs args) { Log.Print("Entry: ") + args.Method.Name; args.FlowBehavior = FlowBehavior.Continue; } } This…
Joao Vitor
  • 169
  • 1
  • 9