Skip to content

Commit 1d5eec7

Browse files
add windows version to platform check
1 parent 66d57e8 commit 1d5eec7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

1_CS/Memory/Win32InteropSample/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Windows.Win32;
22
using Windows.Win32.Security;
33

4-
[assembly:System.Runtime.Versioning.SupportedOSPlatform("Windows")]
4+
[assembly:System.Runtime.Versioning.SupportedOSPlatform("windows10.0.18362")]
55

66
if (args.Length != 2)
77
{

1_CS/Memory/Win32InteropSample/Win32InteropSample.csproj

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
<ImplicitUsings>enable</ImplicitUsings>
88
</PropertyGroup>
99

10-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10+
<PropertyGroup>
1111
<PlatformTarget>x64</PlatformTarget>
1212
</PropertyGroup>
1313

14-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15-
<PlatformTarget>x64</PlatformTarget>
16-
</PropertyGroup>
14+
<ItemGroup>
15+
<SupportedPlatform Include="Windows" />
16+
</ItemGroup>
17+
1718

1819
<ItemGroup>
1920
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.588-beta">

0 commit comments

Comments
 (0)