Skip to content

Commit d3c931e

Browse files
committed
Replace relative links
Run clean repo to replace absolute links (introduced in the previous run) with relative links.
1 parent f2cacd5 commit d3c931e

File tree

33 files changed

+35
-35
lines changed

33 files changed

+35
-35
lines changed

docs/architecture/porting-existing-aspnet-apps/strategies-migrating-in-production.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Once the facade is in place, you can route part of it to a new ASP.NET Core app.
3737

3838
## Multi-targeting approaches
3939

40-
Large apps that target .NET Framework may be migrated to ASP.NET Core over time by using multi-targeting and separate code paths for each framework. For example, code that must run in both environments could be modified with [preprocessor `#if`](/dotnet/csharp/language-reference/preprocessor-directives) directives to implement different functionality or use different dependencies when run in .NET Framework versus .NET Core. Another option is to modify project files to include different sets of files based on which framework is being targeted. Project files can use different globbing patterns, such as `*.core.cs`, to include different sets of source files depending on the framework being targeted.
40+
Large apps that target .NET Framework may be migrated to ASP.NET Core over time by using multi-targeting and separate code paths for each framework. For example, code that must run in both environments could be modified with [preprocessor `#if`](..\..\csharp\language-reference\preprocessor-directives.md) directives to implement different functionality or use different dependencies when run in .NET Framework versus .NET Core. Another option is to modify project files to include different sets of files based on which framework is being targeted. Project files can use different globbing patterns, such as `*.core.cs`, to include different sets of source files depending on the framework being targeted.
4141

4242
These techniques allow a single common codebase to be maintained while new functionality is added and (parts of) the app are ported to use .NET Core.
4343

docs/csharp/language-reference/compiler-messages/cs0420.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 0f52f508-286e-493d-9151-180e05397bf9
1212

1313
'identifier': a reference to a volatile field will not be treated as volatile
1414

15-
A volatile field should not normally be passed using a `ref` or **out** parameter, since it will not be treated as volatile within the scope of the function. There are exceptions to this, such as when calling an interlocked API. As with any warning, you may use the [#pragma warning](/dotnet/csharp/language-reference/preprocessor-directives) to disable this warning in those rare cases where you are intentionally using a volatile field as a reference parameter.
15+
A volatile field should not normally be passed using a `ref` or **out** parameter, since it will not be treated as volatile within the scope of the function. There are exceptions to this, such as when calling an interlocked API. As with any warning, you may use the [#pragma warning](..\preprocessor-directives.md) to disable this warning in those rare cases where you are intentionally using a volatile field as a reference parameter.
1616

1717
The following sample generates CS0420:
1818

docs/csharp/language-reference/compiler-messages/cs1029.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 61bd4d44-9bfc-42bb-a9f0-a0683da53640
1212

1313
\#error: 'text'
1414

15-
Displays the text of an error defined with the [#error](/dotnet/csharp/language-reference/preprocessor-directives) directive.
15+
Displays the text of an error defined with the [#error](..\preprocessor-directives.md) directive.
1616

1717
The following sample shows how to create a user-defined error:
1818

docs/csharp/language-reference/compiler-messages/cs1691.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 7f0fea4d-4215-446c-a249-57daa7e967d2
1212

1313
'number' is not a valid warning number
1414

15-
A number that was passed to the [#pragma warning](/dotnet/csharp/language-reference/preprocessor-directives) preprocessor directive was not a valid warning number. Verify that the number represents a warning, not an error or another sequence of characters.
15+
A number that was passed to the [#pragma warning](..\preprocessor-directives.md) preprocessor directive was not a valid warning number. Verify that the number represents a warning, not an error or another sequence of characters.
1616

1717
## Example
1818

docs/csharp/language-reference/compiler-messages/cs4014.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Exiting the Click event handler.
7474
Task.Delay is finished--returning from called method.
7575
```
7676

77-
You can also suppress compiler warnings by using [#pragma warning](/dotnet/csharp/language-reference/preprocessor-directives) directives.
77+
You can also suppress compiler warnings by using [#pragma warning](..\preprocessor-directives.md) directives.
7878

7979
## Example
8080

docs/csharp/language-reference/compiler-options/language.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The **DefineConstants** option defines symbols in all source code files of your
4949
<DefineConstants>name;name2</DefineConstants>
5050
```
5151

52-
This option specifies the names of one or more symbols that you want to define. The **DefineConstants** option has the same effect as the [#define](/dotnet/csharp/language-reference/preprocessor-directives) preprocessor directive except that the compiler option is in effect for all files in the project. A symbol remains defined in a source file until an [#undef](/dotnet/csharp/language-reference/preprocessor-directives) directive in the source file removes the definition. When you use the `-define` option, an `#undef` directive in one file has no effect on other source code files in the project. You can use symbols created by this option with [#if](/dotnet/csharp/language-reference/preprocessor-directives), [#else](/dotnet/csharp/language-reference/preprocessor-directives), [#elif](/dotnet/csharp/language-reference/preprocessor-directives), and [#endif](/dotnet/csharp/language-reference/preprocessor-directives) to compile source files conditionally. The C# compiler itself defines no symbols or macros that you can use in your source code; all symbol definitions must be user-defined.
52+
This option specifies the names of one or more symbols that you want to define. The **DefineConstants** option has the same effect as the [#define](..\preprocessor-directives.md) preprocessor directive except that the compiler option is in effect for all files in the project. A symbol remains defined in a source file until an [#undef](..\preprocessor-directives.md) directive in the source file removes the definition. When you use the `-define` option, an `#undef` directive in one file has no effect on other source code files in the project. You can use symbols created by this option with [#if](..\preprocessor-directives.md), [#else](..\preprocessor-directives.md), [#elif](..\preprocessor-directives.md), and [#endif](..\preprocessor-directives.md) to compile source files conditionally. The C# compiler itself defines no symbols or macros that you can use in your source code; all symbol definitions must be user-defined.
5353

5454
> [!NOTE]
5555
> The C# `#define` directive does not allow a symbol to be given a value, as in languages such as C++. For example, `#define` cannot be used to create a macro or to define a constant. If you need to define a constant, use an `enum` variable. If you want to create a C++ style macro, consider alternatives such as generics. Since macros are notoriously error-prone, C# disallows their use but provides safer alternatives.
@@ -146,4 +146,4 @@ Invocation of methods annotated with the following attributes will also affect f
146146
> 1. Start the file name with *TemporaryGeneratedFile_*
147147
> 1. End the file name with *.designer.cs*, *.generated.cs*, *.g.cs*, or *.g.i.cs*.
148148
>
149-
> Generators can opt-in using the [`#nullable`](/dotnet/csharp/language-reference/preprocessor-directives) preprocessor directive.
149+
> Generators can opt-in using the [`#nullable`](..\preprocessor-directives.md) preprocessor directive.

docs/csharp/language-reference/compiler-options/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The **DocumentationFile** option allows you to place documentation comments in a
3232
The source code file that contains Main or top-level statements is output first into the XML. You'll often want to use the generated .xml file with [IntelliSense](/visualstudio/ide/using-intellisense). The *.xml* filename must be the same as the assembly name. The *.xml* file must be in the same directory as the assembly. When the assembly is referenced in a Visual Studio project, the *.xml* file is found as well. For more information about generating code comments, see [Supplying Code Comments](/visualstudio/ide/reference/generate-xml-documentation-comments). Unless you compile with [`<TargetType:Module>`](#targettype), `file` will contain `<assembly>` and `</assembly>` tags specifying the name of the file containing the assembly manifest for the output file. For examples, see [How to use the XML documentation features](../../programming-guide/xmldoc/how-to-use-the-xml-documentation-features.md).
3333

3434
> [!NOTE]
35-
> The **DocumentationFile** option applies to all files in the project. To disable warnings related to documentation comments for a specific file or section of code, use [#pragma warning](/dotnet/csharp/language-reference/preprocessor-directives).
35+
> The **DocumentationFile** option applies to all files in the project. To disable warnings related to documentation comments for a specific file or section of code, use [#pragma warning](..\preprocessor-directives.md).
3636
3737
## OutputAssembly
3838

docs/csharp/language-reference/configure-language-version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ If you must specify your C# version explicitly, you can do so in several ways:
4848
- Configure the [**LangVersion** compiler option](compiler-options/language.md#langversion).
4949

5050
> [!TIP]
51-
> To know what language version you're currently using, put `#error version` (case sensitive) in your code. This makes the compiler report a compiler error, CS8304, with a message containing the compiler version being used and the current selected language version. See [#error (C# Reference)](/dotnet/csharp/language-reference/preprocessor-directives) for more information.
51+
> To know what language version you're currently using, put `#error version` (case sensitive) in your code. This makes the compiler report a compiler error, CS8304, with a message containing the compiler version being used and the current selected language version. See [#error (C# Reference)](preprocessor-directives.md) for more information.
5252
5353
### Edit the project file
5454

docs/csharp/language-reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This section provides reference material about C# keywords, operators, special c
2828
[C# Special Characters](./tokens/index.md)
2929
Provides links to information about special contextual characters in C# and their usage.
3030

31-
[C# Preprocessor Directives](/dotnet/csharp/language-reference/preprocessor-directives)
31+
[C# Preprocessor Directives](preprocessor-directives.md)
3232
Provides links to information about compiler commands for embedding in C# source code.
3333

3434
[C# Compiler Options](./compiler-options/index.md)

docs/csharp/misc/cs0642.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Possible mistaken empty statement
1414

1515
A semicolon after a conditional statement may cause your code to execute differently than intended.
1616

17-
You can use **DisabledWarnings** compiler option or `#pragmas warning` to disable this warning; see [**DisabledWarnings** (C# Compiler Options)](../language-reference/compiler-options/errors-warnings.md#disabledwarnings) or [#pragma warning](/dotnet/csharp/language-reference/preprocessor-directives) for more information.
17+
You can use **DisabledWarnings** compiler option or `#pragmas warning` to disable this warning; see [**DisabledWarnings** (C# Compiler Options)](../language-reference/compiler-options/errors-warnings.md#disabledwarnings) or [#pragma warning](..\language-reference\preprocessor-directives.md) for more information.
1818

1919
The following sample generates CS0642:
2020

0 commit comments

Comments
 (0)