-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Area: ABTTAkvelon Build Tasks Team area of workAkvelon Build Tasks Team area of workenhancementtriage
Description
Task name
DotNetCoreCLI@2
Describe your feature request here
.NET 10 adds the dotnet run app.cs feature that allows for executing programs without the need for a csproj. The DotNetCoreCLI@2 task obviously supports this natively, but what would be ideal is if this task also supported inline C# code - similarly to how the PowerShell@2 task supports a script argument, that outputs that code to a temporary file, then executes it.
An example of how this could be implemented can be found here on line 15 - credit to @fvilches17 for the POC.
Syntax would ideally be similar or identical to PowerShell@2, so something like
- task: DotNetCoreCLIV2
command: run
inputs:
targetType: inline
script: |
Console.WriteLine("Hello World");Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: ABTTAkvelon Build Tasks Team area of workAkvelon Build Tasks Team area of workenhancementtriage