Code Monkey home page Code Monkey logo

dependencyexample's Introduction

DependencyExample

Application to show difficulty in using AssemblyLoadContexts in environments where the caller and callee have the same dependency but with different versions.

Refer to Stack Overflow question here: https://stackoverflow.com/questions/78529536/assemblyloadcontext-and-dependency-resolving-when-assemblies-and-the-calling-app/78542909#78542909

Update 5/28/2024 - the issue has been resolved, and the update is incorporated into this repository.

Overview

This solution has three projects, each with separate version of RestWrapper:

  • Runner - console application
  • Module1 - class library
  • Module2 - class library

All three programs attempt to perform a RESTful call to the user-supplied URL, displaying the resultant HTTP status and content-length.

Runner first performs this operation itself. It then instantiates a new AssemblyLoadContext, loads Module1, and invokes its method to perform the same operation. It then instantiates another AssemblyLoadContext, loads Module2, and invokes its method to perform the same operation.

The bin/Debug/net8.0 outputs of Module1 and Module2 are copied into subfolders in the Runner's bin/Debug/net8.0 output.

dependencyexample's People

Contributors

jchristn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.