2
0

Directory.Build.props 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Project>
  2. <PropertyGroup>
  3. <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
  4. <RepositoryRootDirectory>$(MSBuildThisFileDirectory)</RepositoryRootDirectory>
  5. <BinDir>$(RepositoryRootDirectory)bin</BinDir>
  6. <OutputPath>$([System.IO.Path]::GetFullPath('$(RepositoryRootDirectory)bin\$(Configuration)'))\$(MSBuildProjectName)</OutputPath>
  7. <BaseIntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(RepositoryRootDirectory)bin\obj\$(MSBuildProjectName)'))\</BaseIntermediateOutputPath>
  8. <PackageOutputPath>$(BinDir)\Packages\$(Configuration)</PackageOutputPath>
  9. </PropertyGroup>
  10. <PropertyGroup>
  11. <!-- NuGet Package common properties. -->
  12. <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
  13. <Copyright>Copyright 2017 (c) Eric Mellino. All rights reserved.</Copyright>
  14. <Authors>Eric Mellino</Authors>
  15. <ProjectUrl>https://github.com/mellinoe/ShaderGen</ProjectUrl>
  16. <RepositoryUrl>https://github.com/mellinoe/ShaderGen</RepositoryUrl>
  17. </PropertyGroup>
  18. <!-- Workaround for NuGet bug, see https://github.com/AArnott/Nerdbank.GitVersioning/issues/113 -->
  19. <PropertyGroup>
  20. <NerdbankGitVersioningVersion>2.0.41</NerdbankGitVersioningVersion>
  21. </PropertyGroup>
  22. <ItemGroup>
  23. <PackageReference Include="Nerdbank.GitVersioning" Version="$(NerdbankGitVersioningVersion)" PrivateAssets="all" />
  24. </ItemGroup>
  25. <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' == 'true' ">
  26. <Import Project="$(UserProfile)\.nuget\packages\nerdbank.gitversioning\$(NerdbankGitVersioningVersion)\buildCrossTargeting\Nerdbank.GitVersioning.targets"
  27. Condition="Exists('$(UserProfile)\.nuget\packages\nerdbank.gitversioning\$(NerdbankGitVersioningVersion)\buildCrossTargeting\Nerdbank.GitVersioning.targets')" />
  28. </ImportGroup>
  29. <Target Name="FixUpVersion"
  30. BeforeTargets="_GenerateRestoreProjectSpec"
  31. DependsOnTargets="GetBuildVersion"
  32. Condition=" '$(NerdbankGitVersioningTasksPath)' != '' " />
  33. </Project>