assemblies

How can I get all the inherited classes of a base class?

class Foo { } class Foo1 : Foo { } class Foo2 : Foo { } How would I be able to get all the classes that use Foo as a base class? The inherited classes aren't necessary in the same assembly. ...

[C#] Assembly instance with no types in it

How do I get Assembly reference for a .dll with no types in it? var assembly = typeof (SomeType).Assembly; --> but without having to spacify any type? Something like Assembly.Get("AssemblyName"); ...

Maven assembly Plugin with Maven Jar Plugin

Hi, I'm trying to use the maven assembly plugin for the first time. Essentially, I want to combine the output of the maven assembly plugin with that of the maven jar plugin into the target/classes directory so I can still run the app within Eclipse. I couldn't find a way to tell the maven jar plugin to collect the output of the maven ...

Access denied when loading dependancy .dll .NET

Okay, We have a .NET WinForms application that has several .NET dll's it depends on, running on an XP machine, that is connected to a network in a large domain. A little story, that defines the problem. We deployed this application on a customers machine while logged in as an admin and all worked fine. We then logged into a lower pri...

Automatically advance minor version number every build (VS 2008)

I use the assembly information version number - and advance it manually through the VS 2008. Is there a way to advance the minor version number automatically each time I Build the solution ? ...

Can NInject load modules/assemblies on demand?

Are there facilities in NInject that will allow me to load services from other modules (assemblies) on demand like it's done in Unity? ...

Can StructureMap load modules/assemblies on demand?

Are there facilities in StructureMap that will allow me to load services from other modules (assemblies) on demand like it's done in Unity? ...

Assemblies mysteriously loaded into new AppDomains

I'm testing some code that does work whenever assemblies are loaded into an appdomain. For unit testing (in VS2k8's built-in test host) I spin up a new, uniquely-named appdomain prior to each test with the idea that it should be "clean": [TestInitialize()] public void CalledBeforeEachTestMethod() { AppDomainSetup appSetup = new A...

Deploy Crystal Report dlls only using ClickOnce without using prerequisite .msi

Hi, I believe the conventional way to deploy Crystal Report with a .NET program is to set it as a prerequisite in the publish settings and then a .msi will be packaged with the ClickOnce files on the web/network/CD/wtv. When the user runs setup.exe, it will check whether Crystal Report is on the client computer. If not, it runs the Cry...

Microsoft Assembly configuration for 32-bit mixed C/C++ application

We have a 32 bit mixed C/C++ application that we are trying to deploy to the world. It naturally uses C and C++ runtime DLLs. We are using VS 2005. The manifest constructed by VS2005 is the following: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> ...

How to unload assemblies from the GAC?

I am trying to run automated tests on a particular product. The test consists of installing the product into different locations on the hard drive and then performing some operations on it and then closing the application. The code that launches the process looks like this: using (Process process = new Process()) { ...

Force web application to use certain dll version C# asp.net

Hi All, I have a ASP.NET web application in which I have references to a couple of Class Libraries I developed. Each of these libraries has a version number set in the AssemblyInfo.cs file. I would like to force the application to use only libraries with a specific version. i.e. If I have User.dll of version 2.5.0.0 which is a refere...

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: <extensions> <behaviorExtensions> <add name="protobuf" type="ProtoBuf.ServiceModel.ProtoBehaviorExtension, protobuf-net, Version=1.0.0.275, Culture=neutral, PublicKeyToken=257b51d87d2e4d67"/> ...

How does Visual Studio find Unity/P&P or Office assemblies in its Add References Dialog?

I have read other posts on SO regarding VS's Add References dialog and how it populates assemblies. However, even after looking in Reference Assemblies folder and using the AssemblyFolders registry key for 32-bit and 64-bit, I am still unable to locate some assemblies, such as Unity/P&P and Office assemblies, when searching for them prog...

.cs to .dll convertion problem

Hi, I've 10 .cs files in my app_code folder. Now I want to convert all 10 class files into one dll. Is if possible? I'm trying to convert it by using csc /t:library admin.cs --> like this But it is showing error like The type of namespace dbConnection could not be found (Are you missing a using directive or an assembly refference? ) ...

Prevent a specific assembly from being added to my factory project?

I've created a factory assembly that can process any type of transaction (that supports ITransactionType). I can add more transaction types in separate assemblies, all of which will work with the factory without it needing to be recompiled (which is one of the benefits of a factory). There is an actual list of transaction types that ca...

Reference two equal assemblies, only public keys differ

My Visual Studio 2008 project references two (external) assemblies (A+B) both of which happen to be referencing the same third assembly (C). However, assembly A expects assembly C to have a public key which is different from what assembly B expects it to have. Here's an example of the obvious exception: Could not load file or assemb...

signing assemblies on windows mobile device

HI I have created an application for my windows mobile 6.0 device and I need to sign it so that the user can download updates without having to select that they trust the publisher I'm not entirely sure what I'm doing here but I created the following files on the command line .pfx using pvk2pfx .spc using cert2spc .cer using makec...

Unload/unreference a referenced assembly from F# interactive

The F# Interactive (fsi.exe) has a directive to reference a given assembly: >#help;; [...] #r "file.dll";; Reference (dynamically load) the given DLL [...] I often like to unload/unreference previously referenced assemblies in order to recompile them. Is that possible? Edit: I'm running fsi under MacOSX and Mono - sho...

Binding redirect problem in .net

I have a class library called "MyAssembly" that is internally referencing a.dll, b.dll of version 3.1.1.0; I have build the project which outputed MyAssembly.dll. On a different system (box) I have created a web application project and referenced the MyAssembly.dll. the new system has new versions of a.dll and b.dll 4.0.0; I used binding...