Skip to content

Instantly share code, notes, and snippets.

@commonsensesoftware
Created June 9, 2022 18:27
Show Gist options
  • Save commonsensesoftware/6f2351f22764eafc8d9181078d941618 to your computer and use it in GitHub Desktop.
Save commonsensesoftware/6f2351f22764eafc8d9181078d941618 to your computer and use it in GitHub Desktop.
.NET 4.0 Console using VS2022
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net40</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
namespace DotNet4Console
{
using System;
public static class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello world!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment