Skip to content

Commit 4195398

Browse files
authored
Merge pull request #5314 from Rageking8/fix-misplaced-forward-slash-in-backtick-enclosed-flags
Fix misplaced forward slash in backtick enclosed flags
2 parents 294b6fe + 1cacc46 commit 4195398

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/build/reference/keyfile-specify-key-or-key-pair-to-sign-an-assembly.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
description: "Learn more about: /KEYFILE (Specify Key or Key Pair to Sign an Assembly)"
32
title: "/KEYFILE (Specify Key or Key Pair to Sign an Assembly)"
3+
description: "Learn more about: /KEYFILE (Specify Key or Key Pair to Sign an Assembly)"
44
ms.date: 03/24/2025
55
f1_keywords: ["/keyfile", "VC.Project.VCLinkerTool.KeyFile"]
66
helpviewer_keywords: ["/KEYFILE linker option", "-KEYFILE linker option", "KEYFILE linker option"]
77
---
8-
# /KEYFILE (Specify Key or Key Pair to Sign an Assembly)
8+
# `/KEYFILE` (Specify Key or Key Pair to Sign an Assembly)
99

1010
```
1111
/KEYFILE:filename
@@ -20,7 +20,7 @@ File that contains the key. Place the string in double quotation marks (" ") if
2020

2121
The linker inserts the public key into the assembly manifest and then signs the final assembly with the private key. To generate a key file, type [`sn -k`](/dotnet/framework/tools/sn-exe-strong-name-tool) *filename* at the command line. A signed assembly is said to have a strong name.
2222

23-
If you compile with [`/LN`](ln-create-msil-module.md), the name of the key file is held in the module and incorporated into the assembly that is created when you compile an assembly that includes an explicit reference to the module, via [`#using`](../../preprocessor/hash-using-directive-cpp.md), or when linking with `[/ASSEMBLYMODULE`](assemblymodule-add-a-msil-module-to-the-assembly.md).
23+
If you compile with [`/LN`](ln-create-msil-module.md), the name of the key file is held in the module and incorporated into the assembly that is created when you compile an assembly that includes an explicit reference to the module, via [`#using`](../../preprocessor/hash-using-directive-cpp.md), or when linking with [`/ASSEMBLYMODULE`](assemblymodule-add-a-msil-module-to-the-assembly.md).
2424

2525
You can also pass your encryption information to the linker with [`/KEYCONTAINER`](keycontainer-specify-a-key-container-to-sign-an-assembly.md). Use [`/DELAYSIGN`](delaysign-partially-sign-an-assembly.md) if you want a partially signed assembly. For more information on signing an assembly, see [Strong Name Assemblies (Assembly Signing) (C++/CLI)](../../dotnet/strong-name-assemblies-assembly-signing-cpp-cli.md) and [Creating and Using Strong-Named Assemblies](/dotnet/framework/app-domains/create-and-use-strong-named-assemblies).
2626

@@ -30,7 +30,7 @@ A key file might contain only the public key.
3030

3131
Other linker options that affect assembly generation are:
3232

33-
- [/`ASSEMBLYDEBUG`](assemblydebug-add-debuggableattribute.md)
33+
- [`/ASSEMBLYDEBUG`](assemblydebug-add-debuggableattribute.md)
3434
- [`/ASSEMBLYLINKRESOURCE`](assemblylinkresource-link-to-dotnet-framework-resource.md)
3535
- [`/ASSEMBLYMODULE`](assemblymodule-add-a-msil-module-to-the-assembly.md)
3636
- [`/ASSEMBLYRESOURCE`](assemblyresource-embed-a-managed-resource.md)

docs/build/reference/qspectre.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
description: "Learn more about: /Qspectre"
32
title: "/Qspectre"
3+
description: "Learn more about: /Qspectre"
44
ms.date: 07/02/2021
55
f1_keywords: ["VC.Project.VCCLCompilerTool.SpectreMitigation"]
66
helpviewer_keywords: ["/Qspectre"]
77
---
8-
# /Qspectre
8+
# `/Qspectre`
99

1010
Specifies compiler generation of instructions to mitigate certain Spectre variant 1 security vulnerabilities.
1111

@@ -38,7 +38,7 @@ If your code operates on data that crosses a trust boundary, then we recommend y
3838

3939
The **`/Qspectre`** option is available starting in Visual Studio 2017 version 15.5.5, and in all updates to Microsoft C/C++ compilers (MSVC) made on or after January 23, 2018. Use the Visual Studio Installer to update the compiler, and to install the Spectre-mitigated libraries as individual components. The **`/Qspectre`** option is also available in Visual Studio 2015 Update 3 through a patch. For more information, see [KB 4338871](https://support.microsoft.com/help/4338871).
4040

41-
All versions of Visual Studio 2017 version 15.5, and all Previews of Visual Studio 2017 version 15.6. include an undocumented option, **/`d2guardspecload`**. It's equivalent to the initial behavior of **`/Qspectre`**. You can use **`/d2guardspecload`** to apply the same mitigations to your code in these versions of the compiler. We recommend you update your build to use **`/Qspectre`** in compilers that support the option. The **`/Qspectre`** option may also support new mitigations in later versions of the compiler.
41+
All versions of Visual Studio 2017 version 15.5, and all Previews of Visual Studio 2017 version 15.6. include an undocumented option, **`/d2guardspecload`**. It's equivalent to the initial behavior of **`/Qspectre`**. You can use **`/d2guardspecload`** to apply the same mitigations to your code in these versions of the compiler. We recommend you update your build to use **`/Qspectre`** in compilers that support the option. The **`/Qspectre`** option may also support new mitigations in later versions of the compiler.
4242

4343
### Effect
4444

docs/build/reference/zc-ternary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: "Learn more about: `/Zc:ternary` (Enforce conditional operator rules)"
32
title: "/Zc:ternary (Enforce conditional operator rules)"
4-
ms.date: "09/12/2019"
3+
description: "Learn more about: `/Zc:ternary` (Enforce conditional operator rules)"
4+
ms.date: 09/12/2019
55
f1_keywords: ["/Zc:ternary"]
66
helpviewer_keywords: ["/Zc:ternary", "Zc:ternary", "-Zc:ternary"]
77
---
@@ -23,7 +23,7 @@ The **`/Zc:ternary`** option is off by default in Visual Studio 2017. Use **`/Zc
2323

2424
### Examples
2525

26-
This sample shows how a class that provides both non-explicit initialization from a type, and conversion to a type, can lead to ambiguous conversions. This code is accepted by the compiler by default, but rejected when **/`Zc:ternary`** or **`/permissive-`** is specified.
26+
This sample shows how a class that provides both non-explicit initialization from a type, and conversion to a type, can lead to ambiguous conversions. This code is accepted by the compiler by default, but rejected when **`/Zc:ternary`** or **`/permissive-`** is specified.
2727

2828
```cpp
2929
// zcternary1.cpp

0 commit comments

Comments
 (0)