[.NET Core] When using dotnet build
Reloaded.Mod.Launcher cannot be used by consumers due defined PropertyChanged dependency.
#17
Labels
help wanted
Extra attention is needed
See: Fody/Costura#358
Prologue
.NET Core, including .NET Core 3 use a JSON text file that explains file dependencies. This file is checked by the .NET Runtime and if a dependency is missing, the runtime refuses to load the application.
Problem
PropertyChanged
is not actually needed by the assembly and thus not copied to the output folder duringdotnet build
. However the dependency is still present in the.deps.json
file, and thus the launcher would refuse to boot.Note: For developers, the library will still be found due to the
runtimeconfig-dev.json
configuration, pointing to NuGet cache folders, but end users wouldn't have said folders.Temporary Workaround
Include dummy
PropertyChanged.dll
in project to be copied to output.The text was updated successfully, but these errors were encountered: