Closed as duplicate of#48174
Description
Is your feature request related to a problem? Please describe.
DRY code requires code reuse. I make extensive use of this in C# scripting.
Describe the solution you'd like
I've been using dotnet-script for several years for both unit testing code and for creating small utilities. Being able to load scripts (with "#load - see below) from other scripts is a core feature for keeping my code DRY. It would be a knock against "dotnet run" if a comparable syntax was not available.
I propose "#:load file.cs"
Additional context
It's just a preprocessor - not a change to the C# syntax. Just like the others being added.
https://github.com/dotnet-script/dotnet-script#consuming-a-script-package
Metadata
Metadata
Assignees
Labels
No labels