craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

Copy Reference DLLs from NuGet Automatically #885

Closed AristurtleDev closed 6 months ago

AristurtleDev commented 6 months ago

Description

This PR updates the MonoGame.Extended.Content.Pipeline NuGet to now include a .targets file. The target is set to run before the RunContentBuilder task from MonoGame and also before the generic BeforeBuild task as a fallback. The task will copy the dlls that users need to reference from the NuGet package installation directory to the /Content/refrences directory in the project root.

This is implemented as a QoL update to make it easier to add the dll references needed without having to (1) create a nuget.config or (2) go hunting the dll down in global nuget cache directory.