msbuild

What is expected for DeployIisAppPath setting on MSBuild argument?

自古美人都是妖i 提交于 2019-12-19 06:46:30
问题 SERVERNAME(myDomain\Username) Application Pools Sites DEV Site1 DEV Site2 dev Site 3 bin Content ... Views etc ... This is my basic layout of our DEV web server. Our DEV web server has many sites running on it. I am trying to use TFS 2013 Build to publish my web site to the DEV server following articles from Vishal Joshi, Microsoft and others. My error is "ERROR_SITE_DOES_NOT_EXIST". The basic fix does not help me. In my example, I'm using /p:DeployIisAppPath="dev Site 3" . There are no

What is expected for DeployIisAppPath setting on MSBuild argument?

雨燕双飞 提交于 2019-12-19 06:46:01
问题 SERVERNAME(myDomain\Username) Application Pools Sites DEV Site1 DEV Site2 dev Site 3 bin Content ... Views etc ... This is my basic layout of our DEV web server. Our DEV web server has many sites running on it. I am trying to use TFS 2013 Build to publish my web site to the DEV server following articles from Vishal Joshi, Microsoft and others. My error is "ERROR_SITE_DOES_NOT_EXIST". The basic fix does not help me. In my example, I'm using /p:DeployIisAppPath="dev Site 3" . There are no

MSBuild 15 - The type or namespace 'Fakes' does not exist in the namespace

[亡魂溺海] 提交于 2019-12-19 06:20:04
问题 I'm trying to set up automated builds and unit testing for a project which uses the Fakes library for it's unit tests. The project builds and tests fine on my Windows 10 PC (VS 2017 Enterprise installed), however using the same command to compile the project on the build server (also windows 10 with VS 2017 Enterprise) gives several errors about the Fakes not existing. The exact errors look like this: XControllerTests.cs(10,20): error CS0234: The type or namespace 'Fakes' does not exist in

Make an HTTP request from MSBuild script

主宰稳场 提交于 2019-12-19 06:17:14
问题 I'm looking for a way to hit a web app/restful service URL from msbuild script to trigger remote procedure. Is there any way how I can do that except calling that external app? Ideally I'm looking for a way to break a build sequence if service returned something else that http 200 回答1: I use the MSBuild Community Tasks a lot. They add extra tasks for MSBuilds. In there is a HttpRequest task which, from the look of it, does what you want. <HttpRequest Url="http://<mydomain.com>/index.php

how can i suppress all compiler and code analysis warnings from msbuild at the command line?

☆樱花仙子☆ 提交于 2019-12-19 05:39:09
问题 This has been asked, but wasn't answered. The answer (use /warn:1 ) doesn't work for msbuild.exe, only csc.exe. Perhaps I'm missing something between csc and msbuild? I'd like to suppress all compiler warnings and code analysis warnings (e.g. "The variable 'variableNameHere' is assigned but its value ..." or Code Analysis Warning : CA1805 : Microsoft.Performance : ... ) when I'm using command line msbuild. I don't want to alter the solution file. There are several hundred warning messages in

how can i suppress all compiler and code analysis warnings from msbuild at the command line?

限于喜欢 提交于 2019-12-19 05:38:05
问题 This has been asked, but wasn't answered. The answer (use /warn:1 ) doesn't work for msbuild.exe, only csc.exe. Perhaps I'm missing something between csc and msbuild? I'd like to suppress all compiler warnings and code analysis warnings (e.g. "The variable 'variableNameHere' is assigned but its value ..." or Code Analysis Warning : CA1805 : Microsoft.Performance : ... ) when I'm using command line msbuild. I don't want to alter the solution file. There are several hundred warning messages in

roslyn compiler not copied to AspnetCompileMerge folder using msbuild

佐手、 提交于 2019-12-19 05:31:06
问题 I have a .NET MVC project that I'm trying to deploy using Jenkins. I had been letting Jenkins run msbuild, then copying the resulting files out using RoboCopy. I wanted to switch to just use a publish profile. The publishing profile works fine on my local machine using Visual Studio, but on the Jenkins host it fails using msbuild. The error it gives is ASPNETCOMPILER : error ASPRUNTIME: Could not find a part of the path 'C:\Program Files (x86)\Jenkins\jobs\myProject\workspace\myProject\obj

How to invoke the same msbuild target twice?

一世执手 提交于 2019-12-19 05:24:29
问题 I have the following msbuild script: <?xml version="1.0" encoding="utf-8"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="All"> <PropertyGroup> ... </PropertyGroup> <UsingTask AssemblyFile="$(GallioTaskPath)" TaskName="Gallio.MSBuildTasks.Gallio" /> <Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" /> <ItemGroup> ... </ItemGroup> <Target Name="CheckServerHostsItemGroup" Condition="'$(NoServerHosts)' != True"> ... </Target>

MSBuild getting property substring before underscore symbol

假装没事ソ 提交于 2019-12-19 05:13:17
问题 In MSBuild I have a property which value is Name_Something. How can I get name part of this property. 回答1: With MSBuild 4 If you use MSBuild 4, you could use the new and shiny property functions. <PropertyGroup> <MyProperty>Name_Something</MyProperty> </PropertyGroup> <Target Name="SubString"> <PropertyGroup> <PropertyName>$(MyProperty.Substring(0, $(MyProperty.IndexOf('_'))))</PropertyName> </PropertyGroup> <Message Text="PropertyName: $(PropertyName)"/> </Target> With MSBuild < 4 You could

How can I use a batch file to MSBuild solutions in multiple directories at once?

我怕爱的太早我们不能终老 提交于 2019-12-19 04:15:14
问题 I am an intern with a start-up company. I don't know anything about Batch files, XML files, the command prompt, or msbuild. I only know the basics of C#. I have been asked to make a batch file that allows a user to build ALL solutions in a directory, with seven subfolders, in one command. I know how to build one solution in a single folder (by using msbuild mysolution.sln ), but to build many solutions from seven different folders is beyond me. It is possible to make a batch file that allows