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: documentation/general/dotnet-run-file.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,15 +183,14 @@ Directives `sdk`, `package`, and `property` are translated into `<Project Sdk=".
183
183
Other directives result in a warning, reserving them for future use.
184
184
185
185
```cs
186
-
#:sdk Microsoft.NET.Sdk.Web
187
-
#:property TargetFramework=net11.0
188
-
#:property LangVersion=preview
189
-
#:package System.CommandLine=2.0.0-*
186
+
#:sdk Microsoft.NET.Sdk.Web
187
+
#:property TargetFrameworknet11.0
188
+
#:property LangVersionpreview
189
+
#:package System.CommandLine2.0.0-*
190
190
```
191
191
192
192
The value must be separated from the name of the directive by white space and any leading and trailing white space is not considered part of the value.
193
-
Any value can optionally have two parts separated by `=` or `/`
194
-
(the former is consistent with how properties are usually passed, e.g., `/p:Prop=Value`, and the latter is what the `<Project Sdk="Name/Version">` attribute uses).
193
+
Any value can optionally have two parts separated by a space (more whitespace characters could be allowed in the future).
195
194
The value of the first `#:sdk` is injected into `<Project Sdk="{0}">` with the separator (if any) replaced with `/`,
196
195
and the subsequent `#:sdk` directive values are split by the separator and injected as `<Sdk Name="{0}" Version="{1}" />` elements (or without the `Version` attribute if there is no separator).
197
196
It is an error if the first part (name) is empty (the version is allowed to be empty, but that results in empty `Version=""`).
Copy file name to clipboardExpand all lines: eng/Signing.props
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@
83
83
</ItemGroup>
84
84
85
85
<!-- Only publish this file from win-x64 so that we don't end up with duplicates. -->
86
-
<ItemGroupCondition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x64' and '$(PgoInstrument)' != 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1')">
86
+
<ItemGroupCondition="'$(PublishBinariesAndBadge)' == 'true' and '$(OS)' == 'Windows_NT' and '$(TargetArchitecture)' == 'x64' and '$(PgoInstrument)' != 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1')">
0 commit comments