Project-system: [Suggestion] Getting rid of PropertyGroup/ItemGroup

Created on 20 Oct 2016  路  7Comments  路  Source: dotnet/project-system

By @filipw:

How about a csproj without <PropertyGroup>, <ItemGroup>, the 2 default imports and an implicit <Compile Include="**\*.cs" />

<Project>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.0</TargetFramework>

   <PackageReference Include="Microsoft.NETCore.App" Version="1.0.0" />
   <PackageReference Include="Microsoft.NET.SDK" Version="1.0.0" />
</Project>

Most helpful comment

All 7 comments

next step: simple json to xml conversion :trollface:

without groups, how would the build system tell whether something was a property or an item if it was not repeated?

This would need to be a msbuild feature. Please file the issue over at https://github.com/microsoft/msbuild

@srivatsn Done. /cc @filipw

Closing as this has been ported to the appropriate repo.

Does the same thing work for fsproj? Cc @kevinransom

Was this page helpful?
0 / 5 - 0 ratings