Wonkydonky
Wonkydonky
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
Thanks again for your help!
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
Adding the framework reference(s) worked and is the best option for me so far, because no change to the target project needs to be done.
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
alright, I'll give it a try tomorrow and research a bit more, thanks a lot for your help
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
I don't really want to reference all the assemblies that are part of Microsoft.AspNetCore.App or Microsoft.NETCore.App
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
the problem is that I don't really know the actual project SDK. referencing this might work for this case, but not for another
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
thanks for your help!
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
that's a greater pointer, I'll have a look at this tomorrow. The target project has a runtimeconfig, so this might work
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
if the host application does not reference ASP.NET Core then it will be very difficult for Assembly.Load to find those assemblies
yeah that's exactly the problem.
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
No description
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
nothing different, the exception still occurs
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
So I tried this and the referenced SDK assemblies are still not in the output directory. To be exact, no additional assemblies are in the output directory
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
I see, thanks for your help! The project option still helps a lot as this is a local/private tool only for now
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
But I guess there's no other way to locate these SDK assemblies automatically?
25 replies
CC#
Created by Wonkydonky on 7/27/2024 in #help
✅ Loading types from an assembly fails because assemblies provided via project SDK cannot be loaded
Thanks, that's already really helpful.
25 replies