Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save janv8000/0427d356597402c4ae977abefb2e5b6b to your computer and use it in GitHub Desktop.
Save janv8000/0427d356597402c4ae977abefb2e5b6b 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