You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
XML
47 lines
1.7 KiB
XML
<Project>
|
|
|
|
<PropertyGroup>
|
|
<RepositoryDirectory>$(MSBuildThisFileDirectory)</RepositoryDirectory>
|
|
<BuildToolsDirectory>$(RepositoryDirectory)build\</BuildToolsDirectory>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="$(BuildToolsDirectory)Community.Toolkit.Common.props" />
|
|
|
|
<Choose>
|
|
<When Condition="$(IsCoreProject)">
|
|
<PropertyGroup>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<PackageOutputPath>$(RepositoryDirectory)bin\nupkg</PackageOutputPath>
|
|
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
|
|
</PropertyGroup>
|
|
</When>
|
|
<Otherwise>
|
|
<PropertyGroup>
|
|
<IsPackable>false</IsPackable>
|
|
<IsPublishable>false</IsPublishable>
|
|
<NoWarn>$(NoWarn);CS8002;SA0001</NoWarn>
|
|
</PropertyGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.255" PrivateAssets="All" />
|
|
</ItemGroup>
|
|
|
|
<Choose>
|
|
<When Condition="'$(SourceLinkEnabled)' != 'false'">
|
|
<PropertyGroup>
|
|
<!-- Declare that the Repository URL can be published to NuSpec -->
|
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
|
<!-- Embed source files that are not tracked by the source control manager to the PDB -->
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
<!-- Include PDB in the built .nupkg -->
|
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
|
|
</ItemGroup>
|
|
</When>
|
|
</Choose>
|
|
|
|
</Project> |