Skip to content

Commit

Permalink
Some windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Dec 8, 2022
1 parent 099c802 commit 35b27f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions MediaManager/MediaManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
<Description>Cross platform Xamarin plugin to play and control Audio and Video</Description>
</PropertyGroup>

<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' And '$(OS)' == 'Windows_NT'">
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' And $([MSBuild]::IsOSPlatform('windows'))">
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
</PropertyGroup>

<ItemGroup>
Expand All @@ -37,11 +39,12 @@
<None Include="readme.txt" pack="true" PackagePath="." />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' And '$(OS)' == 'Windows_NT'">
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' And $([MSBuild]::IsOSPlatform('windows'))">
<Compile Include="Platforms\Uap\**\*.cs" />
<Page Include="Platforms\Uap\**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" />
<None Update="**\*.xaml.cs" DependentUpon="%(Filename)" />
<Compile Update="**\*.xaml.cs" DependentUpon="%(Filename)" />
<PackageReference Include="Microsoft.WindowsAppSDK" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
Expand Down
3 changes: 2 additions & 1 deletion MediaManager/Platforms/Uap/Video/VideoView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using MediaManager.Video;
using Windows.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls;
//using Windows.UI.Xaml.Controls;

namespace MediaManager.Platforms.Uap.Video
{
Expand Down

0 comments on commit 35b27f7

Please sign in to comment.