msbuild

Is MSBuild going to be dead because of Windows Workflow? [closed]

强颜欢笑 提交于 2019-12-18 19:02:34
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . MSBuild in TFS 2010 has been replaced by Windows Workflow 4.0. It means when you are creating a Build Definition, you won't have a

Checkout from TFS with MSBuild

谁说胖子不能爱 提交于 2019-12-18 19:01:46
问题 What's the easiest way to checkout a file from our TFS with MSBUILD. From what I can see it's to shell out to TF.EXE and manually call the checkout command. Is there really no built in command?! 回答1: There really is no built in command. Even worse, the tf checkout command only accepts a single filespec. The recently released MSBuildExtensionPack has some msbuild commands for TFS, but no perf gain there. Under the hood, they shell out to tf.exe 回答2: the 'itemspec' can be a list of space

Gathering outputs from an MSBuild exec task

☆樱花仙子☆ 提交于 2019-12-18 18:58:21
问题 I have a batch script that I want to call from an MSBuild project, and the documentation says I can't use output from the batch (either console / environment variables) in the MSBuild project. Is there a workaround? 回答1: You can redirect the output of the command to a file using "> output.txt" and read that into a variable. <PropertyGroup> <OutputFile>$(DropLocation)\$(BuildNumber)\Output.txt</OutputFile> </PropertyGroup> <Exec Command="dir > "$(OutputFile)"" /> <ReadLinesFromFile File="$

MSBuild Inline Task - Reference non-standard Microsoft assemblies

让人想犯罪 __ 提交于 2019-12-18 18:57:11
问题 I am using the new MSBuild Inline Task to leverage the TransformXml (XDT Transform) in the Microsoft.Web.Publishing.Tasks.dll assembly. Here's what my task (snipped) looks like: <Task> <Reference Include="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/> <Reference Include="System.Xml" /> <Using Namespace="System"/> <Using Namespace="System.Linq"/> <Using Namespace="System.IO" /> <Using Namespace="System.Xml"/> <Using Namespace="Microsoft.Web

Does anyone know where to find NUnit console exit codes meanings?

回眸只為那壹抹淺笑 提交于 2019-12-18 18:48:57
问题 I am getting error message from my MSBuild: "nunit-console.exe" exited with code -100. Does anyone know where NUnit console exit codes meanings can be found? 回答1: Error code -100 stands for UNEXPECTED_ERROR static ConsoleUi() { OK = 0; INVALID_ARG = -1; FILE_NOT_FOUND = -2; FIXTURE_NOT_FOUND = -3; TRANSFORM_ERROR = -4; UNEXPECTED_ERROR = -100; } EDIT: Additional information from a thread on the NUnit-Discuss google group: Additionally, positive values give a count of failed tests in the run.

Does Msbuild recognise any build configurations other than DEBUG|RELEASE

混江龙づ霸主 提交于 2019-12-18 18:42:58
问题 I created a configuration named Test via Visual Studio which currently just takes all of DEBUG settings, however I employ compiler conditions to determine some specific actions if the build happens to be TEST|DEBUG|RELEASE. However how can I get my MSBUILD script to detect the TEST configuration?? Currently I build <MSBuild Projects="@(SolutionsToBuild)" Properties="Configuration=$(Configuration);OutDir=$(BuildDir)\Builds\" /> Where @(SolutionsToBuild) is a my solution. In the Common MsBuild

How to Auto Increment Assembly or Assembly File Version, from MSBuild?

泪湿孤枕 提交于 2019-12-18 17:48:11
问题 Constraints are: Using Visual Studio 2017. Needs to ultimately be called from a powershell script calling MSBuild. Not sure its relevant, but needs to be able to build the following: asp.net 461 asp.net-core 1.1 and 2.0 assemblies Unsuccessful attempts so far: How to have an auto incrementing version number (Visual Studio)? <- This works when building from VS only. Code Generation in a Build Process -Described as Microsoft's latest document on using "TextTemplating" with MSBuild. States need

SQL Database Project: build different scripts depending on build configuration

我怕爱的太早我们不能终老 提交于 2019-12-18 16:58:39
问题 The problem I want to solve is to build different scripts depending on build configuration. Say we have two instances of SQL Server: Enterprise version with connected Linked servers LocalDb version for offline developing and unit tests Enterprise version has views for Linked servers when LocalDB substitues those views with local tables. Those Linked Server views and local tables have the same names and set of fields. So they are not included in build by default (Build Action = None). Instead

How to change MSBuild error message language?

廉价感情. 提交于 2019-12-18 16:32:56
问题 I'm on a Japanese system and when I run MsBuild.exe to build a Visual Studio project, I get a mix of Japanese and English in the output: C:\path\to\solution>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe solution.sln Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3082] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 2/18/2010 1:03:04 PM. Project "C:\path\to\solution.sln" on node 0 (default targets). Building

Is it possible to use a Portable Class Library that references System.Net in MonoDroid?

孤街醉人 提交于 2019-12-18 15:37:06
问题 Following from How can I build a targetting pack for Portable Class Libraries? and the advice in http://jpobst.blogspot.com/2012/04/mono-for-android-portable-libraries-in.html I've managed to build some monodroid example programs which use Portable Class Libraries. However, if any of my input PCLs reference the System.Net assembly, then monodroid fails to package my apk - because it complains about File Not Found for System.Net.dll. As I understand it (from http://docs.xamarin.com/android