Questions tagged [external-assemblies]
15 questions
4
votes
1 answer
How do I handle dependency DLLs that aren't referenced by my code but are required to be in the bin?
I'm developing a series of plugins for a 3rd part application, and the vendor gives us all of their plugin assemblies along with some helper assemblies for working with their system.
Our code usually references these helper assemblies, but the…

Joshua Lowry
- 1,075
- 3
- 11
- 30
3
votes
2 answers
Chain-referenced assemblies in WPF
today I'd like to know how do you configure your projects in C# WPF which references additional assemblies in a chain. By the "in a chain" I mean something like this:
we have application which refers to assembly Plugin
Plugin assembly refers…

SOReader
- 5,697
- 5
- 31
- 53
2
votes
1 answer
How can the Visual Studio build output location be specified for referenced assemblies?
I have a solution that includes a mix of .NET 3.5 and 4.0 projects. The 3.5 projects cannot be upgraded due to external dependencies.
The solution uses a simple plugin mechanism and I've set the output path on all projects to a common bin folder in…

Matt Siebert
- 367
- 1
- 9
2
votes
3 answers
Serializing and Deserializing External Assembly in C#
I wrote a plugin system and I want to save/load their properties so that if the program is restarted they can continue working. I use binary serialization. The problem is they can be serialized but not deserialized.
During the deserialization…

Selçuk Öztürk
- 975
- 1
- 14
- 23
1
vote
0 answers
c# How to programmatically load external assemblies with the same namespace
I have a "frontend" form application.
In my application the user can chooses external dll assemblies from different directoryes:
plugins_repository_directory
|
| first_item_directory
| Plugin.dll
| ...
|
| …

Tara Rulez
- 13
- 1
- 4
1
vote
4 answers
.NET Assembly Referencing 101
I have the following class located in Assembly A. The assembly has a reference to StructureMap 2.6.1.
public static class Bootstrapper
{
public static void Bootstrap(string databaseName)
{
…

ActionJackson
- 11
- 2
1
vote
1 answer
Using Ninject to inject IJob from external assembly into Quartz.net scheduler
I'm trying to create an application that can load external assemblies using Ninject and run them on a schedule using Quartz.net.
I have successfully implemented Quartz.net to be injected itself and run jobs based off classes implemented with IJob,…

Paul Bidwell
- 77
- 1
- 7
1
vote
1 answer
Where .NET Assembly loaded from CodeBase goes?
I am loading a dll from an external place using < codebase > element in the application configuration.
I want to know where the assembly gets instantiated?
I made < codebase > to point to my local drive (outside of appbase) and also a network…

hak
- 11
- 3
0
votes
2 answers
mvc3 razor page don't find Namespace
I read a lot of similar questions out there, but I can't solve my particular problem...
In my MVC3 project I use an external library. I can use this library everywhere, but not in my razor views.
So, reading some similar question on SO, I found out…

themarcuz
- 2,573
- 6
- 36
- 53
0
votes
2 answers
Using Ninject with MVC3 controllers that are in external assemblies
I have MVC3 controllers in external assemblies using MVC contrib's portable areas but I'm having a problem getting Ninject to inject the constructor dependencies.
The controller is found but I get an exception of "No parameterless constructor…

Max
- 1,543
- 2
- 16
- 31
0
votes
0 answers
Why adding external dll in class library expected to be added in calling project?
I have to call an external .Net Framework assembly that required to be consumed in different projects (Console, Desktop and Web Applications). In order to avoid adding external assembly, I have created a class library project and wrap external…

Farhan Iqbal
- 1
- 1
0
votes
1 answer
Is there a method or a way in Roslyn to enumerate all assemblies used at compile time by a given C# project
I'm developing an application that detects and eliminates useless external references in a given C# project for example a package referenced but not used. For this I need to enumerate all assemblies used either at compile and runtime. For those used…

Tahatoun
- 21
- 5
0
votes
1 answer
DLL works for web based apps but not stand window apps
I took some of my most used functions and extensions and put them into a DLL so I can include the DLL into any project. This works fine for web based projects but throws an error on stand-alone apps. I do an Imports on the assembly name. I can see…

Robb Woods
- 69
- 2
- 3
0
votes
2 answers
Can't load System.Web.Mvc even though it's clearly there and is correct version
I'm getting one of these:
Could not load file or assembly 'System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly…

BVernon
- 3,205
- 5
- 28
- 64
0
votes
0 answers
How to activate breakpoints in a single DLL in Visual Studio when the program is not started via Visual Studio
I develop a C# program that allows the user to enter C# code for extensibility.
This code shall be developed in Visual Studio Express and will be compiled into a DLL which is then used in the main program.
This part is fine.
To aid the user in…

Onur
- 5,017
- 5
- 38
- 54