tfsbuild

$(TeamBuildConstants) is blank for TFS builds

元气小坏坏 提交于 2019-12-01 20:42:00
问题 I have a post build event like this: if NOT "$(TeamBuildConstants)"=="_TEAM_BUILD_" "$(SolutionDir)Tools\NuGet.exe" pack "$(ProjectDir)MyAssembly.nuspec" -BasePath "$(ProjectDir)$(OutDir)." if "$(TeamBuildConstants)"=="_TEAM_BUILD_" "$(SolutionDir)Tools\NuGet.exe" pack "$(ProjectDir)MyAssembly.nuspec" -BasePath "$(OutDir)." When I build on in Visual Studio $(TeamBuildConstants) is blank (as it should be). But when I build on my TFS 2010 Server, $(TeamBuildConstants) is still blank. What do I

Is there a single MSBuild and TFSBuild variable that will point to where the binaries are?

試著忘記壹切 提交于 2019-12-01 17:46:37
Is there there a property that can be used in either a Visual Studio build or a TFS build that will always point to where the binaries are? Meaning that when I build in Visual Studio it will point to C:\MySolution\MyProject\bin\Release and in a TFS Build it will point to C:\Build\Path\MySoution\Binaries And if there is not one, why not? This seems like a common, basic need/feature. There is an $OutDir property, which you can use in things like post-build events. In a VS2010 build, it will be a relative path from the current project to the binaries, so it will be "bin\Debug\" for example. (The

Is there a single MSBuild and TFSBuild variable that will point to where the binaries are?

落爺英雄遲暮 提交于 2019-12-01 16:46:23
问题 Is there there a property that can be used in either a Visual Studio build or a TFS build that will always point to where the binaries are? Meaning that when I build in Visual Studio it will point to C:\MySolution\MyProject\bin\Release and in a TFS Build it will point to C:\Build\Path\MySoution\Binaries And if there is not one, why not? This seems like a common, basic need/feature. 回答1: There is an $OutDir property, which you can use in things like post-build events. In a VS2010 build, it

Visual Studio Team Services Release Definition - Task to rename a file?

夙愿已清 提交于 2019-12-01 15:21:25
How can I rename a file in a release definition in Visual Studio Team services? Is there a built-in or marketplace task available or otherwise, how can this be achieved? Answer: Add the "Inline PowerShell" task from the marketplace Enter the following PowerShell code in the text area Param ( [string]$pathToFileToRename ) Rename-Item $pathToFileToRename NewName.txt Enter any required arguments in the arguments text box (you can use environment variables), for example. pathToFileToRename $(System.DefaultWorkingDirectory)/somepath/CurrentName.txt Use the Run Command Line task or do it in a

Where is TFS Build Explorer in Visual Studio 2015?

南笙酒味 提交于 2019-12-01 14:32:59
问题 I am running Visual Studio Enterprise 2015 RTM on Windows 8. In Visual Studio 2013 the Build Explorer was in Team Explorer -> Builds -> Actions -> Manage Queue. That option no longer exists in Visual Studio Enterprise 2015 RTM. 回答1: Unfortunately, that menu option (and a few others) were removed in 2015. The Visual Studio experience has been refocused on the dev showing just the Builds page. We (the tfs build team) expect build admins and those who own definitions to start on the Web and not

Unable to find [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory] even though dll is already in GAC

白昼怎懂夜的黑 提交于 2019-12-01 13:56:53
I am trying to write a PowerShell script, but I'm running into an error. When my script gets to the line $tfs = [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]::GetServer($server) I get the error: Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]... InvalidOperation: (Microsoft.TeamF...onServerFactory:TypeName) [], RuntimeException Though my question is very similar to this question , I already know that the Microsoft.TeamFoundation.Client.dll file and its dependencies are in the GAC. The other question never clarifies that, and I think that might

Testing an WPF app with CodedUI tests, should the coded ui test project share a solution or not?

和自甴很熟 提交于 2019-12-01 13:31:38
First some context; we are developing a large desktop WPF application in .NET 4.5 targeting 64 bit Windows 7 and 8. We are using Visual Studio 2012.2 (soon to be .3 then probably 2013!) and TFS 2012 (again .2 soon to be .3 then 2013). Currently this product is all in a single large solution (just over 50 projects) yielding a WPF exe, a load of dlls and a nice MSI to install it. We use TFS (gated and scheduled) to build the solution, its installer (WiX) and run its tests (SpecFlow for BDD and MSTest unit tests) and this is working very well. I have a separate scheduled TFS build that deploys

Unable to find [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory] even though dll is already in GAC

旧时模样 提交于 2019-12-01 13:24:37
问题 I am trying to write a PowerShell script, but I'm running into an error. When my script gets to the line $tfs = [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]::GetServer($server) I get the error: Unable to find type [Microsoft.TeamFoundation.Client.TeamFoundationServerFactory]... InvalidOperation: (Microsoft.TeamF...onServerFactory:TypeName) [], RuntimeException Though my question is very similar to this question, I already know that the Microsoft.TeamFoundation.Client.dll file

TFS 2015 Visual Studio Build - Package .zip not being created

人盡茶涼 提交于 2019-12-01 12:57:11
I'm trying to build my solution and package up the web app into a web deploy (.zip) package to be deployed. I've added the Visual Studio Build step with the following MSBuild Arguments: /p:DeployOnBuild=True /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:PackageLocation="$(build.artifactstagingdirectory)\" And I've set up the Copy and Publish Build Artifacts step to copy all .zip files to the drop folder. The build completes successfully but nothing is copied to the drop folder because there are no .zip packages that get created. So when I look on the TFS server, the only thing in

TFS build definition not deploying mvc application to IIS

最后都变了- 提交于 2019-12-01 11:30:14
I am attempting to use Visual Studio's Team Explorer and TFS to create a Build Definition to deploy a MVC site to IIS. I followed the Pluralsight tutorial called 'Continuous Deployment with Team Foundation Server 2010'. The steps I followed from the tutorial included: Installed IIS Management Scripts and Tools Installed Management Service On the Management Service I allowed remote connections and enable Windows Credentials Only Installed Web Deploy Created a deployment domain account Allowed domain account permissions to modify IIS file system Set delegation rules using this domain account Set