The title says it all.
Since, it's possible for anyone to name an assembly starting with 'System', checking for 'System' is not a satisfactory solution.
Alternatively, if that's not possible, how about checking the modules in an assembly?
...
How do I Load the class "MyContent" dynamically ?
I have 1 interface<T>, 1 abstract generic class<T> and 1 class. Check my code out:
public interface IMyObjectInterface{
}
public abstract MyAbstractObject : IMyObjectInterface{
}
public class MyObject : MyAbstractObject{
}
public interface IMyContentInterface<T> where T : MyAbstractObj...
I want to change the assembly attribute like AssemblyTitleAttribute value to something else once the build is done. Is this possible?
Its just that we have two types of builds one is base and the other is obfuscated, so we just want to add some changes to title / attribute values without rebiulding the assemblies.
...
There are two XSL files. One includes another using an <xsl:include>. The main template desides which actual templates to call depending on node values, and included templates contain actual transformation rules. Nothing special here.
But included file has a script block:
<msxsl:script language="VB" implements-prefix="user">
<msx...
I have an assembly loading problem that's cropping up when I convert from Vista (32bit) to Windows 7 (32bit). It occurs when I try to load some very old Sybase ASE ADO.NET data provider DLLS.
The log from the fusion log viewer shows this:
*** Assembly Binder Log Entry (18/01/2010 @ 5:00:38 PM) ***
The operation failed.
Bind resu...
I have a solution which contains 3 project. One project handles asynchronous communinications. When it has completed it's callback, it raises an event SomethingCompleted.
How do I subscribe to this event from another project in the same solution?
I have the event handlers built in the receiving project but it does not see the event in...
I'm refactoring some code and I've been hit with a dilemma.
Let's say we have the following scenario:
A Core Assembly that contains many common interfaces and classes
A Library Assembly that contains more specialized classes.
The Library Assembly references the Core Assembly. So far so good.
Due the fact that I'm refactoring this, ...
Possible Duplicate:
Can I declare a variable of Type<T> without specifying T at compile time?
Objective: To Load the class "MyContent" dynamically. I have 1 interface<T>, 1 abstract generic class<T>.
Code:
public interface IMyObjectInterface{
}
public abstract MyAbstractObject : IMyObjectInterface{
}
public class MyObject : My...
I am trying to find a solution for dynamically loading the updated dll from a folder or database in a winform (C#.NET) application.
Suppose I have an exe (say MainApplication.exe), which will act as a wrapper/container for the real business logic. The business logic will sit inside the assembly (say Business.dll). Now, how would I dynam...
I have a DLL. from which I would like to get the app's name. The following code, called from the DLL, returns the DLL's full name:
string assemblyFullUncPath =
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
...so it isn't quite what I'm after. I could add an Assembly parameter, but I'd prefer not to. Is it ...
I have different versions of dlls for my .NET application and most of the time I want to use the latest one. However, there is one method which I run on a separate thread where I need to be able to select an older version of the dll based on some criteria.
I have learned that it is not possible to just load an assembly and then unload i...
Hey,
I have a need to provide a 32-bit CRC (Cyclic Redundancy Check) of all assemblies, which is stored (for release control purposes), and may then be compared against the assemblies present on a system at a later date (in order to check that the release hasn't been corrupted in some way).
I have no problem calculating the CRC of the ...
I need a tool that can dump the referenced types used by an assembly in a machine readable format.
e.g. this Code in assembly 'dummy.exe'
static void Main()
{
Console.WriteLine("Hello World");
}
would produce something like
<references assembly="dummy.exe">
<mscorlib>
<System.Console>
<WriteLine/>
...
Can you do this...
My application references another a project which has an XSD file in it.
Whats the best way to get that XSD?
I did a bit of googling and found suggestions like load the assembly and get it from that, is there no easier way?
Can anyone help?
Cheers,
Andy
...
I'm doing some refactoring and am trying to reuse my genertated entity models. My application has a few assemblies, one being my outward facing public types (API) and one containing implementations of providers (such as the log).
I'd like to split the generation of the entities and models so that the entities will be in the API assembl...
I am currently developing a utility class as a part of my business layer. The task of this class is to load a template PDF file, fill out the PDF with iTextSharp and return the resulting stream. I am having some "analysis paralysis" as to how to store the predefined PDF templates in my business layer. Do I throw all of my PDFs into a fol...
SOME CONTEXT
one of my projects requires carrying around some of "metadata" (yes I hate using that word).
What the metadata specifically consists of is not important, only that it's more complex than a simple "table" or "list" - you could think of it as a mini-database of information
Currently I have this metadata stored in an XML fil...
What is the difference between *.a and *.dll on Windows? From what I understand one can package all the *.o files into a *.a, which is a distributable that other application can use, on Linux.
But what are the difference between *.a and *.dll? Are they interchangeable? If my application needs to link to *.a, can I link it to *.dll as a ...
I have an AJAX control project that has a .js file which is configured as an embedded resource.
My main web application references this project, and when I try to load up the control I get this error:
Assembly does not contain a Web resource with name 'MyFile.js'.
Here is my implementation of getScriptReferences:
public IEnumerable ...
Hello,
I want to use this code to grab all methods from the assembly "Mscorlib.dll" but i get this error
"Unable to cast object of type 'System.Reflection.RuntimeConstructorInfo' to type 'System.Reflection.MethodInfo'."
Basically all I want to do is get a list of interfaces or Members of that assembly.
Heres the code:
using System;...