Skip to content

Commit ce975ad

Browse files
committed
Fix dead links
1 parent 014f307 commit ce975ad

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

doc/automation/obtaining_the_MSBuild.Project_from_CPS.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Obtaining the MSBuild.Project from CPS
77
3. Acquire a read, upgradeable read or write lock, as appropriate, and
88
use the MSBuild Project object exclusively within the lock:
99

10-
Visual Studio 2019
1110
```csharp
1211
await projectLockService.WriteLockAsync(
1312
async access =>
@@ -23,24 +22,10 @@ await projectLockService.WriteLockAsync(
2322
cancellationToken);
2423
```
2524

26-
Visual Studio 2017 and earlier
27-
```csharp
28-
using (var access = await projectLockService.WriteLockAsync())
29-
{
30-
MSBuild.Project project = await access.GetProjectAsync(configuredProject);
31-
32-
// Use the msbuild project, respecting the type of lock acquired.
33-
34-
// If you're going to change the project in any way,
35-
// check it out from SCC first:
36-
await access.CheckoutAsync(configuredProject.UnconfiguredProject.FullPath);
37-
}
38-
```
39-
4025
Note that it's important that you use `await`. Do not use `Task.Result` or
4126
`Task.Wait()` on these async methods or your code will malfunction and/or hang.
4227
If you must do this within a synchronous method, see [threading
43-
rule #2](https://github.com/Microsoft/vs-threading/blob/master/doc/threading_rules.md#2-when-an-implementation-of-an-already-shipped-public-api-must-call).
28+
rule #2](https://github.com/microsoft/vs-threading/blob/main/docfx/docs/threading_rules.md#-rule-2-use-jtfrun).
4429

4530
**Please observe CPS [project locking rules](../overview/project_lock.md) by not
4631
retaining any references to MSBuild objects beyond the scope of the lock and

doc/overview/mef.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ IMyConfiguredComponent c2 = configuredProject.Services.ExportProvider.GetExporte
228228
```
229229

230230
For details on obtaining an instance of `UnconfiguredProject` or `ConfiguredProject`,
231-
see [Finding CPS in a VS project](..\automation\finding_CPS_in_a_VS_project.md)
231+
see [Finding CPS in a VS project](../automation/finding_CPS_in_a_VS_project.md)
232232

233233
## MEF and C# Nullable Reference Types
234234

doc/overview/threading_model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Rules](threading_rules.md)
66
Important:
77

88
**Do not call Task.Wait() or Task.Result in your code because these
9-
violate [threading rule #2](https://github.com/Microsoft/vs-threading/blob/master/doc/threading_rules.md#2-when-an-implementation-of-an-already-shipped-public-api-must-call) and will often lead
9+
violate [threading rule #2](https://github.com/microsoft/vs-threading/blob/main/docfx/docs/threading_rules.md#-rule-2-use-jtfrun) and will often lead
1010
to deadlocks.**
1111

1212
Avoid use of `ThreadHelper.JoinableTaskFactory` as that does not have the intelligence

0 commit comments

Comments
 (0)