tfs

Build/Publish .NET Core 3.x application with TFS 2018 Update 3.2

余生颓废 提交于 2020-06-01 06:53:46
问题 I have an application that uses .NET Core 3.1 but in .NET Core Build and Publish tasks, the dropdown menu offers only 'til 2.x version. How am I supposed to use them or what workaround instead? Simple CLI? Thanks in advance @Patrick .NET Core Task is this right? But how should be that different compared to Restore/Build/Publish that are aldready set up in .NET Core pipeline? If that so, I guess I just need to set the command with my custom publish value: dotnet publish myPath -c release -f

How to update a custom TFS field programmatically

偶尔善良 提交于 2020-05-27 04:06:31
问题 We have a custom build process (not using MS Build) and during that process I am adding a "fake" build to the global builds list. The reason I am doing that is so that you can select the build for a given work item (found in build). We have a custom field, build included, which is intended to show which build that work item was fixed in. I am having trouble figuring out how to update this field programmatically. The idea is I will have a small app that does this that I will call during the

Why does Visual Studio check out the .vspscc file when I add a file to a project?

让人想犯罪 __ 提交于 2020-05-24 21:04:50
问题 If I add a new file to a project under TFS source control, it will check out the project file and the corresponding .vspscc file for that project file. The project file itself changes (to include the new file), but the .vspscc file doesn't change at all. Why bother checking it out? Is there a way to disable it from being checked out and if there is, should I? 回答1: It gets checked out because under certain conditions it will be modified..and thus they checked it out as a matter of default. I

Why does Visual Studio check out the .vspscc file when I add a file to a project?

杀马特。学长 韩版系。学妹 提交于 2020-05-24 21:00:30
问题 If I add a new file to a project under TFS source control, it will check out the project file and the corresponding .vspscc file for that project file. The project file itself changes (to include the new file), but the .vspscc file doesn't change at all. Why bother checking it out? Is there a way to disable it from being checked out and if there is, should I? 回答1: It gets checked out because under certain conditions it will be modified..and thus they checked it out as a matter of default. I

How to create folder with date and time using timestamp with robocopy command [duplicate]

跟風遠走 提交于 2020-05-17 06:54:09
问题 This question already has answers here : How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name? (27 answers) Closed last month . I want to create a folder using this Timestamp: %DATE:/=-%_%TIME::=-% My Robocopy command is : ROBOCOPY "%BUILD_SOURCESDIRECTORY%\sourcefolder\" "\\server\destination\%date:/=-%_%time::=-%" /V but it is not working, getting an error: 2020-04-07T03:53:21.7269608Z ##[error]Process completed with exit code 1.

Azure devops - server-side git hooks

孤街醉人 提交于 2020-05-15 05:56:45
问题 How can we implement server-side hooks, or any similar solution, to restrict git push into git server? For example, we want to disable push of commits containing *.class files. 回答1: I don't think Azure DevOps uses hooks. You can use Branch Policies to make use of an external validation service (as I understand it this uses web hooks). Additional: the status of this User Voice request indicates the above is the official answer. But maybe the simple case would be .gitignore and code reviews?

The item is already under source control at selected location

戏子无情 提交于 2020-05-14 18:20:05
问题 I am desperate, I spend all day with this issue, please how can I add Visual Studio solution to the TFS ? I created total new project named for example PROJECTX and I have solution with the name PROJECTX.sln. I select File > Source Control > Add Solution To Source Control but immediately I get this error I also deleted and recreate the same project in TFS and my solution has not any .vssscc files, therefore I think it wasn't in the TFS before, maybe some other copy but when I deleted the

Azure Devops publishing to own feed suddenly results in 403 forbidden

醉酒当歌 提交于 2020-05-14 15:57:54
问题 I am using azure devops for a project for quite some time but now all of a sudden publishing to my own organisation/collection feed results in a 403. I created a feed and I can select it on the "nuget push" build step but it does not work. I created a new feed to publish the nugets and this works perfectly again. It seems to me like a token ran out but I never created one or used it to authenticate. I also do not want to change my nuget feed to the new one, as I want to use older packages

Azure Devops publishing to own feed suddenly results in 403 forbidden

孤者浪人 提交于 2020-05-14 15:57:28
问题 I am using azure devops for a project for quite some time but now all of a sudden publishing to my own organisation/collection feed results in a 403. I created a feed and I can select it on the "nuget push" build step but it does not work. I created a new feed to publish the nugets and this works perfectly again. It seems to me like a token ran out but I never created one or used it to authenticate. I also do not want to change my nuget feed to the new one, as I want to use older packages

Change identity of a TFS build agent

喜夏-厌秋 提交于 2020-05-12 11:47:07
问题 We have a TFS build agent that runs integration tests. Some of these tests make calls to web services on the Internet. Our network uses a proxy to talk to the Internet. Since the build agent runs under the identity on Network Service and the settings of Network Service are not configured to use the proxy, the tests fail. How do I do one of the following? Change the identity of the build agent to a domain account Configure Network Service to use the proxy 回答1: To change the identity of the