The .net.csproj SDK project is a placeholder for
non-compiling files. Adding <Compile>
items has no meaning, as the
project has no (publically) accessable compilation artifacts.
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<Compile Include="Code.cs" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<None Include="Code.cs" />
<Content Include="Code.cs" />
<AdditionalFiles Include="Code.cs" />
</ItemGroup>
</Project>