Skip to content

Commit

Permalink
Add links to compiler options (dotnet#9981)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Jun 3, 2024
1 parent 30bd7c0 commit be22cd1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions xml/System.CodeDom.Compiler/CompilerParameters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@
To specify a custom command-line arguments string to use when invoking the compilation process, set the string in the <xref:System.CodeDom.Compiler.CompilerParameters.CompilerOptions%2A> property. If a Win32 security token is required to invoke the compiler process, specify the token in the <xref:System.CodeDom.Compiler.CompilerParameters.UserToken%2A> property. To include .NET Framework resource files in the compiled assembly, add the names of the resource files to the <xref:System.CodeDom.Compiler.CompilerParameters.EmbeddedResources%2A> property. To reference .NET Framework resources in another assembly, add the names of the resource files to the <xref:System.CodeDom.Compiler.CompilerParameters.LinkedResources%2A> property. To include a Win32 resource file in the compiled assembly, specify the name of the Win32 resource file in the <xref:System.CodeDom.Compiler.CompilerParameters.Win32Resource%2A> property.
> [!NOTE]
> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)).
> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)).
## Examples
The following example builds a CodeDOM source graph for a simple Hello World program. The source is then saved to a file, compiled into an executable, and run. The `CompileCode` method illustrates how to use the <xref:System.CodeDom.Compiler.CompilerParameters> class to specify various compiler settings and options.
Expand Down Expand Up @@ -290,11 +288,10 @@
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An <xref:System.CodeDom.Compiler.ICodeCompiler> typically includes this string on the command line when invoking a command-line compiler. By default, this property contains an empty string.
## Remarks
An <xref:System.CodeDom.Compiler.ICodeCompiler> typically includes this string on the command line when invoking a command-line compiler. By default, this property contains an empty string.
## Examples
The following example illustrates using <xref:System.CodeDom.Compiler.CompilerParameters> to specify various compiler settings and options. This code example is part of a larger example provided for the <xref:System.CodeDom.Compiler.CompilerParameters> class.
Expand All @@ -304,6 +301,9 @@
]]></format>
</remarks>
<related type="Article" href="/dotnet/csharp/language-reference/compiler-options/">C# compiler options</related>
<related type="Article" href="/dotnet/fsharp/language-reference/compiler-options">F# compiler options</related>
<related type="Article" href="/dotnet/visual-basic/reference/command-line-compiler/compiler-options-listed-by-category">Visual Basic compiler options</related>
</Docs>
</Member>
<Member MemberName="CoreAssemblyFileName">
Expand Down

0 comments on commit be22cd1

Please sign in to comment.