Copy Reference DLLs from NuGet Automatically (#885)

* Pack value should be `true` not `True`

* Copy content pipeline dll references to project directory for ease of use

* Forgot `/` in path
This commit is contained in:
Christopher Whitley
2024-06-03 00:27:38 -04:00
committed by GitHub
parent d40ad10459
commit 792aa89809
2 changed files with 14 additions and 1 deletions
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<Content Include="$(ArtifactsPath)/bin/MonoGame.Extended.Content.Pipeline/release/*.dll" Pack="True" PackagePath="tools" />
<Content Include="$(ArtifactsPath)/bin/MonoGame.Extended.Content.Pipeline/release/*.dll" Pack="true" PackagePath="tools" />
<Content Include="MonoGame.Extended.Content.Pipeline.targets" Pack="true" PackagePath="build" />
</ItemGroup>
<PropertyGroup>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="CopyMonoGameExtendedDlls" BeforeTargets="RunContentBuilder;BeforeBuild">
<ItemGroup>
<DLLsToCopy Include="$(MSBuildThisFileDirectory)\..\tools\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(DLLsToCopy)"
DestinationFolder="$(MSBuildProjectDirectory)/Content/references"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="true" />
</Target>
</Project>