This package contains native SDL2 libraries
Include the package using the PackageReference
tag or simply install using the nuget package manager
<ItemGroup>
<PackageReference Include="NAudio.Sdl2.Library" Version="2.30.2" />
</ItemGroup>
Include the package using the PackageReference
tag. Set GeneratePathProperty
to true
and ExcludeAssets
to all
.
<ItemGroup>
<PackageReference Include="NAudio.Sdl2.Library" Version="2.30.2" GeneratePathProperty="true" ExcludeAssets="all"/>
</ItemGroup>
Copy SDL.dll
to the output directory using the None
tag.
Windows x86
<ItemGroup>
<None Include="$(PkgNAudio_Sdl2_Library)\runtimes\win-x86\native\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Windows x64
<ItemGroup>
<None Include="$(PkgNAudio_Sdl2_Library)\runtimes\win-x64\native\SDL2.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>