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
trigger: | |
- master | |
pool: 'Hosted Windows 2019 with VS2019' | |
variables: | |
buildConfiguration: 'Release' | |
stages: | |
- stage: build_pack |
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
license: mit | |
height: 600 |
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.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.SpaServices.Webpack; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.AspNetCore.Authentication.JwtBearer; |
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( | |
# Git tag or commit has from which we want the patch to start | |
[String] $FromTag, | |
# Path of the patch file | |
[String] $PatchFilePath, | |
# Git tag or commit hash where to we want the patch to update to (default HEAD, current checkout) | |
[String] $ToTag = "HEAD" | |
) | |
function New-ZipFromFiles ( |
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
<# | |
.SYNOPSIS | |
Runs a select with on the specified table with the specified columns | |
and writes the result to a CSV file. | |
.DESCRIPTION | |
This function calls the connection passed as a parameter and sends a | |
SELECT command to it. The table on which the SELECT is run as well as | |
the selected columns are passed as a parameter. | |
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()] | |
param( | |
[Parameter(Mandatory=$True)] | |
[string]$packageFolder, | |
[Parameter(Mandatory=$True)] | |
[string]$releaseFolder, | |
[Parameter(Mandatory=$True)] | |
[string]$signCertPassword | |
) |
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()] | |
param( | |
[Parameter(Mandatory=$True)] | |
[string]$ReleaseFolder, | |
[Parameter(Mandatory=$True)] | |
[string]$StorageAccountName, | |
[Parameter(Mandatory=$True)] | |
[string]$StorageAccountKey, | |
[Parameter(Mandatory=$True)] | |
[string]$Container |
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
<?xml version="1.0"?> | |
<package > | |
<metadata> | |
<id>ApplicationId</id> | |
<version>$version$</version> | |
<authors>Your company name</authors> | |
<requireLicenseAcceptance>false</requireLicenseAcceptance> | |
<description>Your application description.</description> | |
<copyright>Copyright 2015</copyright> | |
</metadata> |
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()] | |
param( | |
[Parameter(Mandatory=$True)] | |
[string]$PfxCertificateFilePath, | |
[Parameter(Mandatory=$True)] | |
[string]$SignCertPassword, | |
[Parameter(Mandatory=$True)] | |
[string]$ExeFilePath | |
) | |
Set-Alias signtool 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\SignTool.exe' |
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
# Use a regular expression to get "minor, major, fix, revision" from the BUILD_BUILDNUMBER environment variable | |
# the build process will automatically set the value of the environment variable to the correct build number | |
$VersionRegex = "\d+\.\d+\.\d+\.\d+" | |
$NewVersion = [regex]::matches($Env:BUILD_BUILDNUMBER,$VersionRegex) | |
Write-Host "Updating version of the application to the build version: " $NewVersion | |
$file = ".\SharedAssemblyInfo.cs" | |
$filecontent = Get-Content($file) | |
attrib $file -r |
NewerOlder