Skip to content

Commit

Permalink
[NuGet] Copy OpenTK.dll.config to output path
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed Jun 2, 2014
1 parent 684e783 commit af0ae9e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Installers/Nuget/OpenTK.Next.targets
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Target Name="AfterBuild">
<CreateItem Include="$(MSBuildThisFileDirectory)/../lib/net20/OpenTK.dll.config">
<Output TaskParameter="Include" ItemName="DllConfig" />
</CreateItem>
<Copy SourceFiles="@(DllConfig)" DestinationFolder="$(OutputPath)" />
</Target>
</Project>
2 changes: 2 additions & 0 deletions Installers/Nuget/OpenTK.nuspec
Expand Up @@ -46,5 +46,7 @@
<file src="lib/net20/OpenTK.dll" target="lib/net20" />
<file src="lib/net20/OpenTK.xml" target="lib/net20" />
<file src="lib/net20/OpenTK.dll.config" target="lib/net20" />
<file src="OpenTK.targets" target="build" />
<file src="OpenTK.Next.targets" target="build" />
</files>
</package>
9 changes: 9 additions & 0 deletions Installers/Nuget/OpenTK.targets
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Target Name="AfterBuild">
<CreateItem Include="$(MSBuildThisFileDirectory)/../lib/net20/OpenTK.dll.config">
<Output TaskParameter="Include" ItemName="DllConfig" />
</CreateItem>
<Copy SourceFiles="@(DllConfig)" DestinationFolder="$(OutputPath)" />
</Target>
</Project>

0 comments on commit af0ae9e

Please sign in to comment.