Skip to content

Commit 6fd09ca

Browse files
committed
Improve deduplication wording
1 parent 7a825f8 commit 6fd09ca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

documentation/general/dotnet-run-file.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,11 @@ Indeed, it might be beneficial to let a non-entry-point file like `Util.cs` be s
209209
which also makes it possible to share it independently or symlink it to multiple script folders.
210210
This is also similar to `global using`s which users usually put into a single file but don't have to.
211211

212-
We could consider deduplicating `#:package`/`#:sdk` directives (if they have the same values)
213-
so separate "self-contained" utilities can reference overlapping sets of packages
212+
We could consider deduplicating `#:` directives
213+
(e.g., properties could be concatenated via `;`, more specific package versions could override less specific ones),
214+
so for example separate "self-contained" utilities could reference overlapping sets of packages
214215
even if they end up in the same compilation.
215-
But for starters we can
216-
- translate every `#:package` directive into a `<PackageReference>` element,
217-
- translate every `#:sdk` directive into a `<Project Sdk>` attribute or an `<Sdk>` element,
218-
216+
But for starters we can translate each directive into the corresponding project element
219217
and let the existing MSBuild/NuGet logic deal with duplicates.
220218

221219
It is valid to have a `#:package` directive without a version.

0 commit comments

Comments
 (0)