-
Notifications
You must be signed in to change notification settings - Fork 1
/
ShortDev.Uwp.Internal.csproj
46 lines (37 loc) · 1.55 KB
/
ShortDev.Uwp.Internal.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-windows10.0.22621.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.4" />
<CsWinRTInputs Include="lib/*.winmd" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Windows.UI.Xaml\Windows.UI.Xaml.csproj" />
</ItemGroup>
<PropertyGroup>
<CsWinRTIncludes>Internal</CsWinRTIncludes>
</PropertyGroup>
<Target Name="BuildIdlSetup" BeforeTargets="BuildIdl">
<Exec Command="mkdir lib" Condition="!Exists('lib')" />
</Target>
<ItemGroup>
<_IdlInputs Include="idl/*.idl" />
<_WinmdTmpOutputs Include="lib/*.winmd" />
</ItemGroup>
<Target Name="BuildIdl" BeforeTargets="Build" Inputs="@(_IdlInputs)" Outputs="@(_WinmdTmpOutputs)">
<PropertyGroup>
<WinSdkMetaDataDir>C:\Windows\System32\WinMetadata</WinSdkMetaDataDir>
<WinSdkVersion>10.0.22621.0</WinSdkVersion>
<WinSdkBasePath>C:\Program Files (x86)\Windows Kits\10</WinSdkBasePath>
<WinSdkIncludePath>$(WinSdkBasePath)\Include\$(WinSdkVersion)</WinSdkIncludePath>
<MidlIncludes>/I "$(WinSdkIncludePath)\winrt" /I "$(WinSdkIncludePath)\shared" /I "$(WinSdkIncludePath)\um"</MidlIncludes>
</PropertyGroup>
<ItemGroup>
<IdlFiles Include="idl/*.idl" />
</ItemGroup>
<Message Text="Compiling idl files" />
<Exec Command="midl.exe $(MidlIncludes) /I idl /winrt /nologo /notlb /nomidl /out lib /metadata_dir "$(WinSdkMetaDataDir)" %(IdlFiles.Identity) }'" />
</Target>
</Project>