VSTS DNX TasksThis extension allows you to make builds with the new ASP.NET Core tools easier.
DNX Tasks Build WebWith this task you can build a website project and create an output folder with all necessary content for a deployment to Azue.
You have to specify a project in your solution by setting the "Project Name" property. The name is in fact the folder name of the project. Make sure to wrap the name in double quotes if there are any spaces in this name. The "Build Configuration" property can be empty or any single word you want to have there. All the results of the build process will put in the folder specified in "Output Folder". Under the "Advanced" group you can decide if you want the source code to be included in the build output with the "Publish Source" switch.
Also the "Working Folder" can be specified here. Usual this should be the folder where your .sln file is. The Task will look in "Working folder/Source Folder/Project Name" for a project.json or a *.csproj and starts building this project. This task will fail when no project can be found in the specified location. If there is no need to install the "dotnet cli" please check the "Skip DotNet CLI Install" checkbox.
DNX Tasks Publish Web PackageYou can publish your website build with the "Build Web Package" task to an Azure Web App. To do so you have to select the azure subscription your App is on in the "Azure Classic Subscription" field and type in the "Web App Name". If you select a "Web App Location" the field "Web App Name" has prefilled options. In the "Deployment Slot" field specify the target Slot for the deployment. Leave this blank if you do not want to use a deployment slot. "Source Folder" should point at the folder where the build output ist written to.
Within the "Advanced" section you have the field for "Destination". This is the folder where the application will be in the Azure environment. Default value is "site/wwwroot". You can change this for example to deploy a WebJob to your already deployed website.
You can also make use of the "App_Offline.htm" behavior. You can specify a file which content will placed in the "App_Offline.htm" file on the target Web. If nothing is selected a file with default content will be used DNX Tasks Build Nuget PackageThis task is used to create Nuget packages for one or multiple projects. For the fields "Project Name", "Build Configuration", "Output Folder" and "Working Folder" please have a look at the "Build Web" task. Within the "Advanced" section there is a checkbox for "Pre Release". If this is true, the nuget package will build as prerelease with "VERSIONNUMBER-pre-BUILDNUMBER" in name. If there is no need to install the "dotnet cli" please check the "Skip DotNet CLI Install" checkbox.
DNX Tasks Azure SlotSwapIf you use deployment slots in your Azure Website and want to switch the slots after deployment you can use this task. In "Azure Classic Subscription" select the subscription your Website is assigned to. DNX Tasks Clear NuGet CacheFor some reasons it can be necessary to clean up the NuGet cache folder.
DNX Tasks Generate Change LogTo get a Change Log file with all commits for the actual build use this task. To get this task working script access for the OAuth token has to be enabled. To do so, go to the Options tab of the build definition and select Allow Scripts to Access OAuth Token.
DNX Tasks Add Virtual ApplicationThis task can be used to add a Virtual Application to an already existing Azure web app. If there is no "Virtual Application" with the given name this script will create one, otherwise nothing happens. Questions, Recommendations, Issues?Please have a look here: GitHub Issues Release NotesVersion 0.1.30
Version 0.1.27
Version 0.1.26
Version 0.1.25
Version 0.1.24
Version 0.1.23
Version 0.1.21
Version 0.1.20
Version 0.1.18
Version 0.1.13
Version 0.1.12
Version 0.1.11
Version 0.1.10
Version 0.1.9
Version 0.1.8
Version 0.1.7
Version 0.1.6
Version 0.1.5
Version 0.1.4
Version 0.1.1
|