You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/language-reference/preprocessor-directives.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,18 @@ The `#:` directives that are used in file-based apps include:
66
66
67
67
-`#:sdk`:
68
68
69
-
The first instance specifies the value for the `<Project Sdk="value" />` node. Subsequent instances specify the `<Sdk Name="value" Version="version" />` node. The version can be omitted. For example:
69
+
The first instance specifies the value for the `<Project Sdk="value" />` node. Subsequent instances specify the `<Sdk Name="value" Version="version" />` node. The version can be omitted (i.e. if specified in global.json or included in .NET SDK). For example:
70
70
71
71
```csharp
72
72
#:sdk Microsoft.NET.Sdk.Web
73
+
#:sdk Aspire.AppHost.Sdk@9.4.1
74
+
```
75
+
76
+
The two preceding preprocessors is translated into:
0 commit comments