assemblies

MS Build Error 3181- Problem with referenced assemblies

Hello everybody, imagine the following scenario: Assembly "Foo.dll" references the ADOX-Library (Microsoft ADO Ext. 2.8 for DDL and Security) which was added as Interop.ADOX.dll in the bin-directory by VS 2010. "Local copy" of this reference was set to true, too. Assembly "Bar.exe" references both Foo.dll and additionally the ADOX-Lib...

Getting file version info in the Compact Framework

I have some code that needs to be able to find the version number of an assembly, given a string saying where it's located. I can't get this to work: Assembly assembly = Assembly.LoadFrom("\\Program Files\\Microsoft SQL Server Compact Edition\\v3.5\\sqlcecompact35.dll"); throws a System.IO.IOException: File or assembly name '\Progra...

External alias in XAML

Hello, I'm currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4. This library defines a MenuItem class in the System.Windows.Controls namespace. No problems with SL3 because there is no MenuItem class elsewhere in the Silverlight class library; but now I need to use another control in a Silverlight 4...

In a Maven multi-modules project, is it possible to apply the assembly plug-in in a recursive manner?

I have a multi-module Maven project, and I would like to assemble together artifacts created by running the assembly plugin on individual modules. Is this possible? ...

How to execute WPF assembly from memory?

If the ms variable is a MemoryStream and contains a .Net assembly, you would normally run it like this: var asm = Assembly.Load(ms.ToArray()); var entry = asm.EntryPoint; var inst = asm.CreateInstance(entry.Name); entry.Invoke(inst, null); This works well on console applications and windows forms applications, however, WPF applicat...

How do I start a process in C#, but have it run only after all assemblies have been unloaded?

I have a program that spawns another process from within one of the loaded assemblies. This second process goes and grabs an installer for the program that spawned it (confused yet?). This second process just starts the installer at a specific web address: System.Diagnostics.Process.Start(www.mySite.com/myInstaller.exe); The problem i...

System.Linq namespace missing even with reference to System.Core.Dll

When I open up a Asp Net web site of mine in Visual Studio 2010 the properties say "Target Framework 3.5", however when I try to using the Linq namespace the compiler complains about it. "The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)" "The type or namespace name 'Linq'...

How to get the assembly information of an imported MEF function?

Is it possible get the assembly information from an imported MEF function? I need to know the assembly version and name of the Plugin control that contains the function. Tried the following, but it just returns the System.ComponentModel.Composition version. foreach (Lazy<Func<int>, IMetadata> func in PluginFuncs) { // get assembl...

how do you add multiple versions of the same assembly to the gac

My one ASP.NET web site uses two different business object class libraries. There is a common framework DLL (CSLA.dll) between these two libraries. The problem is that one library wants to upgrade to CSLA v.4.0.1 and the other wants to remain at v.2.1.4. How do I solve this conflict at the web site? I think I need to install both versio...

Adding references adds wrong version

When adding a reference to VS 2008, the version is listed as v1.0.0.0 when it should be v1.1.0.0 - as far as I can see there is absolutely no reason why it is adding the wrong version. Both projects are written from scratch, no other refs reference the assembly I'm trying to add and when I look at the file in windows, it has the correct...

Visual Studio assembly registration

I am trying to compile a sample from ESRI and I get this error Error 1 The command "esriRegasm.exe CommandInheritingBaseCommand.dll" /p:Desktop /s" exited with code -1. So somewhere in the project there is a command to invoke esriRegasm.exe, but I can't find it. I right clicked on the project -> properties and looked in Build ...

How to add assembly manifest to a C# .NET class library project in Visual Studio 2008?

I'm having a similar problem to what Paul had a year ago (see How to add manifest to a .NET DLL?). That is, I have a C# class library project in Visual Studio 2008, which outputs a dll. The dll references some private assemblies, so I want to add an assembly manifest to the dll that specifies those other referenced assemblies. I know ...

How to target asp.net MVC 1 when version 2 is installed on build machine

Hi There, I have a site that was built using asp.net MVC version 1. I recently upgraded to visual studio 2010 which includes version 2. Upon opening the site now, I see that it believes the runtimes for MVC for this project are at version 2 so when I publish to my server, it fails as it cannot find version 2. Installing MVC 2.00 is not...

how to add arbitrary information in manifest from maven assembly plugin

Hi, i use the assembly plugin to create a uber jar from several maven artifacts. Now I like to add some company specific entries into the Manifest of the created assembly jar. But how ? the archive element doesnt allow arbitrary elements (or is there a way to add foobar: tutu inside the archive tag ?) also in addition with maven-jar...

Could Not Load Assembly .NET 4.0

Hi guys, whenever I build my web solution I get this error : Could not load file or assembly 'dotless.Core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=96b446c9e63eae34' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) I have VS 2010 with .NET 4.0 on Windows 7. The dlls...

.NET Signed assembly - how to protect against someone removing the signature

There is a general perception about signing an assembly protects against hacking/modifying the code. But then there are well known way of ILDASMing to remove these signatures. I am wondering if there are anyways to protect my .net assembly against someone removing the signature? Does seem like obfuscating my code can be anyhelpful in thi...

Importing assemblies into IronPython from another assembly

I have an IronPython 2.6/2.7 script I am writing which imports a lot of assemblies. In other words, at the top of the script it does this... clr.AddReference( "System.Xml" ) import System.Xml Except it doesn't do this for 1 assembly, but for 10 assemblies. Some of the modules are built-in .NET assembllies and some are assemblies I ...

Running Different version of Unity.

Is it possible to run different versions of Unity within an app? I m referencing an app which uses an old version of unity and the current version of unity i m using the newest version. I get this warning . I tried what the posts suggested but didnt work out. How to get this working? THanks. ...

How can i hide "setters" from all but one assembly?

Hi Guys, I have alluded to this issue in my other question, but i think it's worthwhile breaking it out into its own question, as it's not really dependant on the other scenarios i mentioned. Anyways - onto the Q, don't know if this is possible. Looking for a solution/workaround. I have a Class Library, with nothing but POCO's: MyCom...

Windows Form launched from WPF window showing no current system theme. Why?

Hi all. I have a WPF application that has a variable "x" which is an instance of a class from a custom C# assembly called "MyClasses.dll". This variable "x" has a method "LaunchForm" that launches a Windows Form "Form1" from another assembly "MyForms.dll". The form is launched as a dialog and shown in the screen but the current Windows X...