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
param location string = resourceGroup().location | |
param name string = 'plan-${uniqueString(resourceGroup().id)}' | |
resource appServicePlan 'Microsoft.Web/serverfarms@2021-03-01' = { | |
name: name | |
location: location | |
kind: 'linux' | |
sku: { | |
name: 'F1' | |
} |
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
Import-Module WebAdministration | |
foreach ($POOL in Get-IISAppPool){ | |
$POOL_NAME = $POOL.Name | |
if((Get-WebAppPoolState -Name $POOL_NAME).Value -ne 'Stopped'){ | |
Write-Output ('Stopping Application Pool: {0}' -f $POOL_NAME) | |
Stop-WebAppPool -Name $POOL_NAME | |
} | |
} |
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 Newtonsoft.Json; | |
using System; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace GetWorkItem | |
{ | |
class Program |
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
steps: | |
- task: NuGetCommand@2 | |
displayName: 'NuGet push' | |
inputs: | |
command: push | |
packagesToPush: '$(System.DefaultWorkingDirectory)\**\*.nupkg' | |
publishVstsFeed: '**任意の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
pool: | |
name: Azure Pipelines | |
steps: | |
- bash: 'env | sort' | |
displayName: 'Bash Script' | |
- powershell: | | |
$Src = @' | |
using System; | |
using System.IO; |
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
# .NET Desktop | |
# Build and run tests for .NET Desktop or Windows classic desktop solutions. | |
# Add steps that publish symbols, save build artifacts, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net | |
trigger: | |
tags: | |
include: | |
- v* |
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
input,textarea { | |
box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-webkit-appearance: none; | |
max-width: 100%; | |
} |
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
Param([string]$WORKSPACE) | |
$GIT_COMMIT_HASH = git rev-parse HEAD | |
$ASSEMBLY_INFO_PATH = "$WORKSPACE\src\Playground.Sample\Properties\AssemblyInfo.cs" | |
$ASSEMBLY_INFO_CONTENT = Get-Content $ASSEMBLY_INFO_PATH | |
$ASSEMBLY_VERSION = [regex]::Match($ASSEMBLY_INFO_CONTENT, "AssemblyVersion\(`"(.+?)`"\)").Groups[1].Value | |
$ASSEMBLY_INFORMATIONAL_VERSION = [string]::Format("[assembly: AssemblyInformationalVersion(`"{0}-{1}`")]", $ASSEMBLY_VERSION, $GIT_COMMIT_HASH.Substring(0, 7)) |
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 HtmlAgilityPack; | |
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Web; | |
namespace ConsoleApplication | |
{ | |
class Program | |
{ |
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
gisttest |