assemblies

Good way to script regasm and gacutil for a COM Interop DLL on a developer machine

I'm working on a .NET library that is intended to be consumed in a VB6 project. To set up the dll to be used on my developer machine, I use regasm and gacutil, like so: regasm /tlb:MyDll.tlb Mydll.dll gacutil /i Mydll.dll On each subsequent call, I also unregister/uninstall the assembly: regasm /u /tlb:MyDll.tlb Mydll.dll regasm ...

Microsoft Application block DLL V2 and V4.1 references

My application is referencing Microsoft Enterprise library V4.1 while one of the older DLL (external application) requires a reference to Microsoft Enterprise library V2.0. I know for sure that i can register both of these assemblies in the GAC and the application will start reading relevant DLL as required but that is not a solution for...

Use Manifest Tool (mt.exe) to Change "Version" of "Unmanaged Assembly"

Now that native code can have assemblies (e.g. "unmanaged assembly") for side-by-side cache usage, I'm interested in changing the version of a DLL after it is built (as part of an incremental build auto-versioning scheme). I think I'm close using this commmand: mt -updateresource:MyNewlyBuiltThing.dll;#2 -identity:"MyNewlyBuiltThing, v...

Referencing a class that may exist in one of two assemblies

I am currently working on a data harvester for a project. The way it works is it basically calls another program which collects the data, and that program returns a data structure containing a collection of queue information. The harvester then serializes out the data. The program that actually collects the data is maintained by another ...

Find the approximate disk spaced used by a specific class in an assembly

Is it possible to determine the disk spaced used by a class, namespace or method in an assembly? For example in Reflector you can see the number of bytes used by resources in the selected assembly. I am asking because I am working with Silverlight and my client executable (xap) is getting quite big. It's already possible to see the siz...

Uri reference to ressource in assembly loaded on demand.

Hi there, I do load an assembly on demand which holds ressources (fonts) in it. The assembly is being loaded by the AssemblyPart class, and therefore added to the current application domain. txt1.FontFamily = New FontFamily("/SilverlightFontLibrary;component/GRAFFITO_01.ttf#Graffito") Dim kaa = Application.GetResourceStream("/Silverli...

Why do I need to reference this assembly, even though its not being used

Hey everyone, I've got an architecture like the following: Data (Class Library that handles our Entity Framework stuff) Components (Middle tier class library that references Data library) WebOffice (Web Application that references Components library, but NOT Data library) Now, I have the following snippet of code (this lives inside ...

Add reference always picks a certain file, even if I add a local assembly file

I have installed blend which installs Microsoft.Expression.Interactions.dll which I reference in my project. If I copy this dll to a folder local to my solution and reference that copy, when I look at the properties of the reference in visual studio it always shows the path to the version that blend installed. It only changes to the lo...

Is it possible to resign a signed .net dll with a different key pair?

My colleague deploy a dll and he signed with the key generated on his machine.Right now I need to use the DLL in my project, so I need to resign the DLL, I generate a key pair on my computer, then try to resign it with sn.exe -R or sn.exe -Vr , but always failed. Is it possible to resign a signed .net dll with a different key pair? T...

How to Inherit C++/CLI Interface in C#?

Hello, I have declared an interface in C++/CLI and made it assembly(DLL). Now I want that interface to be implement by C# app. I have added the reference but still my C# assembly does not detecting my C++/CLI interface and says "Could not found: Are you missing some assembly refernce......" How to solve this issue? Regards Usman ...

Typogrify equivalent for .NET

Does anyone know of, or use a library that has similar functionality to Typogrify (http://code.google.com/p/typogrify/) in a .NET project. Typogrify is a Python/Django library and I am looking for an equivalent that I could use in a .NET project. Edit: Now I'm just looking for any typography processing library for .NET ...

App.config <bindingRedirect/> for assembly with Strong Name and then use Short Name in C#

I think Title is not very suggestive in what I meant to ask, so theres is an example. I have this method that receives a name of System.Windows.Forms Control and then returns the type. (I need to use Version=2.0.0.0 of System.Windows.Forms) return Type.GetType("System.Windows.Forms." + name + ", System.Windows.Forms,Culture=neutral, Ve...

merge DLLs n .cs files

Hi, A part of big project is a payment system, that I would like to reuse. I want to merge all the class files of this payment system into DLLs so that add them as a reference in all the other projects. The present payment system is also using namespaces from the DLLs of a commercial application (nsoftware-paypal n few others). I tried ...

How do you make Visual Studio run assembly files (dependencies) from the bin?

I have a solution made up of multiple projects which have various dependencies on each other. When I build the project/solution, it creates the DLL assembly files in the Project\bin folder(s) as it should. But when I run the program, it copies everything to the temporary files folder and runs it from there: C:\WINDOWS\Microsoft.NET...

Protecting assembly from hacker

I have a console application references assembly A. I want to ensure that the application will not run if A.dll is tampered or replaced. One option is to use strong-name signing. But do I need to worry about strong name bypass? Are there any other good options? Thanks ...

Is there a free program that merges assemblies (like ILMerge), but works with wpf?

I have not had any luck merging wpf assemblies using ILMerge. ...

Why does GetMachineStoreForAssembly() use different directories sometimes?

I've got an assembly in my framework, the purpose of which is to manage some data common to several applications that I am building. The assembly uses isolated storage to persist the data. The assembly itself happens to be a command-line .exe application and it can be executed directly as a tool to examine and make changes to the data....

.pfx password issue C#

A new topic too me is file extension .pxf security. Even though I get the password, I don't know how to use them. How does this work on .NET programming? Especially unlocking pfx-secured assemblies. Assignments are submitted as compressed solutions. Normally, I unzip files and open them using Visual Studio 2010. ...

Copy assembly dependencies from lib folder that uses SVN

Hi All, I have been investigating the best way to store our solutions in SVN and came up with a structure of: Libraries EntLib DLLs Global DLLs SubSonic DLLs Source sln Project 1 Project 2 Libraries uses svn:externals to pull down the correct version of the assemblies. My issue is...

Can you access an object through two layers of assemblies?

I have a public class, MainObject that is in a class library (dll), for this example we will call it BaseLibrary. I have a higher level class library that references the BaseLibrary to gain access to it's members. We will call this one DeviceLibrary. I then have a Windows Forms Project, DeviceControl, in which I have added a reference ...