8
The "Class" option generates a C# code file with a basic class structure, like this:
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApp1
{
class Class1
{
}
}
Already the option "Code File" generates an empty source file, where you have to write everything from scratch. In practice the only difference is template used in the first.
It’s not just Asp.net core, codefile.Cs is created with build action
Content
, instead ofCompile
common-class.– Gabriel Coletta