dotnet / dotnet/msbuild

Solution file parser should parse and preserve ProjectSection(SolutionItems)

Open
#1,708 3 comments 1 reaction 0 assignees View on GitHub
Area: Solution (.sln) triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

Currently the solution parser just skips over solution items, here's the code:
http://source.dot.net/#Microsoft.Build/Construction/Solution/SolutionFile.cs,775

Since the solution parser is the only public and official .sln parser it'd be nice if it supported parsing solution items, which is easy to add. Here's an example syntax:

```
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E3D2D556-C8D6-4107-902F-5092299605DC}"
ProjectSection(SolutionItems) = preProject
nuget.config = nuget.config
tools.proj = tools.proj
EndProjectSection
EndProject

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.