2019-09-13 05:12:28 +03:00
<Project>
<PropertyGroup>
2021-08-18 01:20:17 +03:00
<RepositoryDirectory>$(MSBuildThisFileDirectory)</RepositoryDirectory>
<BuildToolsDirectory>$(RepositoryDirectory)build\</BuildToolsDirectory>
2019-09-13 05:12:28 +03:00
</PropertyGroup>
2021-08-18 01:20:17 +03:00
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Common.props" />
2019-09-13 05:12:28 +03:00
<Choose>
2021-08-18 01:20:17 +03:00
<When Condition="$(IsCoreProject)">
2019-09-13 05:12:28 +03:00
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2021-08-18 01:20:17 +03:00
<PackageOutputPath>$(RepositoryDirectory)bin\nupkg</PackageOutputPath>
<GenerateLibraryLayout Condition="$(IsUwpProject)">true</GenerateLibraryLayout>
<!--<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>-->
2019-09-13 05:12:28 +03:00
</PropertyGroup>
</When>
2021-08-18 01:20:17 +03:00
<Otherwise>
<PropertyGroup>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<NoWarn>$(NoWarn);CS8002;SA0001</NoWarn>
</PropertyGroup>
</Otherwise>
2019-09-13 05:12:28 +03:00
</Choose>
<Choose>
2021-08-18 01:20:17 +03:00
<When Condition="$(IsUwpProject)">
2019-09-13 05:12:28 +03:00
<PropertyGroup>
2021-08-18 01:20:17 +03:00
<!-- Code CS8002 is a warning for strong named -> non-strong-named reference. This is valid for platforms other than .NET Framework (and is needed for the UWP targets. -->
<NoWarn>$(NoWarn);CS8002</NoWarn>
<!-- For including default @(Page) and @(Resource) items via 'MSBuild.Sdk.Extras' Sdk package. Also provides up to date check and file nesting -->
<ExtrasEnableDefaultXamlItems>true</ExtrasEnableDefaultXamlItems>
2019-09-13 05:12:28 +03:00
</PropertyGroup>
</When>
</Choose>
2021-08-18 01:20:17 +03:00
<ItemGroup>
2022-12-15 11:50:32 +03:00
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119" PrivateAssets="All" />
2021-08-18 01:20:17 +03:00
</ItemGroup>
2019-09-13 05:12:28 +03:00
<Choose>
2021-08-18 01:20:17 +03:00
<When Condition="!$(IsSampleProject) and '$(SourceLinkEnabled)' != 'false'">
2019-09-13 05:12:28 +03:00
<PropertyGroup>
2021-08-18 01:20:17 +03:00
<!-- Declare that the Repository URL can be published to NuSpec -->
2019-09-13 05:12:28 +03:00
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2021-08-18 01:20:17 +03:00
<!-- Embed source files that are not tracked by the source control manager to the PDB -->
2019-09-13 05:12:28 +03:00
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2021-08-18 01:20:17 +03:00
<!-- Include PDB in the built .nupkg -->
2019-09-13 05:12:28 +03:00
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
2022-12-15 11:50:32 +03:00
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
2019-09-13 05:12:28 +03:00
</ItemGroup>
</When>
</Choose>
2022-12-15 11:50:32 +03:00
</Project>