QuestionId
stringlengths
3
8
QuestionTitle
stringlengths
15
149
QuestionScore
int64
1
27.2k
QuestionCreatedUtc
stringdate
2008-08-01 18:33:08
2025-06-16 04:59:48
QuestionBodyHtml
stringlengths
40
28.2k
QuestionViewCount
int64
78
16.5M
QuestionOwnerUserId
float64
4
25.2M
QuestionLastActivityUtc
stringdate
2008-09-08 19:26:01
2026-01-24 22:40:25
AcceptedAnswerId
int64
266
79.7M
AnswerScore
int64
2
30.1k
AnswerCreatedUtc
stringdate
2008-08-01 23:40:28
2025-06-16 05:23:39
AnswerOwnerUserId
float64
1
29.5M
AnswerLastActivityUtc
stringdate
2008-08-01 23:40:28
2026-01-23 17:46:09
QuestionLink
stringlengths
31
36
AnswerLink
stringlengths
31
36
AnswerBodyHtml
stringlengths
35
33k
AnswerBodyPreview
stringlengths
35
400
AllTagIdsCsv
stringlengths
2
37
AllTagNamesCsv
stringlengths
2
106
MergedQuestion
stringlengths
74
28.4k
quality_filter
stringclasses
10 values
unique_id
int64
0
29k
tag_major_lang
stringclasses
10 values
MergedQuestion_md
stringlengths
60
28.1k
AnswerBodyHtml_md
stringlengths
14
29.2k
2230282
Is File.Delete() atomic under .NET
7
2010-02-09 15:43:47
<p>Target OS: Win2003 </p> <p>As posted in other SO questions about file operation atomicity, Win32 was simply not designed for transactions. Still I wonder whether file deletion could be non-atomic. After all, it is either get deleted or not. Or can a file remain in any other intermediate state on NTFS file system ca...
1,494
256,890
2015-07-06 11:36:42
2,230,297
12
2010-02-09 15:46:29
33,708
2010-02-09 15:46:29
https://stackoverflow.com/q/2230282
https://stackoverflow.com/a/2230297
<p>NTFS is a <a href="http://en.wikipedia.org/wiki/Journaling_file_system" rel="noreferrer">journaled file system</a>. A journal is basically equivalent to a transaction log in a database. It'll ensure consistency and integrity of the file system structures like a database does for its tables. While <code>File.Delete</...
<p>NTFS is a <a href="http://en.wikipedia.org/wiki/Journaling_file_system" rel="noreferrer">journaled file system</a>. A journal is basically equivalent to a transaction log in a database. It'll ensure consistency and integrity of the file system structures like a database does for its tables. While <code>File.Delete</...
1, 3176, 5310, 5913, 37510
.net, atomic, delete-file, file, ntfs
<h1>Is File.Delete() atomic under .NET</h1> <p>Target OS: Win2003 </p> <p>As posted in other SO questions about file operation atomicity, Win32 was simply not designed for transactions. Still I wonder whether file deletion could be non-atomic. After all, it is either get deleted or not. Or can a file remain in any oth...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,836
tvfc
# Is File.Delete() atomic under .NET Target OS: Win2003 As posted in other SO questions about file operation atomicity, Win32 was simply not designed for transactions. Still I wonder whether file deletion could be non-atomic. After all, it is either get deleted or not. Or can a file remain in any other intermediate s...
NTFS is a [journaled file system](http://en.wikipedia.org/wiki/Journaling_file_system). A journal is basically equivalent to a transaction log in a database. It'll ensure consistency and integrity of the file system structures like a database does for its tables. While `File.Delete` doesn't have any transactional code ...
16353556
web.config transform at deploy time not build
19
2013-05-03 07:11:43
<p>I'm wanting to know how to perform the following</p> <ul> <li>Build &amp; package an ASP.NET website to the file system</li> <li>Be able to deploy the website to one or more environments. I want to the transforms of config file to happen at the point of deployment, rather than at the point of building. This way my ...
8,851
47,835
2013-05-05 20:04:29
16,354,753
11
2013-05-03 08:42:01
1,054,020
2013-05-05 11:45:40
https://stackoverflow.com/q/16353556
https://stackoverflow.com/a/16354753
<p>You can use the Parameterization feature of web deploy a.k.a MSDeploy. You will need to use a parameters.xml file and a setParameters.xml file to dynamically swap out settings since you are not transforming your package at build time. </p> <p>At deployment time you can pass in any .xml file to set the parameters yo...
<p>You can use the Parameterization feature of web deploy a.k.a MSDeploy. You will need to use a parameters.xml file and a setParameters.xml file to dynamically swap out settings since you are not transforming your package at build time. </p> <p>At deployment time you can pass in any .xml file to set the parameters yo...
96, 265, 733, 25779, 61250
asp.net, msbuild, msdeploy, tfs, webdeploy
<h1>web.config transform at deploy time not build</h1> <p>I'm wanting to know how to perform the following</p> <ul> <li>Build &amp; package an ASP.NET website to the file system</li> <li>Be able to deploy the website to one or more environments. I want to the transforms of config file to happen at the point of deploym...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,838
tvfc
# web.config transform at deploy time not build I'm wanting to know how to perform the following - Build & package an ASP.NET website to the file system - Be able to deploy the website to one or more environments. I want to the transforms of config file to happen at the point of deployment, rather than at the point o...
You can use the Parameterization feature of web deploy a.k.a MSDeploy. You will need to use a parameters.xml file and a setParameters.xml file to dynamically swap out settings since you are not transforming your package at build time. At deployment time you can pass in any .xml file to set the parameters you have spec...
11323867
Why does TFS "Remove Mapping" delete my files?
18
2012-07-04 06:54:16
<p>I wanted to check out an older version of the project in a different folder because I did not want to disturb my modified local content, so I thought I would just remove the mapping and map it to another folder and later map it back.</p> <p>I was shocked to see that it started deleting my files!!! I quickly clicked...
8,110
371,917
2012-07-04 09:24:06
11,324,187
11
2012-07-04 07:18:08
77,120
2012-07-04 07:18:08
https://stackoverflow.com/q/11323867
https://stackoverflow.com/a/11324187
<p>It does it because TFS is useless. You could however use the "TF.exe" command line to get around some of the limitations of the UI.</p> <p>The TF.exe command should be under something like the following, so it's probably worth adding this directory to your path.</p> <blockquote> <p>C:\Program Files (x86)\Micros...
<p>It does it because TFS is useless. You could however use the "TF.exe" command line to get around some of the limitations of the UI.</p> <p>The TF.exe command should be under something like the following, so it's probably worth adding this directory to your path.</p> <blockquote> <p>C:\Program Files (x86)\Micros...
733, 33953
tfs, visual-studio
<h1>Why does TFS "Remove Mapping" delete my files?</h1> <p>I wanted to check out an older version of the project in a different folder because I did not want to disturb my modified local content, so I thought I would just remove the mapping and map it to another folder and later map it back.</p> <p>I was shocked to se...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,839
tvfc
# Why does TFS "Remove Mapping" delete my files? I wanted to check out an older version of the project in a different folder because I did not want to disturb my modified local content, so I thought I would just remove the mapping and map it to another folder and later map it back. I was shocked to see that it starte...
It does it because TFS is useless. You could however use the "TF.exe" command line to get around some of the limitations of the UI. The TF.exe command should be under something like the following, so it's probably worth adding this directory to your path. > C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\I...
4134852
TFS: How to view all files in many changesets?
15
2010-11-09 14:36:53
<p>I have Visual Studio 2008 and TFS.<br> I can click on specific folder in Source Coontrol Explorer and click view history. </p> <p>Then I see list of all changesets. </p> <p>Then I can double click on one change set and see files and folder path that were changed in that changeset (Details for Changeset) </p> ...
14,371
26,817
2019-11-20 07:15:23
4,136,033
11
2010-11-09 16:28:51
345,708
2010-11-09 16:28:51
https://stackoverflow.com/q/4134852
https://stackoverflow.com/a/4136033
<p>You're probably looking for the <code>tf history</code> command:</p> <pre><code>tf history /server:http://tfs:8080 "$/path/to/what/you/want" /recursive /noprompt /format:detailed </code></pre> <p>If you have a lot of changes, you can use <code>/version:</code> to limit, or you can do a <code>/stopafter:xx</code> t...
<p>You're probably looking for the <code>tf history</code> command:</p> <pre><code>tf history /server:http://tfs:8080 "$/path/to/what/you/want" /recursive /noprompt /format:detailed </code></pre> <p>If you have a lot of changes, you can use <code>/version:</code> to limit, or you can do a <code>/stopafter:xx</code> t...
733
tfs
<h1>TFS: How to view all files in many changesets?</h1> <p>I have Visual Studio 2008 and TFS.<br> I can click on specific folder in Source Coontrol Explorer and click view history. </p> <p>Then I see list of all changesets. </p> <p>Then I can double click on one change set and see files and folder path that were c...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,842
tvfc
# TFS: How to view all files in many changesets? I have Visual Studio 2008 and TFS. I can click on specific folder in Source Coontrol Explorer and click view history. Then I see list of all changesets. Then I can double click on one change set and see files and folder path that were changed in that changeset (Deta...
You're probably looking for the `tf history` command: ``` tf history /server:http://tfs:8080 "$/path/to/what/you/want" /recursive /noprompt /format:detailed ``` If you have a lot of changes, you can use `/version:` to limit, or you can do a `/stopafter:xx` to limit the results to only 'xx' entries. The data comes bac...
1630823
TFS and msbuild version number with last changeset
15
2009-10-27 13:33:08
<p>I want to create a build number which looks like Major.minor.Date.LastChangeSetInTFS, the problem is how to get last changeset number from the TFS. Is there any property, or something??</p>
14,934
197,348
2012-05-11 17:18:15
1,632,346
11
2009-10-27 17:18:26
197,348
2011-03-17 20:32:50
https://stackoverflow.com/q/1630823
https://stackoverflow.com/a/1632346
<p>OK finally I've found a solution. Here's a task that will provide you the latest changeset number and create a property to insert it in an Assembly info build number. The main problem was in the missing TfsLibraryLocation property (without it, it should be pointing to libraries in GAC, but it didn't)</p> <pre><code...
<p>OK finally I've found a solution. Here's a task that will provide you the latest changeset number and create a property to insert it in an Assembly info build number. The main problem was in the missing TfsLibraryLocation property (without it, it should be pointing to libraries in GAC, but it didn't)</p> <pre><code...
265, 733, 16341
msbuild, tfs, tfsbuild
<h1>TFS and msbuild version number with last changeset</h1> <p>I want to create a build number which looks like Major.minor.Date.LastChangeSetInTFS, the problem is how to get last changeset number from the TFS. Is there any property, or something??</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,843
tvfc
# TFS and msbuild version number with last changeset I want to create a build number which looks like Major.minor.Date.LastChangeSetInTFS, the problem is how to get last changeset number from the TFS. Is there any property, or something??
OK finally I've found a solution. Here's a task that will provide you the latest changeset number and create a property to insert it in an Assembly info build number. The main problem was in the missing TfsLibraryLocation property (without it, it should be pointing to libraries in GAC, but it didn't) ``` <Target Name=...
2833900
How are developers using source control, I am trying to find the most efficient way to do source control in a small dev environment
13
2010-05-14 11:57:12
<p>I work in a group of 4 .Net developers. We rarely work on the same project at the same time but it does happen from time to time.We use TFS for source control. My most recent example is a project I just placed into production last night that included 2 WCF services and a web application front end. I worked out of...
422
194,227
2010-05-14 15:41:42
2,833,948
11
2010-05-14 12:07:05
265,143
2010-05-14 15:36:33
https://stackoverflow.com/q/2833900
https://stackoverflow.com/a/2833948
<p>It is good practice to have a separate branch for supporting each released version, and another for continuing the development. This way you can always produce bug fix releases for older versions independent of the new features you are working on on the main branch.</p> <p>In the long term, it is better to keep the...
<p>It is good practice to have a separate branch for supporting each released version, and another for continuing the development. This way you can always produce bug fix releases for older versions independent of the new features you are working on on the main branch.</p> <p>In the long term, it is better to keep the...
1, 9, 96, 733
.net, asp.net, c#, tfs
<h1>How are developers using source control, I am trying to find the most efficient way to do source control in a small dev environment</h1> <p>I work in a group of 4 .Net developers. We rarely work on the same project at the same time but it does happen from time to time.We use TFS for source control. My most recent...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,844
tvfc
# How are developers using source control, I am trying to find the most efficient way to do source control in a small dev environment I work in a group of 4 .Net developers. We rarely work on the same project at the same time but it does happen from time to time.We use TFS for source control. My most recent example is...
It is good practice to have a separate branch for supporting each released version, and another for continuing the development. This way you can always produce bug fix releases for older versions independent of the new features you are working on on the main branch. In the long term, it is better to keep the main bran...
213068
Is there a way to make TFS linkable?
12
2008-10-17 17:31:12
<p>I'm a big fan of TFS, but unfortunately they seem to have omitted any sort of method of linking to individual items (be they work items, documents, or files under version control). <a href="http://blogs.msdn.com/buckh/archive/2007/11/30/team-system-web-access-2008-power-tool-is-now-available.aspx" rel="nofollow nor...
4,353
327
2016-02-18 17:06:15
242,492
11
2008-10-28 07:39:22
31,777
2008-10-30 14:11:36
https://stackoverflow.com/q/213068
https://stackoverflow.com/a/242492
<p>We currently use Team System Web Access (TSWA), Visual Studio 2008 Team System (VS2008) and the sharepoint project portal to access our workitems, code, reports, etc. As a general rule, developers mostly use VS2008, while testers, business analysts, project managers, business owners, etc use TSWA. </p> <p>When you ...
<p>We currently use Team System Web Access (TSWA), Visual Studio 2008 Team System (VS2008) and the sharepoint project portal to access our workitems, code, reports, etc. As a general rule, developers mostly use VS2008, while testers, business analysts, project managers, business owners, etc use TSWA. </p> <p>When you ...
733
tfs
<h1>Is there a way to make TFS linkable?</h1> <p>I'm a big fan of TFS, but unfortunately they seem to have omitted any sort of method of linking to individual items (be they work items, documents, or files under version control). <a href="http://blogs.msdn.com/buckh/archive/2007/11/30/team-system-web-access-2008-power...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,845
tvfc
# Is there a way to make TFS linkable? I'm a big fan of TFS, but unfortunately they seem to have omitted any sort of method of linking to individual items (be they work items, documents, or files under version control). [This blog post](http://blogs.msdn.com/buckh/archive/2007/11/30/team-system-web-access-2008-power-t...
We currently use Team System Web Access (TSWA), Visual Studio 2008 Team System (VS2008) and the sharepoint project portal to access our workitems, code, reports, etc. As a general rule, developers mostly use VS2008, while testers, business analysts, project managers, business owners, etc use TSWA. When you say you nee...
14777535
TFS file must remain locked
11
2013-02-08 16:56:58
<p>I have some 3rd party dlls checked into TFS<br> Our machines were renamed and now TFS believes they are checked out for edit by me on another machine.</p> <p>I tried <code>tf lock /lock:none contrib64/* /workspace:oldmachine;myusername</code> but I get the error</p> <p><code>TF10152: The item $/XXX/YYYY/contrib64/...
7,235
10,897
2020-01-14 12:59:03
14,777,963
11
2013-02-08 17:22:01
568,475
2013-02-08 17:22:01
https://stackoverflow.com/q/14777535
https://stackoverflow.com/a/14777963
<p>Undoing the lock won't work on those files because they are binary, as binaries cannot be merged they must be locked if they are checked out. </p> <p>As the machine the workspace resides on no longer exists (the machine has been renamed) the best thing to do is delete the workspace. </p> <p>from a Visual Studio co...
<p>Undoing the lock won't work on those files because they are binary, as binaries cannot be merged they must be locked if they are checked out. </p> <p>As the machine the workspace resides on no longer exists (the machine has been renamed) the best thing to do is delete the workspace. </p> <p>from a Visual Studio co...
733, 104161
tfs, tfvc
<h1>TFS file must remain locked</h1> <p>I have some 3rd party dlls checked into TFS<br> Our machines were renamed and now TFS believes they are checked out for edit by me on another machine.</p> <p>I tried <code>tf lock /lock:none contrib64/* /workspace:oldmachine;myusername</code> but I get the error</p> <p><code>TF...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,846
tvfc
# TFS file must remain locked I have some 3rd party dlls checked into TFS Our machines were renamed and now TFS believes they are checked out for edit by me on another machine. I tried `tf lock /lock:none contrib64/* /workspace:oldmachine;myusername` but I get the error `TF10152: The item $/XXX/YYYY/contrib64/thir...
Undoing the lock won't work on those files because they are binary, as binaries cannot be merged they must be locked if they are checked out. As the machine the workspace resides on no longer exists (the machine has been renamed) the best thing to do is delete the workspace. from a Visual Studio command prompt `tf w...
27317863
Why doesn't my .tfignore file ignore my packages folder
10
2014-12-05 14:17:04
<p>I am using Visual Studio 2013 Pro and Team Foundation Server 2013. I have a .tfignore file with the following lines:</p> <pre><code>\packages \&lt;project name&gt;\Bin !\&lt;project name&gt;\Bin\*.refresh </code></pre> <p>Line 1 is not working but lines 2 and 3 are. The project name above is a website inside a s...
6,831
2,461,516
2019-06-04 20:34:37
27,359,688
11
2014-12-08 14:03:10
781,754
2014-12-08 14:03:10
https://stackoverflow.com/q/27317863
https://stackoverflow.com/a/27359688
<p>You can control this in <code>NuGet.config</code>. </p> <p>Make sure the key "disableSourceControlIntegration" exists and is set to "true":</p> <pre><code>&lt;solution&gt; &lt;add key="disableSourceControlIntegration" value="true" /&gt; &lt;/solution&gt; </code></pre> <p>References: <a href="http://docs.nuget...
<p>You can control this in <code>NuGet.config</code>. </p> <p>Make sure the key "disableSourceControlIntegration" exists and is set to "true":</p> <pre><code>&lt;solution&gt; &lt;add key="disableSourceControlIntegration" value="true" /&gt; &lt;/solution&gt; </code></pre> <p>References: <a href="http://docs.nuget...
96, 733, 93364, 100678
asp.net, tfignore, tfs, visual-studio-2013
<h1>Why doesn't my .tfignore file ignore my packages folder</h1> <p>I am using Visual Studio 2013 Pro and Team Foundation Server 2013. I have a .tfignore file with the following lines:</p> <pre><code>\packages \&lt;project name&gt;\Bin !\&lt;project name&gt;\Bin\*.refresh </code></pre> <p>Line 1 is not working but l...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,847
tvfc
# Why doesn't my .tfignore file ignore my packages folder I am using Visual Studio 2013 Pro and Team Foundation Server 2013. I have a .tfignore file with the following lines: ``` \packages \<project name>\Bin !\<project name>\Bin\*.refresh ``` Line 1 is not working but lines 2 and 3 are. The project name above is a ...
You can control this in `NuGet.config`. Make sure the key "disableSourceControlIntegration" exists and is set to "true": ``` <solution> <add key="disableSourceControlIntegration" value="true" /> </solution> ``` References: <http://docs.nuget.org/docs/Reference/Package-Restore> <http://docs.nuget.org/docs/Referen...
12751684
How do I determine the degree in which a file is fragmented?
10
2012-10-05 18:03:35
<p>I would like to provide a way to recognize when a large file is fragmented to a certain extent, and alert the user when they should perform a defragmentation. In addition, I'd like to show them a visual display demonstrating how the file is actually broken into pieces across the disk.</p> <p>I don't need to know ho...
788
988,445
2012-10-09 03:02:33
12,754,560
11
2012-10-05 21:54:44
91,299
2012-10-05 21:54:44
https://stackoverflow.com/q/12751684
https://stackoverflow.com/a/12754560
<p>You can use the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363216%28v=vs.85%29.aspx" rel="noreferrer"><code>DeviceIoControl</code></a> function with the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa364572%28v=vs.85%29.aspx" rel="noreferrer"><code>FSCTL_GET_RETRIEVAL_POIN...
<p>You can use the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363216%28v=vs.85%29.aspx" rel="noreferrer"><code>DeviceIoControl</code></a> function with the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa364572%28v=vs.85%29.aspx" rel="noreferrer"><code>FSCTL_GET_RETRIEVAL_POIN...
64, 99, 889, 3176
filesystems, ntfs, winapi, windows
<h1>How do I determine the degree in which a file is fragmented?</h1> <p>I would like to provide a way to recognize when a large file is fragmented to a certain extent, and alert the user when they should perform a defragmentation. In addition, I'd like to show them a visual display demonstrating how the file is actual...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,849
tvfc
# How do I determine the degree in which a file is fragmented? I would like to provide a way to recognize when a large file is fragmented to a certain extent, and alert the user when they should perform a defragmentation. In addition, I'd like to show them a visual display demonstrating how the file is actually broken...
You can use the [`DeviceIoControl`](http://msdn.microsoft.com/en-us/library/windows/desktop/aa363216%28v=vs.85%29.aspx) function with the [`FSCTL_GET_RETRIEVAL_POINTERS`](http://msdn.microsoft.com/en-us/library/windows/desktop/aa364572%28v=vs.85%29.aspx) control code. > The FSCTL_GET_RETRIEVAL_POINTERS operation retri...
12102575
TFS build failing. Unresolved references to files that are in source control
10
2012-08-24 02:48:20
<p>I have a build that works fine locally, however, will not build within our TFS environment.</p> <p>I get the following error;</p> <blockquote> <p>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1578): Could not resolve this reference. Could not locate the assembly "Assembly.Services...
15,917
812,115
2012-08-24 09:54:39
12,107,079
11
2012-08-24 09:54:39
728,929
2012-08-24 09:54:39
https://stackoverflow.com/q/12102575
https://stackoverflow.com/a/12107079
<p>This could be an issue on how the working folders are set up in your build definition (under Workspace).<br><br>If I understood your path-scheme correctly, setting the paths as follows should work:<br></p> <pre><code>Active |$/TeamProject/Root/BaseBinRefs/ |$(SourceDir)\Root\BaseBinRefs Active |$...
<p>This could be an issue on how the working folders are set up in your build definition (under Workspace).<br><br>If I understood your path-scheme correctly, setting the paths as follows should work:<br></p> <pre><code>Active |$/TeamProject/Root/BaseBinRefs/ |$(SourceDir)\Root\BaseBinRefs Active |$...
9, 733, 5647, 14456
build, c#, tfs, visual-studio-2010
<h1>TFS build failing. Unresolved references to files that are in source control</h1> <p>I have a build that works fine locally, however, will not build within our TFS environment.</p> <p>I get the following error;</p> <blockquote> <p>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1578)...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,850
tvfc
# TFS build failing. Unresolved references to files that are in source control I have a build that works fine locally, however, will not build within our TFS environment. I get the following error; > C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets > (1578): Could not resolve this reference. ...
This could be an issue on how the working folders are set up in your build definition (under Workspace). If I understood your path-scheme correctly, setting the paths as follows should work: ``` Active |$/TeamProject/Root/BaseBinRefs/ |$(SourceDir)\Root\BaseBinRefs Active |$/TeamProject/Root/Se...
7451861
Setting NTFS permissions in C#.NET
10
2011-09-17 01:27:12
<p>How do I set NTFS permissions in C#.NET? I am trying to change permissions for read/write in .NET. I'm a newbie, please assist!</p>
7,788
949,763
2017-03-16 07:01:59
7,451,873
11
2011-09-17 01:30:03
937,222
2017-03-16 07:01:59
https://stackoverflow.com/q/7451861
https://stackoverflow.com/a/7451873
<p>you should be able to do it with System.Security.AccessControl name space.</p> <pre><code>System.Security.AccessControl; public static void AddDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType) { // Create a new DirectoryInfo object. DirectoryIn...
<p>you should be able to do it with System.Security.AccessControl name space.</p> <pre><code>System.Security.AccessControl; public static void AddDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType) { // Create a new DirectoryInfo object. DirectoryIn...
1, 9, 359, 3176
.net, c#, ntfs, permissions
<h1>Setting NTFS permissions in C#.NET</h1> <p>How do I set NTFS permissions in C#.NET? I am trying to change permissions for read/write in .NET. I'm a newbie, please assist!</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,851
tvfc
# Setting NTFS permissions in C#.NET How do I set NTFS permissions in C#.NET? I am trying to change permissions for read/write in .NET. I'm a newbie, please assist!
you should be able to do it with System.Security.AccessControl name space. ``` System.Security.AccessControl; public static void AddDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType) { // Create a new DirectoryInfo object. DirectoryInfo dInfo = new ...
29356229
TFS Can't Restore NuGet Package
9
2015-03-30 21:02:27
<p>I've got TFS doing some continuous integration builds. Today, it broke for one solution. It seems it can't find AutoMapper. All the other packages can be found just fine.</p> <p>A couple relevant points:</p> <ul> <li>None of the packages are in source control, we're letting TFS restore them. </li> <li>We have an i...
9,522
2,045,257
2018-02-23 12:12:11
29,857,909
11
2015-04-24 21:35:43
1,464,820
2015-05-31 20:35:25
https://stackoverflow.com/q/29356229
https://stackoverflow.com/a/29857909
<p>I've seen this too. It seems to be triggered as soon as NuGet package restore switches to the internal feed. Once it does this is doesn't switch back to the official nuget.org feed and continues to look for the packages on the internal feed. </p> <p>Ensure both package sources are added to your NuGet.config file. A...
<p>I've seen this too. It seems to be triggered as soon as NuGet package restore switches to the internal feed. Once it does this is doesn't switch back to the official nuget.org feed and continues to look for the packages on the internal feed. </p> <p>Ensure both package sources are added to your NuGet.config file. A...
733, 16341, 62770, 95729
nuget, nuget-package-restore, tfs, tfsbuild
<h1>TFS Can't Restore NuGet Package</h1> <p>I've got TFS doing some continuous integration builds. Today, it broke for one solution. It seems it can't find AutoMapper. All the other packages can be found just fine.</p> <p>A couple relevant points:</p> <ul> <li>None of the packages are in source control, we're letting...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,852
tvfc
# TFS Can't Restore NuGet Package I've got TFS doing some continuous integration builds. Today, it broke for one solution. It seems it can't find AutoMapper. All the other packages can be found just fine. A couple relevant points: - None of the packages are in source control, we're letting TFS restore them. - We hav...
I've seen this too. It seems to be triggered as soon as NuGet package restore switches to the internal feed. Once it does this is doesn't switch back to the official nuget.org feed and continues to look for the packages on the internal feed. Ensure both package sources are added to your NuGet.config file. Also ensure ...
10028874
Getting Unbound Solution from TFS
9
2012-04-05 12:46:08
<p>I have an open source project that I want to package into a .zip file containing the binaries and the source. The project is hosted on CodePlex and uses TFS as the source control. I am not sure how to export the project to remove all source control bindings. That way people can easily open the solution locally witho...
7,403
984,335
2015-07-13 01:47:05
15,134,492
11
2013-02-28 11:33:58
1,039
2013-02-28 11:33:58
https://stackoverflow.com/q/10028874
https://stackoverflow.com/a/15134492
<p><a href="http://d4nt.com/cleaning-source-control-bindings-from-source-code-with-powershell/">This blog post</a> contains the following powershell script which can be run on your source control folder and will remove the source control bindings from the files:</p> <pre><code># Remove unnecessary files get-childite...
<p><a href="http://d4nt.com/cleaning-source-control-bindings-from-source-code-with-powershell/">This blog post</a> contains the following powershell script which can be run on your source control folder and will remove the source control bindings from the files:</p> <pre><code># Remove unnecessary files get-childite...
733, 4167, 33315
export, tfs, unbind
<h1>Getting Unbound Solution from TFS</h1> <p>I have an open source project that I want to package into a .zip file containing the binaries and the source. The project is hosted on CodePlex and uses TFS as the source control. I am not sure how to export the project to remove all source control bindings. That way people...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,853
tvfc
# Getting Unbound Solution from TFS I have an open source project that I want to package into a .zip file containing the binaries and the source. The project is hosted on CodePlex and uses TFS as the source control. I am not sure how to export the project to remove all source control bindings. That way people can easi...
[This blog post](http://d4nt.com/cleaning-source-control-bindings-from-source-code-with-powershell/) contains the following powershell script which can be run on your source control folder and will remove the source control bindings from the files: ``` # Remove unnecessary files get-childitem . -include *.vssscc,*.u...
56315162
Can I see the backlog as a treeview when filtering out done items on Azure Boards?
8
2019-05-26 16:01:57
<p>I'm using the <a href="https://learn.microsoft.com/en-gb/azure/devops/boards/work-items/guidance/choose-process?view=azure-devops" rel="noreferrer">basic work item process</a> in Azure DevOps.</p> <p>If I look at my backlog without any filters, then it shows me a hierarchy, with epics as the top-level items, then i...
5,976
706,346
2019-05-27 09:59:30
56,316,640
11
2019-05-26 19:15:08
736,079
2019-05-27 09:59:30
https://stackoverflow.com/q/56315162
https://stackoverflow.com/a/56316640
<p>Go to the Work Item Query tab and create a work item query. Configure it to Tree view and let it follow the parent/child relation.</p> <p><a href="https://i.sstatic.net/T4a7N.png" rel="noreferrer"><img src="https://i.sstatic.net/T4a7N.png" alt="enter image description here"></a></p> <p><a href="https://i.sstatic.n...
<p>Go to the Work Item Query tab and create a work item query. Configure it to Tree view and let it follow the parent/child relation.</p> <p><a href="https://i.sstatic.net/T4a7N.png" rel="noreferrer"><img src="https://i.sstatic.net/T4a7N.png" alt="enter image description here"></a></p> <p><a href="https://i.sstatic.n...
56585, 116537, 137309
azure-boards, azure-devops, tfs-workitem
<h1>Can I see the backlog as a treeview when filtering out done items on Azure Boards?</h1> <p>I'm using the <a href="https://learn.microsoft.com/en-gb/azure/devops/boards/work-items/guidance/choose-process?view=azure-devops" rel="noreferrer">basic work item process</a> in Azure DevOps.</p> <p>If I look at my backlog ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,854
tvfc
# Can I see the backlog as a treeview when filtering out done items on Azure Boards? I'm using the [basic work item process](https://learn.microsoft.com/en-gb/azure/devops/boards/work-items/guidance/choose-process?view=azure-devops) in Azure DevOps. If I look at my backlog without any filters, then it shows me a hier...
Go to the Work Item Query tab and create a work item query. Configure it to Tree view and let it follow the parent/child relation. [![enter image description here](https://i.sstatic.net/T4a7N.png)](https://i.sstatic.net/T4a7N.png) [![enter image description here](https://i.sstatic.net/aw8ei.png)](https://i.sstatic.ne...
17611093
Is the ReplaceFile Windows API a convenience function only?
8
2013-07-12 08:55:57
<p>Is the <a href="http://msdn.microsoft.com/en-us/library/aa365512%28v=vs.85%29.aspx" rel="nofollow noreferrer"><code>ReplaceFile</code></a> Windows API a convenience function only, or does it achieve anything beyond what could be coded using multiple calls to <a href="http://msdn.microsoft.com/en-us/library/windows/d...
3,459
321,013
2019-06-14 10:28:27
17,612,505
11
2013-07-12 10:09:44
505,088
2013-07-13 05:41:54
https://stackoverflow.com/q/17611093
https://stackoverflow.com/a/17612505
<p>I think the key to this can be found in this line from the documentation (my emphasis):</p> <blockquote> <p>The replacement file assumes the name of the replaced file and its <strong>identity</strong>.</p> </blockquote> <p>When you use <code>MoveFileEx</code>, the replacement file has a different identity. Its c...
<p>I think the key to this can be found in this line from the documentation (my emphasis):</p> <blockquote> <p>The replacement file assumes the name of the replaced file and its <strong>identity</strong>.</p> </blockquote> <p>When you use <code>MoveFileEx</code>, the replacement file has a different identity. Its c...
724, 889, 3176, 32770, 34469
file-io, movefileex, ntfs, visual-c++, winapi
<h1>Is the ReplaceFile Windows API a convenience function only?</h1> <p>Is the <a href="http://msdn.microsoft.com/en-us/library/aa365512%28v=vs.85%29.aspx" rel="nofollow noreferrer"><code>ReplaceFile</code></a> Windows API a convenience function only, or does it achieve anything beyond what could be coded using multipl...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,855
tvfc
# Is the ReplaceFile Windows API a convenience function only? Is the [`ReplaceFile`](http://msdn.microsoft.com/en-us/library/aa365512%28v=vs.85%29.aspx) Windows API a convenience function only, or does it achieve anything beyond what could be coded using multiple calls to [`MoveFileEx`](http://msdn.microsoft.com/en-us...
I think the key to this can be found in this line from the documentation (my emphasis): > The replacement file assumes the name of the replaced file and its **identity**. When you use `MoveFileEx`, the replacement file has a different identity. Its creation date is not preserved, the creator is not preserved, any ACL...
14260540
Team Build ignores MSBuild arguments
8
2013-01-10 14:48:09
<p>I have created a new team build definition. On every checkin, the build happens on a TFS server (another build controller). After the build completes, I want to publish the files. The MSBuild input arguments used are <code>/p:DeployOnBuild=true;PublishProfile=QADeploy</code>. <code>QADeploy</code> is the publishing ...
4,238
558,972
2013-01-20 16:56:47
14,426,848
11
2013-01-20 16:56:47
558,972
2013-01-20 16:56:47
https://stackoverflow.com/q/14260540
https://stackoverflow.com/a/14426848
<p>Weird, but adding the Visual Studio Version resolved the problem:</p> <pre><code>/p:DeployOnBuild=true /p:PublishProfile=QADeploy /p:VisualStudioVersion=11.0 </code></pre>
<p>Weird, but adding the Visual Studio Version resolved the problem:</p> <pre><code>/p:DeployOnBuild=true /p:PublishProfile=QADeploy /p:VisualStudioVersion=11.0 </code></pre>
733, 5647
build, tfs
<h1>Team Build ignores MSBuild arguments</h1> <p>I have created a new team build definition. On every checkin, the build happens on a TFS server (another build controller). After the build completes, I want to publish the files. The MSBuild input arguments used are <code>/p:DeployOnBuild=true;PublishProfile=QADeploy</c...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,856
tvfc
# Team Build ignores MSBuild arguments I have created a new team build definition. On every checkin, the build happens on a TFS server (another build controller). After the build completes, I want to publish the files. The MSBuild input arguments used are `/p:DeployOnBuild=true;PublishProfile=QADeploy`. `QADeploy` is ...
Weird, but adding the Visual Studio Version resolved the problem: ``` /p:DeployOnBuild=true /p:PublishProfile=QADeploy /p:VisualStudioVersion=11.0 ```
4920677
TFS 2008 Source Control - Quick way to destroy all deleted items
8
2011-02-07 11:21:13
<p>I have a bunch of source control folders for which I want to get rid of all items that are no longer required. These items have been deleted (code has been moved or rewritten) and, because most of us use the 'Show Deleted Items' option by default some of these folders now show more deleted items and folders and leg...
2,573
157,701
2017-04-18 19:48:46
4,923,740
11
2011-02-07 16:32:44
157,701
2012-05-08 16:17:47
https://stackoverflow.com/q/4920677
https://stackoverflow.com/a/4923740
<p>Okay so I wrote a console app (.Net 4):</p> <p><strong><em>IT GOES WITHOUT SAYING I OFFER NO WARRANTY ABOUT THIS - IT WILL DESTROY ITEMS IN TFS!!!!</em></strong></p> <p><strong><em>Update (8th May 2012) If you run this on a folder that has masses and masses (I mean thousands or tens-of-thousands) of deleted items...
<p>Okay so I wrote a console app (.Net 4):</p> <p><strong><em>IT GOES WITHOUT SAYING I OFFER NO WARRANTY ABOUT THIS - IT WILL DESTROY ITEMS IN TFS!!!!</em></strong></p> <p><strong><em>Update (8th May 2012) If you run this on a folder that has masses and masses (I mean thousands or tens-of-thousands) of deleted items...
1, 9, 456, 733, 32472
.net, c#, tfs, version-control, visual-studio-2008
<h1>TFS 2008 Source Control - Quick way to destroy all deleted items</h1> <p>I have a bunch of source control folders for which I want to get rid of all items that are no longer required. These items have been deleted (code has been moved or rewritten) and, because most of us use the 'Show Deleted Items' option by def...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,857
tvfc
# TFS 2008 Source Control - Quick way to destroy all deleted items I have a bunch of source control folders for which I want to get rid of all items that are no longer required. These items have been deleted (code has been moved or rewritten) and, because most of us use the 'Show Deleted Items' option by default some ...
Okay so I wrote a console app (.Net 4): ***IT GOES WITHOUT SAYING I OFFER NO WARRANTY ABOUT THIS - IT WILL DESTROY ITEMS IN TFS!!!!*** ***Update (8th May 2012) If you run this on a folder that has masses and masses (I mean thousands or tens-of-thousands) of deleted items it might not complete before the TFS command-l...
3882797
Ignore certain file from pending changes
8
2010-10-07 14:40:06
<p>Here is my problem. I have a certain files from the solution (let's say Web.config) that I've changed and will never want to check-in since the changes are referring to my machine only. Is there a way to say in TFS to ignore changes in a certain file and remove it from pending changes window. Of course, I can skip t...
8,152
266,159
2016-07-21 15:57:12
3,883,663
11
2010-10-07 16:18:32
67,392
2010-10-07 16:18:32
https://stackoverflow.com/q/3882797
https://stackoverflow.com/a/3883663
<p>Some parts of <code>{app,web}.config</code> files can be delegated to another file. Notably <code>&lt;connectionStrings&gt;</code>.</p> <p>In your <code>app.config</code> or <code>web.config</code>:</p> <pre><code>&lt;connectionStrings configSource="LocalConnectionStrings.config" /&gt; </code></pre> <p>in <code>L...
<p>Some parts of <code>{app,web}.config</code> files can be delegated to another file. Notably <code>&lt;connectionStrings&gt;</code>.</p> <p>In your <code>app.config</code> or <code>web.config</code>:</p> <pre><code>&lt;connectionStrings configSource="LocalConnectionStrings.config" /&gt; </code></pre> <p>in <code>L...
1, 733, 14456
.net, tfs, visual-studio-2010
<h1>Ignore certain file from pending changes</h1> <p>Here is my problem. I have a certain files from the solution (let's say Web.config) that I've changed and will never want to check-in since the changes are referring to my machine only. Is there a way to say in TFS to ignore changes in a certain file and remove it fr...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,858
tvfc
# Ignore certain file from pending changes Here is my problem. I have a certain files from the solution (let's say Web.config) that I've changed and will never want to check-in since the changes are referring to my machine only. Is there a way to say in TFS to ignore changes in a certain file and remove it from pendin...
Some parts of `{app,web}.config` files can be delegated to another file. Notably `<connectionStrings>`. In your `app.config` or `web.config`: ``` <connectionStrings configSource="LocalConnectionStrings.config" /> ``` in `LocalConnectionStrings.config` have (`<connectionStrings>` is the root element): ``` <connectio...
51850966
Dotnet test task fails with ''MSB1008: Only one project can be specified" error after upgrade to version 2.0
7
2018-08-14 23:23:26
<p>The TFS instance I am working on was recently upgraded from TFS 2017 Update 1 to TFS 2018 Update 2, allowing me to change the dotnet task version used in my build definitions from 0.* to 2.*.</p> <p>In doing so, the dotnet test step no longer works, returning the following error:</p> <pre><code>MSBUILD : error MSB...
7,887
2,641,278
2023-07-03 13:00:34
51,850,967
11
2018-08-14 23:23:26
2,641,278
2018-08-14 23:23:26
https://stackoverflow.com/q/51850966
https://stackoverflow.com/a/51850967
<p>The problem is caused by <code>--logger trx</code> being specified in the Arguments to the task. The newer versions of the task automatically adds this switch when executing the <code>dotnet test</code> command as its the output which TFS supports for reading test results. The extra argument results in the switch be...
<p>The problem is caused by <code>--logger trx</code> being specified in the Arguments to the task. The newer versions of the task automatically adds this switch when executing the <code>dotnet test</code> command as its the output which TFS supports for reading test results. The extra argument results in the switch be...
733, 16341, 117274
asp.net-core, tfs, tfsbuild
<h1>Dotnet test task fails with ''MSB1008: Only one project can be specified" error after upgrade to version 2.0</h1> <p>The TFS instance I am working on was recently upgraded from TFS 2017 Update 1 to TFS 2018 Update 2, allowing me to change the dotnet task version used in my build definitions from 0.* to 2.*.</p> <p...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,860
tvfc
# Dotnet test task fails with ''MSB1008: Only one project can be specified" error after upgrade to version 2.0 The TFS instance I am working on was recently upgraded from TFS 2017 Update 1 to TFS 2018 Update 2, allowing me to change the dotnet task version used in my build definitions from 0.* to 2.*. In doing so, th...
The problem is caused by `--logger trx` being specified in the Arguments to the task. The newer versions of the task automatically adds this switch when executing the `dotnet test` command as its the output which TFS supports for reading test results. The extra argument results in the switch being given twice, so whils...
20084650
TFS WorkItemStore throws COMException in ASP.NET MVC app when using Authentication
7
2013-11-19 23:47:48
<p>I'm completely stumped by this and endless google/stackoverflow searches haven't helped. I'm using the 2012 Visual Studio SDK to connect to TFS 2012 and query the work item store. The code below works perfectly fine in both a console application and an ASP.NET MVC app that does <em>not</em> use authentication, or in...
3,102
300,212
2014-11-11 14:46:29
20,126,523
11
2013-11-21 16:28:04
300,212
2013-11-21 16:28:04
https://stackoverflow.com/q/20084650
https://stackoverflow.com/a/20126523
<p>The solution was to change the identity of the application's AppPool to either a domain account or to <code>LocalSystem</code>. </p> <p>I can't say I fully understand what is going on behind the scenes here, but it seems there was some kind of conflict between the authenticated identity of the user browsing the sit...
<p>The solution was to change the identity of the application's AppPool to either a domain account or to <code>LocalSystem</code>. </p> <p>I can't say I fully understand what is going on behind the scenes here, but it seems there was some kind of conflict between the authenticated identity of the user browsing the sit...
9, 183, 470, 32354
asp.net-mvc, authentication, c#, tfs-sdk
<h1>TFS WorkItemStore throws COMException in ASP.NET MVC app when using Authentication</h1> <p>I'm completely stumped by this and endless google/stackoverflow searches haven't helped. I'm using the 2012 Visual Studio SDK to connect to TFS 2012 and query the work item store. The code below works perfectly fine in both a...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,861
tvfc
# TFS WorkItemStore throws COMException in ASP.NET MVC app when using Authentication I'm completely stumped by this and endless google/stackoverflow searches haven't helped. I'm using the 2012 Visual Studio SDK to connect to TFS 2012 and query the work item store. The code below works perfectly fine in both a console ...
The solution was to change the identity of the application's AppPool to either a domain account or to `LocalSystem`. I can't say I fully understand what is going on behind the scenes here, but it seems there was some kind of conflict between the authenticated identity of the user browsing the site and the AppPool iden...
15389349
I made a mistake in my source control mapping. How do I correct it?
7
2013-03-13 15:21:06
<p>I created a team project, say ProjectA When I mapped it to my local folder, I found that the root server folder: ProjectA folder is not mapped. However the ProjectA folder within that IS mapped to the project. This is a problem as the BuildProcessTemplate is not included in source control and I cannot build my appli...
5,981
125,673
2013-03-13 22:54:46
15,398,097
11
2013-03-13 22:54:46
2,062,199
2013-03-13 22:54:46
https://stackoverflow.com/q/15389349
https://stackoverflow.com/a/15398097
<p>On the source control explorer window in visual studio there is a drop down near the top for workspaces. When you originally mapped that folder, it created a workspace for you. If you want to change the mappings, it can be done by clicking the drop down and selecting the <code>Workspaces...</code> option. You can se...
<p>On the source control explorer window in visual studio there is a drop down near the top for workspaces. When you originally mapped that folder, it created a workspace for you. If you want to change the mappings, it can be done by clicking the drop down and selecting the <code>Workspaces...</code> option. You can se...
733
tfs
<h1>I made a mistake in my source control mapping. How do I correct it?</h1> <p>I created a team project, say ProjectA When I mapped it to my local folder, I found that the root server folder: ProjectA folder is not mapped. However the ProjectA folder within that IS mapped to the project. This is a problem as the Build...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,862
tvfc
# I made a mistake in my source control mapping. How do I correct it? I created a team project, say ProjectA When I mapped it to my local folder, I found that the root server folder: ProjectA folder is not mapped. However the ProjectA folder within that IS mapped to the project. This is a problem as the BuildProcessTe...
On the source control explorer window in visual studio there is a drop down near the top for workspaces. When you originally mapped that folder, it created a workspace for you. If you want to change the mappings, it can be done by clicking the drop down and selecting the `Workspaces...` option. You can select your work...
8914375
How can I regain access to my Team Foundation Server Workspace?
7
2012-01-18 17:17:49
<p>I restarted IIS on our TFS server, and ever since then I haven't been able to access my workspace.</p> <p>Regardless of what I do, it continually creates a workspace owned by a service account, and not my corporate account.</p> <p>A couple days ago I had opened SSMS 2008 with "Run as different user" and used that ...
8,612
186,643
2012-01-18 20:42:13
8,915,381
11
2012-01-18 18:30:17
729,881
2012-01-18 20:42:13
https://stackoverflow.com/q/8914375
https://stackoverflow.com/a/8915381
<p>You can change the owner of a workspace using the <code>/newowner</code> flag to the <code>tf workspace</code> command. For example:</p> <pre><code>tf workspace /collection:http://server:8080/DefaultCollection workspaceName;oldOwner /newowner:newOwner </code></pre> <p>This should work as a stopgap measure to allo...
<p>You can change the owner of a workspace using the <code>/newowner</code> flag to the <code>tf workspace</code> command. For example:</p> <pre><code>tf workspace /collection:http://server:8080/DefaultCollection workspaceName;oldOwner /newowner:newOwner </code></pre> <p>This should work as a stopgap measure to allo...
422, 733, 14456, 33953
tfs, visual-studio, visual-studio-2010, workspace
<h1>How can I regain access to my Team Foundation Server Workspace?</h1> <p>I restarted IIS on our TFS server, and ever since then I haven't been able to access my workspace.</p> <p>Regardless of what I do, it continually creates a workspace owned by a service account, and not my corporate account.</p> <p>A couple da...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,863
tvfc
# How can I regain access to my Team Foundation Server Workspace? I restarted IIS on our TFS server, and ever since then I haven't been able to access my workspace. Regardless of what I do, it continually creates a workspace owned by a service account, and not my corporate account. A couple days ago I had opened SSM...
You can change the owner of a workspace using the `/newowner` flag to the `tf workspace` command. For example: ``` tf workspace /collection:http://server:8080/DefaultCollection workspaceName;oldOwner /newowner:newOwner ``` This should work as a stopgap measure to allow your old workspace to be owned by the service ac...
53898795
Visual Studio - How to search in pending changes files?
6
2018-12-22 19:41:33
<p>I've made plenty of changes in my solution, using TFS, and I want to search for something only in the files which I edited (which appear in the &quot;Pending Changes&quot;).</p> <p>There is only an option to search in specific directories of the solution but not in the edited files.</p> <p>Maybe there is some extens...
2,300
3,281,522
2022-01-18 02:54:48
54,213,341
11
2019-01-16 08:53:58
7,979,211
2019-01-16 08:59:27
https://stackoverflow.com/q/53898795
https://stackoverflow.com/a/54213341
<p>Press <code>ctrl + shift + f</code> In <code>Result options</code>, select <code>Find results Table</code></p> <p><a href="https://i.sstatic.net/2AIKq.png" rel="noreferrer"><img src="https://i.sstatic.net/2AIKq.png" alt="enter image description here"></a></p> <p>Press find all and then, in the find window filter ...
<p>Press <code>ctrl + shift + f</code> In <code>Result options</code>, select <code>Find results Table</code></p> <p><a href="https://i.sstatic.net/2AIKq.png" rel="noreferrer"><img src="https://i.sstatic.net/2AIKq.png" alt="enter image description here"></a></p> <p>Press find all and then, in the find window filter ...
456, 733, 21909, 33953, 108143
file-search, tfs, version-control, visual-studio, visual-studio-2015
<h1>Visual Studio - How to search in pending changes files?</h1> <p>I've made plenty of changes in my solution, using TFS, and I want to search for something only in the files which I edited (which appear in the &quot;Pending Changes&quot;).</p> <p>There is only an option to search in specific directories of the soluti...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,864
tvfc
# Visual Studio - How to search in pending changes files? I've made plenty of changes in my solution, using TFS, and I want to search for something only in the files which I edited (which appear in the "Pending Changes"). There is only an option to search in specific directories of the solution but not in the edited ...
Press `ctrl + shift + f` In `Result options`, select `Find results Table` [![enter image description here](https://i.sstatic.net/2AIKq.png)](https://i.sstatic.net/2AIKq.png) Press find all and then, in the find window filter by select `Changed Documents`. [![enter image description here](https://i.sstatic.net/9uszp.p...
48175492
Using VsConnection WorkItemTrackingHttpClient patch to add parent relation via VSTS client API
6
2018-01-09 19:36:27
<p>I am trying to programmatically add a parent-child relationship between two work items. I am using the Microsoft Team Foundation and Visual Studio Services libraries to export and import TFS 2015 and VSTS backlog objects. </p> <p><a href="https://learn.microsoft.com/en-us/vsts/integrate/concepts/dotnet-client-libra...
5,812
4,848,306
2023-08-30 04:05:02
48,181,374
11
2018-01-10 06:19:16
6,587,650
2023-08-30 04:05:02
https://stackoverflow.com/q/48175492
https://stackoverflow.com/a/48181374
<p>Refer to this code to create task work item with parent link (Update it to meet your requirement):</p> <pre><code>var url = new Uri(&quot;https://XXX.visualstudio.com&quot;); var connection = new VssConnection(url, new VssClientCredentials()); var workitemClient = connection.GetClient&lt;WorkItemTrackingHttpClient&...
<p>Refer to this code to create task work item with parent link (Update it to meet your requirement):</p> <pre><code>var url = new Uri(&quot;https://XXX.visualstudio.com&quot;); var connection = new VssConnection(url, new VssClientCredentials()); var workitemClient = connection.GetClient&lt;WorkItemTrackingHttpClient&...
9, 733, 98737, 116537, 134617
azure-devops, azure-devops-rest-api, c#, json-patch, tfs
<h1>Using VsConnection WorkItemTrackingHttpClient patch to add parent relation via VSTS client API</h1> <p>I am trying to programmatically add a parent-child relationship between two work items. I am using the Microsoft Team Foundation and Visual Studio Services libraries to export and import TFS 2015 and VSTS backlog ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,865
tvfc
# Using VsConnection WorkItemTrackingHttpClient patch to add parent relation via VSTS client API I am trying to programmatically add a parent-child relationship between two work items. I am using the Microsoft Team Foundation and Visual Studio Services libraries to export and import TFS 2015 and VSTS backlog objects. ...
Refer to this code to create task work item with parent link (Update it to meet your requirement): ``` var url = new Uri("https://XXX.visualstudio.com"); var connection = new VssConnection(url, new VssClientCredentials()); var workitemClient = connection.GetClient<WorkItemTrackingHttpClient>(); string projectName = "...
43082973
How to get entire GIT repo url in TFS?
6
2017-03-29 02:00:39
<p>Only got a repo name and project name from my colleague.</p> <p>How do I get the entire GIT repo url in TFS? What pattern does it follow?</p> <p>Could I directly use the url in the browser from web?</p>
12,967
7,633,922
2017-03-29 04:23:33
43,084,299
11
2017-03-29 04:23:33
5,391,065
2017-03-29 04:23:33
https://stackoverflow.com/q/43082973
https://stackoverflow.com/a/43084299
<p>Yes, you could directly use the url when you open the repo in the web portal.</p> <p>A more common approach is using <strong>Clone</strong> command in the top right corner. You should either select <strong><em>http</em></strong> or <strong><em>ssh</em></strong> url and just click copy command.</p> <p><a href="htt...
<p>Yes, you could directly use the url when you open the repo in the web portal.</p> <p>A more common approach is using <strong>Clone</strong> command in the top right corner. You should either select <strong><em>http</em></strong> or <strong><em>ssh</em></strong> url and just click copy command.</p> <p><a href="htt...
733, 108143, 110393
tfs, tfs-2015, visual-studio-2015
<h1>How to get entire GIT repo url in TFS?</h1> <p>Only got a repo name and project name from my colleague.</p> <p>How do I get the entire GIT repo url in TFS? What pattern does it follow?</p> <p>Could I directly use the url in the browser from web?</p>
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,866
tvfc
# How to get entire GIT repo url in TFS? Only got a repo name and project name from my colleague. How do I get the entire GIT repo url in TFS? What pattern does it follow? Could I directly use the url in the browser from web?
Yes, you could directly use the url when you open the repo in the web portal. A more common approach is using **Clone** command in the top right corner. You should either select ***http*** or ***ssh*** url and just click copy command. [![enter image description here](https://i.sstatic.net/D3oaK.png)](https://i.sstati...
35134539
Build not publishing Web API project in Visual Studio Team Services (was VS Online)
6
2016-02-01 15:45:01
<p>I have created a VS build definition on Team Services. The build runs successfully when I queue it and it also outputs the dlls for all the projects in the solution except the service layer which I have created using Web Api2. </p> <p>when I download the artifacts from the drop location, I have folders holding the ...
3,944
20,358
2017-10-05 20:20:23
35,143,706
11
2016-02-02 01:50:19
5,475,003
2017-10-05 20:20:23
https://stackoverflow.com/q/35134539
https://stackoverflow.com/a/35143706
<p>It seems that you are using the default settings for the build definition. With these settings, the contents for "Copy Files" task is "**\bin\$(BuildConfiguration)**" while web api project does not have buildconfiguration folder. So it cannot find the files for web api project. To copy these files, add one more "Cop...
<p>It seems that you are using the default settings for the build definition. With these settings, the contents for "Copy Files" task is "**\bin\$(BuildConfiguration)**" while web api project does not have buildconfiguration folder. So it cannot find the files for web api project. To copy these files, add one more "Cop...
733, 5647, 16341, 93364, 116537
azure-devops, build, tfs, tfsbuild, visual-studio-2013
<h1>Build not publishing Web API project in Visual Studio Team Services (was VS Online)</h1> <p>I have created a VS build definition on Team Services. The build runs successfully when I queue it and it also outputs the dlls for all the projects in the solution except the service layer which I have created using Web Api...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,867
tvfc
# Build not publishing Web API project in Visual Studio Team Services (was VS Online) I have created a VS build definition on Team Services. The build runs successfully when I queue it and it also outputs the dlls for all the projects in the solution except the service layer which I have created using Web Api2. when ...
It seems that you are using the default settings for the build definition. With these settings, the contents for "Copy Files" task is "**\bin\$(BuildConfiguration)**" while web api project does not have buildconfiguration folder. So it cannot find the files for web api project. To copy these files, add one more "Copy F...
15092927
Pass property value from TFS Build Definition to proj file
6
2013-02-26 15:28:27
<p>I have a build definition set up in my TFS 2012 instance. In this Build Definition I want to pass in a custom argument and access said argument in my .csproj file. For example:</p> <pre><code>MSBuild Arguments: /p:MyFoo=1 </code></pre> <p>In my .csproj file I want to do this:</p> <pre><code>&lt;ItemGroup Condit...
3,076
644,600
2013-02-26 16:56:05
15,094,825
11
2013-02-26 16:56:05
568,475
2013-02-26 16:56:05
https://stackoverflow.com/q/15092927
https://stackoverflow.com/a/15094825
<p>This is more than possible, it's very easy to do. Edit your build definition, under the process tab expand the "advanced" section and you will see a property called "MSbuild Arguments" add the argument in the format in the question. e.g. <code>/p:MyFoo=1</code></p> <p>e.g.</p> <p><img src="https://i.sstatic.net/g5...
<p>This is more than possible, it's very easy to do. Edit your build definition, under the process tab expand the "advanced" section and you will see a property called "MSbuild Arguments" add the argument in the format in the question. e.g. <code>/p:MyFoo=1</code></p> <p>e.g.</p> <p><img src="https://i.sstatic.net/g5...
265, 16341
msbuild, tfsbuild
<h1>Pass property value from TFS Build Definition to proj file</h1> <p>I have a build definition set up in my TFS 2012 instance. In this Build Definition I want to pass in a custom argument and access said argument in my .csproj file. For example:</p> <pre><code>MSBuild Arguments: /p:MyFoo=1 </code></pre> <p>In my ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,868
tvfc
# Pass property value from TFS Build Definition to proj file I have a build definition set up in my TFS 2012 instance. In this Build Definition I want to pass in a custom argument and access said argument in my .csproj file. For example: ``` MSBuild Arguments: /p:MyFoo=1 ``` In my .csproj file I want to do this: ``...
This is more than possible, it's very easy to do. Edit your build definition, under the process tab expand the "advanced" section and you will see a property called "MSbuild Arguments" add the argument in the format in the question. e.g. `/p:MyFoo=1` e.g. ![adding msbuild arguments to TFS build definition](https://i....
10557814
How to get a specific build with the TFS API
6
2012-05-11 19:58:06
<p>I am trying to get a particular build from TFS but it is frustratingly difficult. I have an MVC application that triggers a build like this:</p> <pre><code> IBuildServer buildServer = (IBuildServer)Server.GetService(typeof(IBuildServer)); IBuildDefinition def = buildServer.GetBuildDefinition(TeamProject, BuildDef...
9,592
245,091
2015-06-09 12:20:02
10,583,990
11
2012-05-14 13:09:40
245,091
2012-05-14 13:09:40
https://stackoverflow.com/q/10557814
https://stackoverflow.com/a/10583990
<p>The key to this scenario is to use the ID of the queued build. So what I did was:</p> <pre><code> public int QueuBuild(string TeamProject, string BuildDefinition) { IBuildServer buildServer = (IBuildServer)Server.GetService(typeof(IBuildServer)); IBuildDefinition def = buildServer.GetBuildDe...
<p>The key to this scenario is to use the ID of the queued build. So what I did was:</p> <pre><code> public int QueuBuild(string TeamProject, string BuildDefinition) { IBuildServer buildServer = (IBuildServer)Server.GetService(typeof(IBuildServer)); IBuildDefinition def = buildServer.GetBuildDe...
9, 733, 67617
asp.net-mvc-3, c#, tfs
<h1>How to get a specific build with the TFS API</h1> <p>I am trying to get a particular build from TFS but it is frustratingly difficult. I have an MVC application that triggers a build like this:</p> <pre><code> IBuildServer buildServer = (IBuildServer)Server.GetService(typeof(IBuildServer)); IBuildDefinition def ...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,869
tvfc
# How to get a specific build with the TFS API I am trying to get a particular build from TFS but it is frustratingly difficult. I have an MVC application that triggers a build like this: ``` IBuildServer buildServer = (IBuildServer)Server.GetService(typeof(IBuildServer)); IBuildDefinition def = buildServer.GetBuil...
The key to this scenario is to use the ID of the queued build. So what I did was: ``` public int QueuBuild(string TeamProject, string BuildDefinition) { IBuildServer buildServer = (IBuildServer)Server.GetService(typeof(IBuildServer)); IBuildDefinition def = buildServer.GetBuildDefinition(TeamPr...
3263035
Is it possible to get the latest version in TFS using some console client?
6
2010-07-16 08:13:11
<p>Currently I found two ways to get the latest version - in Visual Studio using Team Explorer and in Windows Explorer using TFS Power Tools Shell Extensions.</p> <p>Because our TFS server is located vary far from developers working with it is very slow and very often hangs on an application (VS/Explorer). So I want t...
2,526
41,956
2010-07-16 08:18:31
3,263,076
11
2010-07-16 08:18:31
13,627
2010-07-16 08:18:31
https://stackoverflow.com/q/3263035
https://stackoverflow.com/a/3263076
<p>TF.exe does have a get command. The following is the output of <code>TF.exe get -?</code></p> <pre><code>TF - Team Foundation Version Control Tool, Version 10.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Retrieves a read-only copy of a file from Team Foundation Server to the local workspace...
<p>TF.exe does have a get command. The following is the output of <code>TF.exe get -?</code></p> <pre><code>TF - Team Foundation Version Control Tool, Version 10.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Retrieves a read-only copy of a file from Team Foundation Server to the local workspace...
733, 10631, 58871
console-application, getlatest, tfs
<h1>Is it possible to get the latest version in TFS using some console client?</h1> <p>Currently I found two ways to get the latest version - in Visual Studio using Team Explorer and in Windows Explorer using TFS Power Tools Shell Extensions.</p> <p>Because our TFS server is located vary far from developers working wi...
q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%tfvc%' OR '%tfs%'; a.Body contains code block; q.Score > 5; a.Score > 10
27,870
tvfc
# Is it possible to get the latest version in TFS using some console client? Currently I found two ways to get the latest version - in Visual Studio using Team Explorer and in Windows Explorer using TFS Power Tools Shell Extensions. Because our TFS server is located vary far from developers working with it is very sl...
TF.exe does have a get command. The following is the output of `TF.exe get -?` ``` TF - Team Foundation Version Control Tool, Version 10.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Retrieves a read-only copy of a file from Team Foundation Server to the local workspace and creates folders on d...