Skip to content

Commit

Permalink
DirectX package fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aybe committed Oct 30, 2014
1 parent a5e8740 commit 24c9114
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .nuget/WindowsAPICodePack-DirectX.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>WindowsAPICodePack-DirectX</id>
<version>1.1.1</version>
<version>1.1.2</version>
<title>Windows API Code Pack - DirectX</title>
<authors>Aybe</authors>
<owners>Microsoft</owners>
Expand All @@ -11,7 +11,7 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>DirectX library for Windows API Code Pack</description>
<summary>Windows® API Code Pack for Microsoft® .NET Framework provides a source code library that can be used to access some features of Windows 7 and Windows Vista from managed code.</summary>
<releaseNotes>IntelliSense documentation added.</releaseNotes>
<releaseNotes>File not found issue during build has been fixed.</releaseNotes>
<language>en-US</language>
<tags>Windows API Code Pack</tags>
</metadata>
Expand All @@ -20,5 +20,6 @@
<file src="..\source\WindowsAPICodePack\DirectX\Release\Microsoft.WindowsAPICodePack.DirectX.dll" target="bin\x86\Microsoft.WindowsAPICodePack.DirectX.dll" />
<file src="WindowsAPICodePack-DirectX.targets" target="build\WindowsAPICodePack-DirectX.targets" />
<file src="..\source\WindowsAPICodePack\DirectX\Release\Microsoft.WindowsAPICodePack.DirectX.dll" target="lib\Microsoft.WindowsAPICodePack.DirectX.dll" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>
3 changes: 3 additions & 0 deletions .nuget/WindowsAPICodePack-DirectX.readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The DirectX package will work under x86 and x64 configuration platforms but not
for AnyCPU platform (because there is no such platform for C++/CLI projects).
Consequently, package will purposefully fail the build and tell you why it did.
4 changes: 2 additions & 2 deletions .nuget/WindowsAPICodePack-DirectX.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<Target Name="CopyDirectX">
<Error Condition=" '$(Platform)' == 'anycpu' " Text="Microsoft.WindowsAPICodePack.DirectX does not work under AnyCPU platform !" />
<Message Text="Copying DirectX DLL for $(Platform) platform" Importance="High" />
<Copy SourceFiles="..\packages\WindowsAPICodePack-DirectX.1.1\bin\x86\Microsoft.WindowsAPICodePack.DirectX.dll" Condition=" '$(Platform)' == 'x86' " DestinationFolder="..\packages\WindowsAPICodePack-DirectX.1.1\lib" />
<Copy SourceFiles="..\packages\WindowsAPICodePack-DirectX.1.1\bin\x64\Microsoft.WindowsAPICodePack.DirectX.dll" Condition=" '$(Platform)' == 'x64' " DestinationFolder="..\packages\WindowsAPICodePack-DirectX.1.1\lib" />
<Copy SourceFiles="..\packages\WindowsAPICodePack-DirectX.1.1.2\bin\x86\Microsoft.WindowsAPICodePack.DirectX.dll" Condition=" '$(Platform)' == 'x86' " DestinationFolder="..\packages\WindowsAPICodePack-DirectX.1.1.2\lib" />
<Copy SourceFiles="..\packages\WindowsAPICodePack-DirectX.1.1.2\bin\x64\Microsoft.WindowsAPICodePack.DirectX.dll" Condition=" '$(Platform)' == 'x64' " DestinationFolder="..\packages\WindowsAPICodePack-DirectX.1.1.2\lib" />
</Target>

</Project>
4 changes: 2 additions & 2 deletions .nuget/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ nuget pack WindowsAPICodePack-ExtendedLinguisticServices.nuspec -NoPackageAnalys
nuget pack WindowsAPICodePack-Sensors.nuspec -NoPackageAnalysis
nuget pack WindowsAPICodePack-Shell.nuspec -NoPackageAnalysis
nuget pack WindowsAPICodePack-ShellExtensions.nuspec -NoPackageAnalysis
copy WindowsAPICodePack-DirectX.readme readme.txt
nuget pack WindowsAPICodePack-DirectX.nuspec -NoPackageAnalysis
REM nuget pack WindowsAPICodePack-DirectX.1.1-x64.nuspec -NoPackageAnalysis
REM nuget pack WindowsAPICodePack-DirectX.1.1-x86.nuspec -NoPackageAnalysis
del readme.txt

0 comments on commit 24c9114

Please sign in to comment.