Skip to content

Commit

Permalink
Fix usage of MSBuild.Sdk.Extras and target UAP10.0 instead of a speci…
Browse files Browse the repository at this point in the history
…fic uap version.

Updated UniversalWindowsPlatform to 6.2.6
  • Loading branch information
Yitzchok committed Aug 4, 2019
1 parent 89dd952 commit 30eabcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
24 changes: 9 additions & 15 deletions NAudio/NAudio.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net35;uap10.0.10240</TargetFrameworks>
<TargetFrameworks>net35;netstandard2.0;uap10.0</TargetFrameworks>
<Version>1.9.0</Version>
<Authors>Mark Heath &amp; Contributors</Authors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand All @@ -15,17 +14,17 @@
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
<Reference Include="System.Windows.Forms" />
<Compile Remove="Wave\WaveOutputs\WasapiOutRT.cs" />
<Compile Remove="Wave\WaveInputs\WasapiCaptureRT.cs" />
<Compile Remove="Wave\WaveOutputs\WaveFileWriterRT.cs" />
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<Compile Remove="Utils\ProgressLog*.*" />
<Compile Remove="Gui\*.*" />
Expand All @@ -41,7 +40,9 @@
<Compile Remove="Wave\WaveOutputs\WaveFileWriterRT.cs" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'uap10.0.10240' ">
<ItemGroup Condition=" '$(TargetFramework)' == 'uap10.0' ">
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.8" />

<Compile Remove="Utils\ProgressLog*.*" />
<Compile Remove="Gui\*.*" />
<Compile Remove="Wave\Compression\*.cs" />
Expand Down Expand Up @@ -74,11 +75,4 @@
<Compile Remove="Dmo\Effect\*.cs" />
<Compile Remove="Wave\WaveProviders\DmoEffectWaveProvider.cs" />
</ItemGroup>


<ItemGroup Condition=" '$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.10240'">
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.0.8" />
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.5.4" PrivateAssets="All" />
</ItemGroup>
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
</Project>
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "2.1.500"
"msbuild-sdks": {
"MSBuild.Sdk.Extras": "2.0.31"
}
}

0 comments on commit 30eabcd

Please sign in to comment.