26.9 C
New York
Sunday, June 29, 2025

Buy now

spot_img

C# 14 introduces file-based apps



Taking a lesson from scripting languages similar to Python and JavaScript, Microsoft has launched a file-based apps functionality for the C# language, which is meant to streamline C# improvement.

Launched in .NET 10 Preview 4, the brand new characteristic permits builders to run a stand-alone C# (.cs) file immediately with the command, dotnet run app.cs. Builders now not have to create a mission file or scaffold a complete utility to check a check snippet, run a fast script, or experiment with an concept, wrote Damian Edwards, principal architect at Microsoft, in a Could 28 weblog publish saying the characteristic. Beforehand, operating C# code utilizing the dotnet CLI has required a mission construction that included a .csproj file. Builders can get began with the characteristic by downloading .NET 10 Preview 4.

File-based apps decrease the entry barrier to attempting out C# and make the language a more-attractive alternative for studying, prototyping, and automation eventualities, Edwards stated. Builders get a fast begin whereas no mission file is required, there may be “first-class” CLI integration, and the aptitude scales to actual functions. There isn’t any separate dialect or runtime; when a script grows up, it may evolve right into a full-fledged mission utilizing the identical language, syntax, and instruments. With .NET 10 Preview 4, file-based apps additionally assist a set of file-level directives to declare packages, SDKs, and properties (that are saved in mission recordsdata for mission apps) with out leaving a .cs file.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

0FansLike
0FollowersFollow
0SubscribersSubscribe
- Advertisement -spot_img

Latest Articles

Hydra v 1.03 operacia SWORDFISH