Closed
Description
openedon Feb 7, 2022
Given the new fantastic implicit usings and top level programs in .net 6, it would be great to finish it off with implicit project file that assumes .net 6, implicit usings so that you can go:
dotnet myfile.cs
without having a project file. It should then assume the following
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>somethingsmarthere</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
If there is a project file in the directory, it should of course be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment