Skip to content

Support for implicit project #64939

Closed
Closed

Description

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

Metadata

Assignees

No one assigned

    Labels

    untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions