Questions tagged [assembly-resolution]

229 questions
4
votes
1 answer

Problems redirecting NUnit assembly version (what is [AssemblyName].temp.config?)

I am using some of the testing libraries from Sharp Architecture which make use of NUnit 2.5.0 while the rest of my project uses NUnit 2.5.1 so I placed an assembly redirect in my test project app config file:
George Mauer
  • 117,483
  • 131
  • 382
  • 612
4
votes
1 answer

Multiple Assembly.Load(Byte[]), same instance or leak?

What happens when I call Assembly.Load(Byte[]) multiple times with a Byte array containing the same assembly ? Will I get the same instance of Assembly for each call ? The same assembly loaded multiple times within the app domain ???
Guillaume
  • 12,824
  • 3
  • 40
  • 48
4
votes
1 answer

Why are multiple versions of a referenced DLL included in the manifest?

I am building a .Net solution using MSBuild v3.5 targeting .Net 2.0. We are upgrading to use Crystal 11.5 so I have updated the binaries in our source control tree to contain the 11.5 version DLLs instead of the 10.0 DLLs. In the project I reference…
PilotBob
  • 3,107
  • 7
  • 35
  • 52
4
votes
3 answers

Loading assemblies and versioning

I'm contemplating adding some extensibility into an existing app by providing a few predefined interfaces that can be implemented by "plugins" dropped at a specific location and picked up by the app. The core of the application rarely gets updated…
soren.enemaerke
  • 4,770
  • 5
  • 53
  • 80
4
votes
1 answer

Need to hookup AssemblyResolve event when DisallowApplicationBaseProbing = true

I need to hookup an AssemblyResolve event on my created AppDomain when I've set DisallowApplicationBaseProbing = true. The reason I'm doing this is to force the runtime to call the AssemblyResolve event it needs to resolve an assembly, instead of…
The Pickle
  • 125
  • 1
  • 5
3
votes
1 answer

Does WinRT support assembly binding redirection?

.NET 1.0-4.0 supports it but Silverlight/WindowsPhone does not. Does WinRT support assembly binding redirection? http://msdn.microsoft.com/en-us/library/7wd6ex19.aspx
James Newton-King
  • 48,174
  • 24
  • 109
  • 130
3
votes
1 answer

Resolve libraries path used by .NET application

I want to find the full path for libraries used in a given .NET application. These are both, referenced assemblies (obtained as AssemblyNames) and P/Invoke/DllImported functions (obtained as just the dll name). So basically I'm searching for the…
ordag
  • 2,497
  • 5
  • 26
  • 35
3
votes
1 answer

How to use ApplicationManager to load an object with out GAC'ing it?

I'm trying to use the Cassini webserver to create a deployment test host- a sort of embedded web server to isolate web server config issues from app deployment issues. Okay, so this line of code blows up until I put Cassini in the GAC: // physical…
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
3
votes
1 answer

Binding redirects in .NET 6

I have been trying to fix version conflicts in my .NET 6 console project. I fail to find a way like app.config's BindingRedirect or CodeBase, which worked for this case in .NET Framework. Is there a BindingRedirect/CodeBase or an alternative in…
ittay
  • 519
  • 5
  • 15
3
votes
1 answer

How does .NET 6 deal with assembly reference conflicts?

Let's say I got projects A, B and C. Project A references projects B (v. 2.0.0.0) and C (v. 3.0.0.0). Project B references only project C (v. 1.0.0.0). We got a conflict on our hands, since project A and B depend on different assembly versions of…
3
votes
6 answers

How do I force where an assembly is loaded from?

I have developed a console utility that performs some operations against a server application. Due to the nature of the server app I'm working with, I need to execute this utility on the server. The problem is that the utility is referencing a…
Alex Angas
  • 59,219
  • 41
  • 137
  • 210
3
votes
2 answers

How does runtime resolve calls to .NET 2.0 SP1 assemblies if only .NET 2.0 RTM is present

We have application built against .NET 2.0 on machine with .NET 2.0 SP1 installed. The application references some standard .NET assemblies included in .NET SP1 (i.e. System.Xml.dll). If we run this application on computer with .net 2.0 RTM, the…
Dmitrii Lobanov
  • 4,897
  • 1
  • 33
  • 50
3
votes
1 answer

CurrentDomain.AssemblyResolve not being able resolve 'some' assemblies

After finding the answer my last question on assembly resolving ( AppDomain.CurrentDomain.AssemblyResolve asking for a .resources assembly? ) now i'm able to embed references assemblies on my program except that this does not work some…
HuseyinUslu
  • 4,094
  • 5
  • 33
  • 50
3
votes
0 answers

How does the CLR manage to resolve a lower version of the requested assembly without a binding redirect in app.config?

The question originates from the usage of the NuGet package Microsoft.CodeAnalysis 2.0.0 in a .NET Framework 4.6.2 project. The Microsoft.CodeAnalysis.dll has a reference to: System.Threading.Tasks, Version=4.0.10.0, Culture=neutral,…
DeCaf
  • 6,026
  • 1
  • 29
  • 51
3
votes
0 answers

Troubleshooting: Assembly resolution for a managed dll from a MS-Word VSTO Add-in

I have an MS-Word VSTO Document with a code-behind dll named WordDocument1.dll Project folder D:\Work\Seven\WordAutomation\ContentControls\WordDocument1\bin\Debug I've copied some custom code into a MyAppExecs folder under that. The DLL has a…
Gishu
  • 134,492
  • 47
  • 225
  • 308