Skip to main content

Practice ยท 1 of 4

Read a .csproj as data

CHALLENGE
Difficulty: beginner+25 XP

Implement static string? GetProperty(string csprojXml, string tag) โ€” return the inner text of <tag>value</tag> (tag without brackets), or null when absent; and static bool IsExecutable(string csprojXml) โ€” true when <OutputType>Exe</OutputType> (case-insensitive) is present.

Back to lesson: Practice: Project workshop