I have multiple C# projects and SDKs that are built targeting the .NET 4.8 Framework. When we build our projects, we then copy all the contents of each project’s Bin/Debug folder to our pyRevit extension’s .extension/bin folder to ensure that any specific DLLs one project might need are included.
The issue we have now is that some of these .NET Framework DLLs are incompatible with .NET Core Revit and we’d need to provide both the .NET Framework and .NET 8 / .NET Core DLLs.
So far we noticed that the DLLs creating the problems are System.Diagnostics.DiagnosticSource and System.Text.Json.
My question is: Is it possible to modify the startup.cs and organize the bin folder to have a multi-targeting bin folder structure? i.e., inside of the bin folder you would also have /net472 and /net8.0. Or is there any other way to do so?
We would really prefer to only have to maintain one PyRevit extension and just have the startup.cs, or any other built-in mechanism, handle the targeting.
Is this multi-targeting idea part of the new PyRevit 6.0.0 version? https://github.com/pyrevitlabs/pyRevit/releases/tag/v6.0.0.26032%2B2145
