$context = [Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider]::Instance.Profile.DefaultContext
$aadToken = [Microsoft.Azure.Commands.Common.Authentication.AzureSession]::Instance.AuthenticationFactory.Authenticate($context.Account, `
$context.Environment, `
$context.Tenant.Id.ToString(), `
$null, `
[Microsoft.Azure.Commands.Common.Authentication.ShowDialog]::Never, `
$null, `
"https://graph.windows.net").AccessToken
Connect-AzureAD -AadAccessToken $aadToken -AccountId $context.Account.Id -TenantId $context.tenant.id
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
[CmdletBinding(SupportsShouldProcess = $true)] | |
[OutputType([System.Object[]])] | |
param( | |
[Parameter(Position=0, ValueFromPipeline)] | |
[ValidateNotNullOrEmpty()] | |
[string] | |
$LiteralPath = (Join-Path -Path $PSScriptRoot -ChildPath '.env'), | |
[Parameter()] | |
[switch] |
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
name | displayName | Reference | |
---|---|---|---|
azure-account | Azure Account | ms-vscode.azure-account | |
azure-pipelines | Azure Pipelines | ms-azure-devops.azure-pipelines | |
bracket-pair-colorizer-2 | Bracket Pair Colorizer 2 | CoenraadS.bracket-pair-colorizer-2 | |
csharp | C# | ms-vscode.csharp | |
csharpextensions | C# Extensions | jchannon.csharpextensions | |
cpptools | C/C++ | ms-vscode.cpptools | |
codealignment-vscode | Code alignment | cpmcgrath.codealignment-vscode | |
vscode-java-debug | Debugger for Java | vscjava.vscode-java-debug | |
github-plus-theme | GitHub Plus Theme | thenikso.github-plus-theme |
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
[System.Net.ServicePointManager]::SecurityProtocol += 'Tls12' | |
$owner = 'microsoft' # 'microsoft' # 'golang' | |
$repo = 'Git-Credential-Manager-for-Windows' #'Git-Credential-Manager-for-Windows' #'go' | |
$relList = $null | |
$limitAll = $true | |
$relUrl = (Invoke-RestMethod -Uri "https://api.github.com/repos/$owner/$repo").releases_url | |
if ($relUrl) { | |
$idx = $relUrl.IndexOf('{') |
Prerequisite: https://github.com/FiloSottile/mkcert
$env:CAROOT = Join-Path $PSScriptRoot 'CA'
<#
mkcert creates the directory if it does not exist
if (-not (Test-Path $env:CAROOT)) {
"files.trimTrailingWhitespace": true, "[markdown]": { "files.trimTrailingWhitespace": false },
$prgMap = @(
@{
"Name" = "gacutil.exe"
"Type" = "Application"
"DefaultPath" = $PSScriptRoot
"VariableName" = "cmdGacutil"
},
@{
"Name" = "appcmd.exe"
In a nutshell, you need to:
- Start VS with the Environment Variable COMPLUS_ZapDisable=1
- Disable the VS Hosting Process (.vshost.exe) before you start debugging
Most of the times this isn't enough, because the .NET environment uses the optimization settings for referenced assemblies, regardless of the ZapDisable settings. So the JIT optimizations has to disabled while debugging for such assemblies.