Giter Site home page Giter Site logo

pluginsloadfailure's Introduction

plugins load failures demo

This reproduces the plugins load failures by following https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support

only this changed:

  1. ImplicitUsings has been commented out in the csproj files
  2. pluginsPaths were made relative to the working directory (but as in the example, they are turned into full paths before being handed to PluginLoadContext and thus the assembly dependency resolver
  3. changed to multi target so it is easy to compare 5.0 vs. 6.0 targets (reproduced first by manually setting the target in the csproj files, so it is not due to multi target)

To reproduce, with dotnet 6 rc1 sdk installed (change win-x64 to match your environment and \ to / if you are not running on windows):

dotnet publish .\HelloPlugin\ -c Release -f net6.0
dotnet publish AppWithPlugin -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -f net6.0
mkdir test
cp HelloPlugin\bin\Release\net6.0\publish\* .\test\
cp AppWithPlugin\bin\Release\net6.0\win-x64\publish\* .\test\
cd test
./AppWithPlugin.exe

To confirm this is a regression i.e. works on .net 5:

dotnet publish .\HelloPlugin\ -c Release -f net5.0
dotnet publish AppWithPlugin -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -f net5.0
rm -r test
mkdir test
cp HelloPlugin\bin\Release\net5.0\publish\* .\test\
cp AppWithPlugin\bin\Release\net5.0\win-x64\publish\* .\test\
cd test
./AppWithPlugin.exe

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.