assemblies

Restricting using strong named dlls functionality

Hi, I'm trying to think of a way that prevent others using your published dlls, for example let's say you create a cool light weight winui photo processing tool that's separated into several assemblies. one of them is your precious filters.dll assembly that basically does all of the core filtering work. Once you publish your application,...

Is there a way to package more than one .NET assembly in a dll?

I'd like to keep my components/assemblies clearly separated from a source code point of view but I also need in some circumstances (probably not relevant to expand) to package them in the same dll. Is it possible to package a number of .NET assemblies in a single dll? If so, How? IF possible, do you think it is a good idea? Why? Any ...

Is it possible to reference the output of an IronPython project from within a c# project?

I would like to build a code library in IronPython and have another C# project reference it. Can I do this? How? Is this just as simple as building the project and referencing the dll? Is there any conflict with the dynamic aspect of it? ...

Designer to see internals?

I have my signed assemblies here, in one of them I have a picture in the resources. The other one is granted to use it as it's own, so my other assembly can reference the picture, and everything works fine. Only if it wouldn't be for the Form Designer in VS2008. It does not see the Image. ( It might be ok, since it's linked at compile...

.NET Cross-Assembly Performance Hit

I am reading Bill Wagner's book Effective C#. In Item 32 he is advocating for developers to create smaller, more cohesive assemblies that can be reused more readily. However, in that same item he says: ... Extra Security checks also are done across assembly boundaries. All code from the same assembly same has the same level ...

Reusing The .NET Application Icon

How can I reuse the application icon from within my application so I don't have to embedded it twice (once for the application icon and once for internal usage)? ...

C# Automatic find a Children Class by a Unique ID

Hello! I have about 20 classes for different messages and this number are growing. Each class has a unique ID, so I can transform the class on a byte[] with my own method of serialization and then transform a byte[] again on my class with this uniqueID. All my messages are children of a BaseMessage class that already implements the uniq...

Programmatically retrieving assembly version of a running service

Hello! I'd like to access to assembly version information of a service I "control" with ServiceController class. (ie. I'd like to display "2.3.1.23" ), however I can't find any information about retrieving assembly versions ... Is it possible at all? EDIT: Just to clarify ... I only know the name of the service running on the local com...

What exactly is an Assembly in C# or .NET?

Could you please explain what is an Assembly in C# or .NET? Where does it begin and where does it end? What important information should I know about Assemblies? ...

How do I include specific controls from System.Windows.Controls in my Silverlight app?

Microsoft has a handy reference of the various controls in the System.Windows.Controls namespace and which controls are included in the runtime. For any controls listed here that aren't included in the runtime, you have to include the reference to the System.Windows.Controls assembly and select "copy local" in Visual Studio. So that's ...

C# Plugin Architecture with Strong Names: A Misunderstanding

I have a server executable that talks to Active Directory to retrieve user information. In addition to AD, this exe allows customers to write their own plugins to talk to custom user directories. This executable is strongly named. Is the following a true statement: In order for a strongly named assembly to load another assembly, ...

How to modify an assembly's version number after build?

I have an assembly that is already built, but I need to modify it's version number. Is there a way to do this without recompiling? ...

.NET symbols disappearing from assembly

I have a project that is built with native C++, as well as C++/CLI. I have the following components: Assembly A (C++/CLI) | uses Assembly B (C++/CLI) | uses Static Lib C (Native C++) I did a major re-write of Static Lib C, and it compiles, and other native projects that use it compile fine as well. None of Assembly B changed in t...

How to use two different Microsoft Interop assemblies in one project ?

I want to use two different Microsoft.Office.Interop assemblies (version 11 and 12) depending on the Office version installed on customer's machine. I've been able to add these two asseblies to my project ( I am using them loccaly - they are in my bin folder, in two diffrent subfolders) , I used aliases on this assemblies to be able to ...

How to add folder to assembly search path at runtime in .NET?

My DLLs are loaded by a third-party application, which we can not customize. My assemblies have to be located in their own folder. I can not put them into GAC (my application has a requirement to be deployed using XCOPY). When the root DLL tries to load resource or type from another DLL (in the same folder), the loading fails (FileNotFou...

What information does a .NET class have about what is calling it?

I'm building a class project (seperate dll) that will contain various helper methods and common functionality, to be accessed by a range of different applications - an ASP.NET website, a web service and a Windows service. Is there any way that this neutral class can determine the type of application that is calling it (so it could, for ...

View binary image assembly

I have a binary image (a dll) which I wish to view the assembly for. I also have the PDB associated with the dll. Are there any tools out there that will allow me to open the binary image and navigate through the assembly, without needing to execute it? ...

How do I make a .net assembly filesize as small as possible?

I have a .net assembly that contains data access code (a bunch of Typed Datasets and helper classes) that is quite large on disk (~2.5MB). What can I do to work out why it's so big and make it smaller? ...

.NET deserialization - using different assembly

I've got a problem I can't find any solution for. I have a textfile containing Serialized objects. I need to extract that data. I have the code of class that was used to serialize and the entities but not the original assembly. I can't deserialize this because the serialization class wants the exact same assembly to deserialize as the o...

WinSxS: How to take dependency on specific version of gdiplus.dll?

I need to add a dependency on a specific version of GDIPlus. This is the version of GDI+ that i want: I want to be sure that I'm using this version for a specific compatibility reason. I've added an assembly manifest to my executable, defining my dependancy on the version of GdiPlus: <dependency> <dependentAssembly> <assemb...