-
Notifications
You must be signed in to change notification settings - Fork 121
/
Directory.Build.targets
25 lines (22 loc) · 1.51 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Ensure developers are using a minimun supported version of VS -->
<Target Name="ValidateMinimumMsBuildVersion"
BeforeTargets="Restore;$(BuildDependsOn);Build;$(RebuildDependsOn);Rebuild;$(CleanDependsOn);Clean"
Condition=" '$(DesignTimeBuild)' != 'true' ">
<Error Text="Building this repository requires a minimun Visual Studio version of $(MinimumMSBuildVersion)" Condition="$(MSBuildVersion) < $(MinimumMSBuildVersion)" />
</Target>
<!-- Outdated check because we default for PWSH in PATH as a fallback -->
<!-- <Target Name="ValidatePowerShellExeExists"
BeforeTargets="Restore;$(BuildDependsOn);Build;$(RebuildDependsOn);Rebuild;$(CleanDependsOn);Clean"
Condition=" '$(DesignTimeBuild)' != 'true' ">
<Error Text="This repository requires either Windows PowerShell or PowerShell Core 7 to be installed (default location) to execute builds: $(PowerShellExe)" Condition="!Exists('$(PowerShellExe)')" />
</Target> -->
<ItemGroup>
<PackageReference Update="PowerShellStandard.Library" PrivateAssets="all" />
<PackageReference Update="Microsoft.Identity.Client.Extensions.Msal" GeneratePathProperty="true" />
<PackageReference Update="Microsoft.Identity.Client" GeneratePathProperty="true" />
<PackageReference Update="Microsoft.Identity.Client.Broker" GeneratePathProperty="true" />
<PackageReference Update="SlnGen" PrivateAssets="all"/>
</ItemGroup>
</Project>