This file contains hidden or 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
| properties { | |
| $testMessage = 'Executed Test!' | |
| $compileMessage = 'Executed Compile!' | |
| $cleanMessage = 'Executed Clean!' | |
| $outputDirectory = "..\.build" | |
| $temporaryOutputDirectory = "$outputDirectory\temp" | |
| $buildConfiguration = "Release" | |
| $buildPlatform = "Any CPU" | |
| $publishedxUnitTestsDirectory = "..\.build" | |
| $publishingOutputDirectory = "..\published" |
This file contains hidden or 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 | |
| ( | |
| [Parameter(Mandatory=$true)] | |
| $SrcDir, | |
| [Parameter(Mandatory=$true)] | |
| $DestDir | |
| ) | |
| $ExclusionFiles = @("Web.config") |
This file contains hidden or 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( | |
| [Parameter(Mandatory=$true)] | |
| [string]$PortNumber = "3390" | |
| ) | |
| $TSRegKey = "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" | |
| $PortNumberRegKey = "PortNumber" | |
| Clear-Host | |
| Write-Host $TSRegKey |
This file contains hidden or 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
| Clear-Host | |
| #help azure | |
| #Add the Azure Account to be registered with PowerShell | |
| Add-AzureAccount | |
| #Get the Windows Azure Subscription | |
| Get-AzureSubscription | |
| #Download the Azure Publish Settings for connecting to Azure |
This file contains hidden or 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
| /// <summary> | |
| /// Gets the path to the Xml Comments file for the Web API assembly | |
| /// </summary> | |
| /// <returns></returns> | |
| private static string GetXmlCommentsPath() | |
| { | |
| var baseDirectory = AppDomain.CurrentDomain.BaseDirectory; | |
| var commentsFileName = string.Format("{0}.XML", Assembly.GetExecutingAssembly().GetName().Name); | |
| var binFilePath = Path.Combine(baseDirectory, "bin"); | |
| var commentsFilePath = Path.Combine(binFilePath, commentsFileName); |
This file contains hidden or 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
| public static void Register(HttpConfiguration config) | |
| { | |
| // Web API attribute routes | |
| config.MapHttpAttributeRoutes(); | |
| //Map default routes | |
| config.Routes.MapHttpRoute( | |
| name: "DefaultApi", | |
| routeTemplate: "api/{version}/{controller}/{action}/{id}", |
This file contains hidden or 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
| public static void Register(HttpConfiguration config) | |
| { | |
| // Web API attribute routes | |
| config.MapHttpAttributeRoutes(); | |
| //Map default routes | |
| config.Routes.MapHttpRoute( | |
| name: "DefaultRESTfulApi", | |
| routeTemplate: "api/{version}/{controller}/{id}", |
This file contains hidden or 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,Position=1)] | |
| $ResourceGroupName="Default-Storage-EastUS", | |
| [Parameter(Mandatory=$true)] | |
| $VMName, | |
| [Parameter(Mandatory=$true)] | |
| $Location="EastUS" | |
| ) |
This file contains hidden or 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 | |
| ( | |
| [Parameter(Mandatory=$true)] | |
| $AppPoolName = "DefaultAppPool", | |
| [Parameter(Mandatory=$true)] | |
| $WebAppName, | |
| [Parameter(Mandatory=$true)] | |
| $WebsiteName = "Default Web Site", | |
| [Parameter(Mandatory=$true)] | |
| $PhysicalPath |
This file contains hidden or 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
| $MajorVersion = $PSVersionTable.PSVersion.Major | |
| $MinorVersion = $PSVersionTable.PSVersion.Minor | |
| Write-Host "The currently installed version of PowerShell is $MajorVersion.$MinorVersion" |
OlderNewer