Questions tagged [assembly-resolution]

229 questions
1
vote
2 answers

How do I force a load of System.Management.Automation.dll v1.0 from a machine that has PowerShell version 3.0 on it?

I'm trying to get [poshrunner.exe] to be able to run a script in a PowerShell version 2.0 environment on a machine where PowerShell version 3.0 is installed. PowerShell.exe supports this, although it seems that distinct support for PowerShell 1.0 is…
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
1
vote
1 answer

Is it possible to have extra context inside the AssemblyResolve method?

Motivation. I have a client-server application. At some point the server side creates a new type dynamically based on certain metadata, unavailable to the client. The server needs to send an instance of the type to the client. However, the client…
mark
  • 59,016
  • 79
  • 296
  • 580
1
vote
0 answers

Wpf Assembly Reference failing for Mef powered application that has executing assembly and mef modules physically separated

We have an application as well as a Visual Studio add-in that both load their (modular) functionality from Mef assemblies located elsewhere on a users machine than the application is installed itself. Now one of our developers used Wpf (using…
Jörg Battermann
  • 4,044
  • 5
  • 42
  • 79
0
votes
2 answers

Redirect referenced assembly to a different version in C# console application

I'm trying to use the log4net RabbitMQAppender in a C# console application, and it seems like this requires RabbitMQ.Client 2.6.1.0 to be referenced. I'm currently using the latest version, 2.7.1.0, which is causing the appender creation to fail…
Mun
  • 14,098
  • 11
  • 59
  • 83
0
votes
2 answers

solving an assembly conflict issue -- Visual Studio project reference + specific version

SHORT QUESTION: How can I use a project reference but build my assembly so the reference is a specific version reference? LONG QUESTION (more details): We're working on a modular setup for one of our applications. Different sets of software…
0
votes
1 answer

How to make a C# win service app to refer assemblies from a host machine

I am building an agent service in C# to communicate with SCVMM installed on host. To do that the agent refers the following assemblies: Microsoft.SystemCenter.VirtualMachineManager.dll and Erros.dll etc. In visual studio dev environment, I have…
Bala
  • 105
  • 1
  • 10
0
votes
1 answer

Not able to reference assemblies from parent directory in a installation path

After installation the software has below structure: Base installation directory path is : C:/ProgramFiles/APP_Name/App_Base_Dir Exe Path: C:/ProgramFiles/APP_Name/App_Base_Dir/2ndAppFolder/bin/2ndApp.exe While trying to run the 2ndApp.exe it is…
0
votes
0 answers

Resolution of Microsoft.Net.Http.Headers assembly version 2.2.0 versus 6.0.0 depends on seemingly unrelated package references

While trying to use HeaderNames.XFrameOptions, I found that it works in one of my projects and fails in another. Both are targeting .NET 6. In my app, I need to work with the X-Frame-Options HTTP header. When possible, for maintainability reasons, I…
Palec
  • 12,743
  • 8
  • 69
  • 138
0
votes
1 answer

How does csc/Roslyn resolve assembly version?

I have a console program that has two direct dependencies: ClosedXML v0.97 and ClosedXML.Report 0.2.4. The ClosedXML.Report dependency also depends on ClosedXML, but in a version 0.95. When I try to compile the program in NET6 (basically only a…
jahav
  • 699
  • 1
  • 7
  • 24
0
votes
1 answer

.Net5 version-tolerant assembly loading

I have the following situation in .Net5/C# that I'm struggling to resolve. We have Application (let's call it Platform) U that is able to load plugins, e.g. Plugin P, referencing Utilities U which is part of the Platform and shares its version. Our…
0
votes
1 answer

Can't load dll files as an embedded resource to my class library

I'm looking to embed and load dll files into my class library so that it can be contained in one dll. I have a Class Library called Wraper. I'm using a Console application called ConsoleApp to run the Wraper Class Library. class Program { static…
0
votes
0 answers

MSB3277 in child project

Hello I got MSB3277 warning in child project if I reference parent project with two different dependencies. ParentProject.csproj have:
Vlad
  • 1,017
  • 1
  • 15
  • 18
0
votes
0 answers

Which .config file is used for a test dll?

In my output folder, there is two .config files : app.config app.UnitTest.config i am wondering which one is used at runtime for test dll, the obvious answer will be app.UnitTest.config, but, is there any cases where app.config is used ? N.B. I…
0
votes
0 answers

Where Does ASP.NET Store Assembly References Other Than web.config?

I am getting the classic exception Could not load file or assembly 'XXX.Base, Version=11.0.0.0, Culture=neutral, >PublicKeyToken=xxxxxxxxx' or one of its dependencies. The located assembly's >manifest definition does not match the assembly…
hexagod
  • 449
  • 3
  • 15
0
votes
0 answers

Load strong named assembly regardless of version in Compact Framework

I have written a plugin for an application which uses the Bouncy Castle Library. This application runs on Windows CE and runs on the .NET Compact Framework. The Bouncy Castle Library is a strong named assembly and different versions are are…