-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply MSAL change from CattieCat/MSAL1208
- Loading branch information
Jinjing Ma
committed
Jun 10, 2021
1 parent
d16d6dc
commit 4675e53
Showing
72 changed files
with
734 additions
and
1,219 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-restore | ||
-consoleLoggerParameters:Verbosity=Minimal;Summary;ForceNoAlign | ||
-maxCpuCount | ||
-IgnoreProjectExtensions:.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Sdk Name="Microsoft.Build.CentralPackageVersions" /> | ||
|
||
<!-- 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> | ||
|
||
<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> | ||
</Project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.8.3" /> | ||
<PackageReference Update="MSTest.TestAdapter" Version="2.1.2" /> | ||
<PackageReference Update="MSTest.TestFramework" Version="2.1.2" /> | ||
<PackageReference Update="Newtonsoft.Json" Version="12.0.2" /> | ||
<PackageReference Update="PowerShellStandard.Library" Version="7.0.0-preview.1" PrivateAssets="all" /> | ||
<PackageReference Update="Microsoft.PowerShell.SDK" Version="7.1.1" /> | ||
<PackageReference Update="Microsoft.PowerShell.Commands.Diagnostics" Version="7.1.1" /> | ||
<PackageReference Update="Microsoft.WSMan.Management" Version="7.1.1" /> | ||
<PackageReference Update="Microsoft.Rest.ClientRuntime" Version="2.3.11" /> | ||
<PackageReference Update="System.Net.Http" Version="4.3.3" /> | ||
<PackageReference Update="Microsoft.Identity.Client.Extensions.Msal" Version="2.16.8" GeneratePathProperty="true" /> | ||
<PackageReference Update="Microsoft.Identity.Client" Version="4.25.0" GeneratePathProperty="true" /> | ||
<PackageReference Update="Microsoft.PowerBI.Api" Version="2.14.0" /> | ||
<PackageReference Update="System.Runtime.Serialization.Json" Version="4.3.0" /> | ||
<PackageReference Update="Moq" Version="4.8.2" /> | ||
<PackageReference Update="platyPS" Version="0.9.0" /> | ||
<PackageReference Update="SlnGen" Version="2.2.30" PrivateAssets="all"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project Sdk="Microsoft.Build.Traversal"> | ||
|
||
<PropertyGroup> | ||
<SlnGenFolders>true</SlnGenFolders> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- Build all projects recursively under the "src" folder --> | ||
<ProjectReference Include="src\**\*.*proj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<!-- Only pulled in by slngen --> | ||
<SlnGenSolutionItem Include="build\**\*.targets" /> | ||
<SlnGenSolutionItem Include="scripts\**\*.*" /> | ||
<SlnGenSolutionItem Include="NuGet.config" /> | ||
<SlnGenSolutionItem Include="ReleaseNotes.md" /> | ||
<SlnGenSolutionItem Include=".editorconfig" /> | ||
<SlnGenSolutionItem Include="global.json" /> | ||
<SlnGenSolutionItem Include="Directory.Build.props" /> | ||
<SlnGenSolutionItem Include="Directory.Build.targets" /> | ||
<SlnGenSolutionItem Include="Packages.props" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"sdk": { | ||
"version": "5.0.101" | ||
}, | ||
"msbuild-sdks": { | ||
"Microsoft.Build.Traversal": "3.0.2", | ||
"Microsoft.Build.CentralPackageVersions": "2.0.79", | ||
"Microsoft.Build.NoTargets": "2.0.1", | ||
"Microsoft.Build.Artifacts": "2.0.35" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$scriptsDir = (Get-Item "$PSScriptRoot\scripts").FullName | ||
|
||
if($env:Path -split ';' -inotcontains $scriptsDir) { | ||
Write-Verbose "Adding '$scriptsDir' to Path environment variable..." | ||
$env:Path = $env:Path.TrimEnd(';') | ||
$env:Path += ";$scriptsDir" | ||
} | ||
|
||
$scripts = Get-ChildItem -Path $scriptsDir -Filter *.ps1 | ||
foreach ($script in $scripts) { | ||
$scriptName = $script.BaseName | ||
Set-Alias -Name $scriptName -Value $script.FullName -Scope Global -Option AllScope -ErrorAction SilentlyContinue | ||
} | ||
|
||
Write-Host "Any script (*.ps1) in $scriptsDir can be called with just name of script, example 'build'" -ForegroundColor Gray | ||
Write-Host "Welcome to powerbi-powershell repository!`n" -ForegroundColor Green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function Get-VSBuildFolder | ||
{ | ||
[OutputType([string])] | ||
param | ||
( | ||
[switch] $Prerelease | ||
) | ||
|
||
# https://github.com/Microsoft/vswhere | ||
$vsWhereExe = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" | ||
if(!(Test-Path -Path $vsWhereExe)) { | ||
throw "Unable to find vswhere, confirm Visual Studio is installed: $vsWhereExe" | ||
} | ||
|
||
$vsWhereArgs = @('-latest', '-requires', 'Microsoft.Component.MSBuild', '-find', 'MSBuild\**\Bin\MSBuild.exe') | ||
if($Prerelease) { | ||
$vsWhereArgs += '-prerelease' | ||
} | ||
|
||
# https://github.com/microsoft/vswhere/wiki/Find-MSBuild#powershell | ||
$msbuildPath = & $vsWhereExe $vsWhereArgs | select-object -first 1 | ||
if(!(Test-Path -Path $msbuildPath)) { | ||
throw "Unable to find MSBuild: $msbuildPath" | ||
} | ||
|
||
return $msbuildPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.