30 строки
1.4 KiB
XML
30 строки
1.4 KiB
XML
<Project>
|
|
<Choose>
|
|
<When Condition="'$(TargetFramework)' == 'uap10.0' or '$(TargetFramework)' == 'uap10.0.16299' or '$(TargetFramework)' == 'native' or '$(TargetFramework)' == 'net461'">
|
|
<!-- UAP versions for uap10.0 where TPMV isn't implied -->
|
|
<PropertyGroup>
|
|
<TargetPlatformVersion>10.0.$(DefaultTargetPlatformVersion).0</TargetPlatformVersion>
|
|
<TargetPlatformMinVersion>10.0.$(DefaultTargetPlatformMinVersion).0</TargetPlatformMinVersion>
|
|
<DebugType>Full</DebugType>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<SDKReference Condition="'$(UseWindowsDesktopSdk)' == 'true' " Include="WindowsDesktop, Version=$(TargetPlatformVersion)">
|
|
<Name>Windows Desktop Extensions for the UWP</Name>
|
|
</SDKReference>
|
|
<SDKReference Condition="'$(UseWindowsMobileSdk)' == 'true' " Include="WindowsMobile, Version=$(TargetPlatformVersion)">
|
|
<Name>Windows Mobile Extensions for the UWP</Name>
|
|
</SDKReference>
|
|
</ItemGroup>
|
|
</When>
|
|
</Choose>
|
|
|
|
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
|
|
<ItemGroup>
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
|
|
<_Parameter1>CommitHash</_Parameter1>
|
|
<_Parameter2>$(SourceRevisionId)</_Parameter2>
|
|
</AssemblyAttribute>
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project> |