The problem- We can parse a csproj file in some ways, but most of the information is not in the file, but is either by default or affected by other properties.
I want to work against csproj files and solution- get project dependencies, get properties and items (things like 'TargetFramework', compiled files..)
The TargetFramework can be a tag with value, or 'TargetFrameworks' tag with multi-values that parsed to 'TargetFramework'.
The old solution- MSBuild provide a microsoft.build.evaluation library to work with csproj file, but this library compiled to net471, and cause errors when we use it in netcoreapp.
What will be the solution for the problem, in .net core projects?
Microsoft.Build
,Microsoft.Build.Framework
etc, but we won't know whether or not they'll be of any use to you if we don't know what you're trying to achieve. – RobbierobbinMicrosoft.Build, Microsoft.Build.Framework
, as I said, it compiled to net471 only. – MiddleweightMicrosoft.Build.Evaluation
- I assumed that was a NuGet package, although I can't find it on nuget.org. BothMicrosoft.Build
andMicrosoft.Build.Framework
include netstandard2.0 targets, so should be fine with netcoreapp2.0. – RobbierobbinMicrosoft.Build
orMicrosoft.Build.Framework
– MiddleweightMicrosoft.Build.*
packages working the right way on every platform, but I can't tell if it's features can help you.. – Erode