webdeploy

MSDeploy Package has Missing Files

 ̄綄美尐妖づ 提交于 2019-12-05 22:45:48
I'm using MSBuild to build a web application project and adding parameters to create the package file. All of that is good. I get two folders in the _PublishedWebSites output: AppName AppName_Package In the ApplicationName folder, the entire site is there and I can simply copy this folder over to the website and it will run. In the Package folder I've got the expected 5 files: AppName.deploy.cmd AppName.-readme.txt AppName.SetParameters.xml AppName.SourceManifest.xml AppName.zip When deploying the package however, the web application dll ( AppName.dll ) is missing, as are a few other important

How to specify default Application Pool in ASP.NET MVC Project?

怎甘沉沦 提交于 2019-12-05 21:55:34
In my ASP.NET MVC project I have added a parameters.xml file that looks like: <?xml version="1.0" encoding="utf-8" ?> <parameters> <parameter name="Application Pool" description="Application Pool Name" defaultValue="PreferredPool"> <parameterEntry kind="DeploymentObjectAttribute" scope="appHostConfig" match="application/@applicationPool"/> </parameter> </parameters> Then I go ahead and build the deployment package: MSBuild.exe myproject.csproj /t:Package /p:PackageLocation="C:\packages\myproject.zip" And then I invoke the batch script generated (myproject.deploy.cmd) and deploy the app to a

Auto Branching in svn using teamcity

我是研究僧i 提交于 2019-12-05 20:37:32
I wonder whether it is possible to do auto branching using Teamcity. As currently I am automatically publishing web applications using web deploy and the only thing left is branching as we usually take a branch in svn and then publish the next version. Can any one please advise if it is possible and how to do it. Open TeamCity Version Control Settings for your release build. Set "VCS labeling mode" to "Successful only" and specify an appropriate labeling pattern. E.g. release-build-%system.build.number% . At the top of this page, enter the checkout rule +:/trunk => . then click edit to open

Entity Framework Code First Data Migrations not working with VS2012 Web Deploy

旧巷老猫 提交于 2019-12-05 18:43:16
问题 I have created an MVC 3.0 application using Visual Studio 2012, .NET 4.5 and Entity Framework 5.0. Using Code First Data Migrations, I am able to correctly propagate model changes to my local test database, but I can't figure out how to get this to work when deploying to my staging and production servers using Web Deploy. I have read the following article ... http://msdn.microsoft.com/en-us/library/dd394698(v=vs.110)#dbdacfx ... which explains what's supposed to happen, but it's not working

Setting up automatic backups in Web Deploy tool

对着背影说爱祢 提交于 2019-12-05 14:08:41
问题 I've been struggling to setup automatic backup, but seems to have hit a wall. Following this document, and using Powershell, I've enabled the backups ( TurnOn-Backups -On $true , then Configure-Backups -SiteName "test1" -Enabled $true ; so Get-BackupSettings -SiteName "test1" tells me the backup is enabled). However, whenever I do a publish from Visual Studio - no backup is created. I've set the backup path, the permissions are set to allow everything for everyone.. so I have no idea what

Deploying IIS Settings with Web Deploy

淺唱寂寞╮ 提交于 2019-12-05 12:27:12
问题 If I look at the Package/Publish Settings of a web application in Visual Studio 2010, there is an option to "Include all IIS settings as configured in IIS Manager (used only for IIS Web projects)" I am using IIS instead of the VS Dev Server to run my web application, but when I deploy the package that Web Deploy creates to a remote server, the IIS settings that get applied to my remote IIS application are at the least, unfamiliar, and at the worst, completely wrong. For instance, my local IIS

Publish to Azure fails with “ Unrecognized link extension 'contentLibExtension'” Error

亡梦爱人 提交于 2019-12-05 12:04:57
I am trying to publish ASP.NET MVC 6 App to Azure with Visual Studio 2015 CTP. And getting the following error Publishing with publish method [MSDeploy] Calling msdeploy with the command: ["C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe" -source:IisApp='C:\Users\*****\AppData\Local\Temp\AspNetPublish\NgCalendar-28\wwwroot' -dest:IisApp='ngcalendar',ComputerName='https://ngcalendar.scm.azurewebsites.net/msdeploy.axd',UserName='$ngcalendar',Password='{PASSWORD-REMOVED-FROM-LOG}',IncludeAcls='False',AuthType='Basic' -verb:sync -enableLink:contentLibExtension -enableRule

using dirPath Provider with WebDeploy

a 夏天 提交于 2019-12-05 07:21:59
问题 I have a wcf application hosted in iis that i am trying to package using webdeploy. Everything works great with the visual studio tools, but i need to also create a logs folder and set permissions on it. For this i created a ProjectName.wpp.target file in my web project. The file looks like this <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="CreateLogsDirectory" AfterTargets="AddIisSettingAndFileContentsToSourceManifest"> <!-- This must

The command “dotnet bundle” exited with code 1 - VS 2017 Publish ASP.NET Core Web API

ε祈祈猫儿з 提交于 2019-12-05 06:33:49
I'm getting the following error when trying to publish my Web API to a server: The command "dotnet bundle" exited with code 1 This is the publish screen: This is the error from output: Can anyone help me? Make sure you have added the DotNetCliToolReference in your WebApi project. I'm assuming VS2017 csproj file. <ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" /> <DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.2.281" /> </ItemGroup> The second entry in the code above. Method 01 Find your .csproj file and right_click >

How to replace a web.config setting with the current date while using webdeploy?

♀尐吖头ヾ 提交于 2019-12-05 05:32:26
I'm using a web.config transform to replace settings with the settings of the selected solution configuration. However, I would like to add a setting that stores the datetime of the publish process. The reason for this is to be able to show a "Last published on" for my customers. Using config transforms, is there a way to replace a setting with the current date? I think you're going to need to use a customer MSBuild task to apply the change. My wife blogged about adding custom tasks to the build process (as she understands these things better than I). You might find some useful information on