TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Entries Tagged as 'Team Foundation Build (TF Build)'

Solution for Error CS0246: The type or namespace name `App’ could not be found when building Xamarin.iOS

April 4th, 2016 · 2 Comments · Team Foundation Build (TF Build)

When trying to build an Xamarin iOS solution with TFS Build, you get the following errors/warnings: /Library/Frameworks/Mono.framework/Versions/4.2.3/lib/mono/4.5/Microsoft.Common.targets:  warning : Project reference ‘../HelloWorldApp/HelloWorldApp.csproj’ could not be resolved. AppDelegate.cs(26,33): error CS0246: The type or namespace name `App’ could not be found. Are you missing an assembly reference? How to fix this: Remove references to the project that […]

[Read more →]

Tags:

Q: What are the possible expressions for the “Test Filter criteria” parameter?

February 22nd, 2016 · No Comments · Automated Tests, Team Foundation Build (TF Build), TFS Lab Management

Answer: You can find a good description of the various expressions that you can use for the “Test Filter criteria” parameter at: http://i1.blogs.msdn.com/b/visualstudioalm/archive/2012/09/26/running-selective-unit-tests-in-vs-2012-using-testcasefilter.aspx –Neno

[Read more →]

Tags:

Q: Can I run a second, third, etc. build agent for TFS 2015?

February 17th, 2016 · No Comments · Team Foundation Build (TF Build), TFS 2015

This post applies to the new TFS 2015 Build Agents (not XAML Build Agents). Answer: Yes, you can run multiple agents on the same machine. To install an additional build agent, make sure to download the Agent.zip file from your TFS again (do not just copy the existing Agent folder as it contains configuration) and […]

[Read more →]

Tags:

Getting the compile and test status as environment variables when extending TF Build using scripts

May 20th, 2014 · 1 Comment · Team Foundation Build (TF Build), Tools and Utilities

The Goal When running custom batch or PowerShell scripts as part of TF Build, you want to access the compilation and test result using an environment variable. The Solution When you use the new TfvcTemplate.12.xaml build process template, it’s easy to run additional scripts or tools as part of the build process. There is a […]

[Read more →]

Tags:

Writing the Build Report with Associated Changesets and Work Items to a file as part of the build

May 19th, 2014 · 9 Comments · Team Foundation Build (TF Build), Tools and Utilities

The Goal TFS has a nice Build Reporting, including a list of associated changesets and work items (if any). You might want to have this information saved to a file during a build. The Solution When you use the new TfvcTemplate.12.xaml build process template, it’s easy to run addition scripts or tools as part of […]

[Read more →]

Tags:

Screen Gallery: Upgrading TF Build from 2012 to 2013

May 7th, 2014 · No Comments · 18141, Screen Galleries, Team Foundation Build (TF Build), TFS Installation and Configuration, Visual Studio Online

Here are the screenshots from upgrading a TF Build from 2012 to 2013.2: Good luck! –Neno

[Read more →]

Tags:

When to use the Test Attachments Cleaner (and when not)

March 7th, 2014 · No Comments · 18287, Team Foundation Build (TF Build), TFS Administration

What is the Test Attachment Cleaner? A command line tool that only removes the attachments. It does not touch the test runs, which contain the pass/fail data. So, running Test Attachment Cleaner will not impact the record of the test runs. You need to Test Attachment Cleaner if you: Do manual test runs and want […]

[Read more →]

Tags:

SOLVED: Error ‘(405) Method Not Allowed’ when publishing a NuGet package to a NuGet server

March 6th, 2014 · No Comments · 18335, Team Foundation Build (TF Build)

The Problem When trying to publish NuGet Packages to a NuGet server you get the error message: Failed to process request. ‘Method Not Allowed’. The remote server returned an error: (405) Method Not Allowed. The Solution Found in this post on stackoverflow.com: When you LIST packages in NuGet server you point to http://nugetserver.com/nuget. However when […]

[Read more →]

Tags:

Build fails with missing file: System.Management.Automation.dll

February 14th, 2014 · 1 Comment · Team Foundation Build (TF Build)

The Problem The Build breaks with the following message: Exception Message: Could not load file or assembly ‘System.Management.Automation, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified. (type FileNotFoundException) The Solution Install Windows Management Framework 3.0 on the build server. The Cause You might be using the Community TFS Build Extensions. […]

[Read more →]

Tags:

Build fails to find GraphCmd.exe (Layer Diagram Validation)

February 14th, 2014 · No Comments · Team Foundation Build (TF Build)

The Problem The Build breaks with the following message: Error message: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\ArchitectureTools\Microsoft.VisualStudio.TeamArchitect.LayerDesigner.targets (148): The "GraphCmd" task failed unexpectedly. System.InvalidOperationException: Cannot start process because a file name has not been provided. The Solution There’s a workaround available on Microsoft Connect: Add this xml snippet into all of your Modeling project (*.modelproj) files: <PropertyGroup>     […]

[Read more →]

Tags: