msbuild

Custom IL Rewriting plugin for msbuild

二次信任 提交于 2019-12-12 14:10:44
问题 I want to create a custom msbuild task that applies IL rwriting to my output assembly. At the moment i am already using PostSharp and now try to extend the rewriting capabilities. For some special cases i use Mono.Cecil to rewrite some proxy types into the assembly. This works fine right now. But now i want to intercept the build process between the actual build and the PostSharp transformation in order to generate aspects on my proxy types that get implemented by PostSharp in the next step.

Recyling apppool using msbuild script

﹥>﹥吖頭↗ 提交于 2019-12-12 13:43:38
问题 I'm using MSBuild to build and deploy the website, Before deploying i need to recycle the Application Pool, How can i do this from msbuild script? (I do not want to restart the IIS just recycle the application pool) 回答1: Why don't you use the extension pack: http://www.msbuildextensionpack.com/help/4.0.4.0/index.html It has a task: <MSBuild.ExtensionPack.Web.Iis7AppPool TaskAction="Recycle" Name="MyAppP"/> That should do what you ask. 回答2: The command is c:\Windows\system32\inetsrv\appcmd.exe

MSDeploy to Azure Web App: Could not connect to the remote computer using the specified process (“Web Management Service”)

狂风中的少年 提交于 2019-12-12 13:31:56
问题 We publish to our Azure Web App using MSBuild MSDeploy in VSO/VSTS Build (vNext) using the script below. This works well. BUT, when assigning the Azure Web App to a custom domain (through the Azure Portal), the publish fails. VSTS Build error on MSDeploy: Publishing with publish method [MSDeploy] Executing command ["C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:IisApp='C:\a\8b0700fff\MrProjectMain\Api\wwwroot' -dest:IisApp='myproject-prod-webapp',ComputerName='https:/

Does possibility to specify enabled protocols for web-application in IIS exist in MSBuild?

柔情痞子 提交于 2019-12-12 13:21:54
问题 I create webdirectory in IIS, using MSBuild task: <WebDirectoryCreate VirtualDirectoryName="$(VirtualDirectoryName)" VirtualDirectoryPhysicalPath="$(VirtualDirectoryPath)" AccessExecute="true"/> Now I look for possibility to specify enabled protocols (http, https, net.tcp) for this webdirectory using MSBuild. Any suggestion? 回答1: Had no luck to find any custom MSBuild task to handle above described action. Anyway I can still use appcmd.exe in order to do that: <Exec Command='%systemroot%

Invalid file names when trying to deploy SSDT project with TeamCity 8

旧巷老猫 提交于 2019-12-12 13:18:10
问题 I am trying to deploy Visual Studio 2012 SSDT project to Sql Server using TeamCity 8 and MSBuild Publish task but the deployment fails. When I look at TeamCity logs and use /v:diag switch in my build configuration I see that for unknown reason MSBuild searches for MyProject .sqlproj .publish.sql and for MyProject .sqlproj .dacpac files. The exact error: [SqlPublishTask] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(1233, 5): File

Output Path and MSBuild

爱⌒轻易说出口 提交于 2019-12-12 13:14:48
问题 I have a solution with 9 projects. All references in each project have their CopyLocal property set to False. When I build it from VS, none of these referenced binaries are copyed to the output build directory. Similarly, when I build using msbuild, I only see the project binaries and no references. However, when I specify an output path in the msbuild command, some references are copied and I don't know why? Is there some setting I am forgetting to set? Has anyone seen this before? 回答1: When

TFS 2010 : Use the label name in build number format

夙愿已清 提交于 2019-12-12 12:40:17
问题 I'm trying to setup a build with TFS 2010. I want the build number format to be something like $(BuildDefinitionName)_$(version) where $(Version) is the version (label or changeset) specified in the "Get Version" field in the "Queue Build" dialog. If there's no specific version, I would like the version to be latest . I googled for that but I'm new to msbuild and TFS build so I'm not sure what I should look for to get started. Thanks. 回答1: The Microsoft.TeamFoundation.Build.Workflow

How to parametrize DeployIisAppPath Msbuild argument in Tfs Build

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 12:21:34
问题 I am using Tfs 2012 to build/deploy our Asp.Net web apps. We have a build definition that builds 5 solutions (.sln files). This is how our MsBuild arguments look like: /p:DeployOnBuild=True /p:AllowUntrustedCertificate=True /p:DeployIisAppPath="Test" /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True /p:MSDeployPublishMethod=WMSVC /p:MSDeployServiceUrl="https://{server}:8172/msdeploy.axd" /p:UserName="{user}" /p:Password="{password}" I need to deploy all 5 sites with Web Deploy

MSBuild force compile failure on missing project files

与世无争的帅哥 提交于 2019-12-12 12:16:53
问题 As a developer, I want my compiler (MSBuild in Visual Studio in this case) to fail badly whenever it contains a file in any csproj project that is missing on disk. This idea sprung out at me after witnessing an accidental deletion of a web.config from a web site. MSBuild happily compiles without it (and would do so in continuous integration as well, since that just runs MSBuild too). Is there a way to force MSBuild to check that all files referenced in all of a solution's projects are present

How to build MFC library from source with Visual Studio 2010

自闭症网瘾萝莉.ら 提交于 2019-12-12 11:32:12
问题 Visual Studio has historically always included the MFC library as source so you can build it yourself with the supplied makefile. But in Visual Studio 2010 there is no makefile for MFC. So, how can you rebuild it? There is documentation on MS implying the makefile should be there: http://msdn.microsoft.com/en-us/library/bs046sh0.aspx .. so perhaps its an oversight, or perhaps they migrated it to msbuild but forgot to include the mfc msbuild project file. If anyone has succesfully built a