build-definition

TFS 2015 machine groups cannot be selected in build/deployment definition (vnext) after creation

不羁岁月 提交于 2019-12-12 02:54:11
问题 We have a problem with a TFS 2015 installation, an upgrade from 2010. We ran into the following issue. This concerns a dry run, so we install everything on the same server, which is not a prefered method, we know. • Installed new virtual server with Windows Server 2012 R2 • Added IIS feature • Installed SQL server 2014 • Installed sharepoint foundation 2013 on the server • Installed visual studio 2015 on the server • Installed all the necessary .NET target frameworks • Installed the

Does TFS 2017 have the ability to export and import build definitions into remote server?

纵然是瞬间 提交于 2019-12-11 10:35:09
问题 We have Team Foundation Server 2017 setup on our internal server which we build our .NET code in our sandbox environment, but would like to be able to push out new build definitions or updates remotely (to our client - production server) either manually or in an automated manner? 回答1: Yes, you can export and import the build definitions in TFS 2017. In you case, if you have the permission to access and create build definitions from the remote server, then you can export/import the build

VSTS Build Definition for Android failing

早过忘川 提交于 2019-12-11 06:06:35
问题 I'm starting using the build definitions from Team Services for a Xamarin Android App. In Visual Studio everything works fine and I can check in the code to VS Team Services. UPDATE 1 Now, at the moment to create an Build Definitions for my project, it's falling. And this is part of the log: 2016-10-13T03:30:45.7198826Z Considered treating "Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL" as a file name, but it didn't exist. 2016-10-13T03:30:45.7748834Z 2>C:\a

MSBuild Defintion - Suppress Warning Messages for Specific Solutions

女生的网名这么多〃 提交于 2019-12-10 12:04:40
问题 Within the MSBuild Build Definitions, I'm trying to suppress all warning messages output for specific C# and vb.net solutions. I want the warnings to return 0 for a particular solution. I've been reading that you can fix this using NoWarn within MSBuild Arguments but i can't find the syntax for an entire solution $/Etc/Etc1/Etc2/Etc3/Etc4/Solution.sln - 0 error(s), 500 warning(s) MSBuild Arguments: /p:NoWarn"Solution.sln" **There are multiple solutions within the Build but I only want to

How to Move TFS 2010 Build Definition between Projects?

廉价感情. 提交于 2019-12-10 01:36:50
问题 I have some TFS 2010 build definitions that were created under ProjectX. Now the source code has moved to a folder subordinate to ProjectY. How can I move the build definitions to ProjectY so they display under the Builds node of the Team Explorer for ProjectY? 回答1: I don't think there is something out of the box to copy the build definitions from one project to another. However you should be able to do it using the TFS API. You will want to move the build process templates, which is what

Run Powershell or Command Prompt as administrator during Visual Studio Team Services build

混江龙づ霸主 提交于 2019-12-08 15:20:58
问题 I am working on a project where we are delay signing the assemblies. I need to use the strong name tool a couple times during the build, to turn off strong name verification, and then to fully sign the assemblies before they are packaged. I attempted to use a powershell step to turn off verification, but it came back with this error: Script: $testprojs = gci Project.*.dll -r $testprojs | % { sn -Vr $_ write-output $("Turned off sn verification for " + $_.Name) } Error: Failed to open registry

How to Recursively Delete wildcard files in TFS Build?

牧云@^-^@ 提交于 2019-12-06 08:56:00
I want to recursively delete files that match a certain pattern as part of my post-build cleanup routines in TFS Build. I've tried this... <Delete Files="T:\DeploymentDir\**\A*" /> No errors in the build, but it doesn't work. Modify your TFSBuild.proj file and add the following lines at the very end (just before closing ): <Target Name="AfterDropBuild"> <ItemGroup> <FilesToDelete Include="$(DropLocation)\$(BuildNumber)\**\temp*.*" /> </ItemGroup> <Delete Files="@(FilesToDelete)" TreatErrorsAsWarnings="true"/> </Target> I don't think the Delete task will automatically expand the wildcard. You

TFS 2012 Build Definition for web deployment ignores parameters defined in project files

怎甘沉沦 提交于 2019-12-06 07:40:59
问题 I'm trying to set up a TFS 2012 build definition that will build a solution and deploy several web apps within the solution. I came across this article that seems to address exactly what I'm trying to do and also seems to agree with the solution mentioned here. So I tried implementing the build definition/project configuration as described in that article, but no matter what I do, it seems to be ignoring the parameters I put in the specific configuration property group of the csproj files

Running (x)Unit Tests on TFS Build Pipeline

梦想与她 提交于 2019-12-06 07:02:11
I am merely a beginner and still trying to learn about TFS and its continuous integration workflow. Having that said, this could as well be a stupid question to ask as I might be missing on a simple detail, though any help or advice would be highly appreciated. So, I have a fairly simple Unit Test example written using .NET Core 2.0, which I would like to run as a test task on our TFS Server's CI Build pipeline. It pretty much looks something like this: using Microsoft.VisualStudio.TestTools.UnitTesting; namespace MyUnitTest { [TestClass] public class MyUnitTest { [TestMethod] public void

Visual Studio Team Services - Build fails, definition wrong?

穿精又带淫゛_ 提交于 2019-12-06 06:24:54
问题 I've been working on a project for some time now and now I want to use Visual Studio Team Services for it. Locally, the building in Visual Studio doesn't give an error and the application works as intended. I've checked in this working code to VSTS so it's in the repo and good to go. Now I want to build it. I created a new Build definition with nothing changed . When I run the build it fails. I tried editing the build definition but with my 0 experience with this I only screw up more and