RepoTasks.csproj 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFrameworks>$(DefaultNetCoreTargetFramework)</TargetFrameworks>
  4. <TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net472</TargetFrameworks>
  5. <DefineConstants Condition="'$(TargetFramework)' == 'net472'">$(DefineConstants);BUILD_MSI_TASKS</DefineConstants>
  6. <Optimize>false</Optimize>
  7. <DebugType>embedded</DebugType>
  8. <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  9. <!-- Need to build this project in source build -->
  10. <ExcludeFromSourceOnlyBuild>false</ExcludeFromSourceOnlyBuild>
  11. <!-- Temporarily target the previous runtime until https://github.com/dotnet/sdk/pull/14574 is merged. -->
  12. <TargetLatestDotNetRuntime>false</TargetLatestDotNetRuntime>
  13. <!-- No need to track public APIs of these MSBuild tasks. -->
  14. <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
  15. </PropertyGroup>
  16. <ItemGroup>
  17. <!-- Explicitly reference the desired version of Newtonsoft.Json to avoid getting an older version
  18. from the dependency on NuGet.Packaging which would cause a source-built prebuilt. -->
  19. <PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
  20. <PackageReference Include="NuGet.Packaging" Version="$(NuGetPackagingVersion)" />
  21. <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="$(MicrosoftExtensionsDependencyModelVersion)" />
  22. </ItemGroup>
  23. <ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">
  24. <PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkVersion)" />
  25. <PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTasksCoreVersion)" />
  26. <PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildUtilitiesCoreVersion)" />
  27. <!-- Manually updated version from 6.0.0 to address CVE-2023-29331 -->
  28. <PackageReference Include="System.Security.Cryptography.Xml" Version="$(RepoTasksSystemSecurityCryptographyXmlVersion)" />
  29. </ItemGroup>
  30. <ItemGroup Condition="'$(TargetFramework)' == 'net472'">
  31. <PackageReference Include="Microsoft.IO.Redist" Version="$(MicrosoftIoRedistVersion)" />
  32. <PackageReference Include="Microsoft.Signed.Wix" Version="$(MicrosoftSignedWixVersion)" />
  33. <PackageReference Include="System.Net.Http" Version="4.3.4" />
  34. <Reference Include="Microsoft.Build" />
  35. <Reference Include="Microsoft.Build.Framework" />
  36. <Reference Include="Microsoft.Build.Tasks.v4.0" />
  37. <Reference Include="Microsoft.Build.Utilities.v4.0" />
  38. <Reference Include="Microsoft.Deployment.WindowsInstaller">
  39. <HintPath>$(WiXSdkPath)\Microsoft.Deployment.WindowsInstaller.dll</HintPath>
  40. </Reference>
  41. <Reference Include="Microsoft.Deployment.WindowsInstaller.Package">
  42. <HintPath>$(WiXSdkPath)\Microsoft.Deployment.WindowsInstaller.Package.dll</HintPath>
  43. </Reference>
  44. </ItemGroup>
  45. </Project>