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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Castle.MicroKernel; | |
using Castle.Windsor; | |
namespace Windsor.Extensions | |
{ | |
public static class WindorContainerExtensions |
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
function Get-DotNetCoreInstaller([string]$dotNetVersion, [bool]$useProxy, [string]$proxyServerAddress, [string]$outputFilePath) { | |
$fileName = "dotnet-hosting-win.exe" | |
$releasesJSONURL = "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/" + $dotNetVersion + "/releases.json" | |
$webClient = New-Object System.Net.WebClient | |
if ($useProxy -eq $true) { | |
if (($null -eq $proxyServerAddress) -or ($proxyServerAddress -eq "")) { | |
Write-Host "##vso[task.logissue type=error;]Proxy server address was not specified" | |
[Environment]::Exit(1) | |
} |
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
$ConfirmPreference = 'None' | |
$ApiPortBinding = 443 | |
$Subject = "SubjectName" | |
Get-ChildItem Cert:\localmachine\my | Where-Object { $_.Subject -match $Subject } | Remove-Item -Force | |
Get-ChildItem Cert:\localmachine\CA | Where-Object { $_.Subject -match $Subject } | Remove-Item -Force | |
Get-ChildItem Cert:\localmachine\root | Where-Object { $_.Subject -match $Subject } | Remove-Item -Force | |
if (-Not (netsh http show sslcert ipport=0.0.0.0:$(ApiPortBinding) | find "The system cannot find the file specified")) |