Skip to content

Commit

Permalink
Bring ASIO into .Net Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
jwosty committed Dec 30, 2019
1 parent a430927 commit e0876df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions NAudio/NAudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
<Compile Remove="Wave\MmeInterop\WaveCallbackInfo.cs" />
<Compile Remove="Wave\WaveInputs\WaveIn.cs" />
<Compile Remove="Wave\WaveOutputs\WaveOut.cs" />
<Compile Remove="Wave\WaveOutputs\AsioOut.cs" />
<Compile Remove="Wave\WaveOutputs\AsioAudioAvailableEventArgs.cs" />
<Compile Remove="Wave\WaveFormats\WaveFormatCustomMarshaler.cs" />
<Compile Remove="Wave\WaveOutputs\WasapiOutRT.cs" />
<Compile Remove="Wave\WaveInputs\WasapiCaptureRT.cs" />
Expand Down Expand Up @@ -85,6 +83,12 @@
<Compile Remove="Wave\WaveProviders\DmoEffectWaveProvider.cs" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Win32.Registry">
<Version>4.7.0</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<PackageReference Include="Microsoft.Win32.Registry">
<Version>4.7.0</Version>
Expand Down
2 changes: 1 addition & 1 deletion NAudio/Wave/Asio/ASIODriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private AsioDriver()
{
}

#if NET35 || NETCOREAPP3_0
#if NETSTANDARD2_0 || NET35 || NETCOREAPP3_0
/// <summary>
/// Gets the ASIO driver names installed.
/// </summary>
Expand Down

0 comments on commit e0876df

Please sign in to comment.