Skip to content

Commit 05504cf

Browse files
committed
Fixed post-build dll copy step for the demo project.
1 parent a0ec660 commit 05504cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DarkConfig/DarkConfig.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="YamlDotNet" Version="11.2.1"/>
14+
<PackageReference Include="YamlDotNet" Version="11.2.1" GeneratePathProperty="true"/>
1515
</ItemGroup>
1616

17-
<Target Name="AfterBuild">
18-
<Copy SourceFiles="$(OutputPath)DarkConfig.dll" DestinationFolder="$(SolutionDir)demo/Assets/Plugins" ContinueOnError="true"/>
19-
<Copy SourceFiles="$(OutputPath)YamlDotNet.dll" DestinationFolder="$(SolutionDir)demo/Assets/Plugins" ContinueOnError="true"/>
17+
<Target Name="CopyDLLs" AfterTargets="Build">
18+
<Copy SourceFiles="$(OutputPath)DarkConfig.dll" DestinationFolder="$(OutputPath)/../../demo/Assets/Plugins" ContinueOnError="false"/>
19+
<Copy SourceFiles="$(PkgYamlDotNet)/lib/$(TargetFramework)/YamlDotNet.dll" DestinationFolder="$(OutputPath)/../../demo/Assets/Plugins" ContinueOnError="false"/>
2020
</Target>
2121
</Project>

0 commit comments

Comments
 (0)