Skip to main content

parse_project_file

Function parse_project_file 

Source
pub fn parse_project_file(
    content: &str,
    doc_uri: &Uri,
) -> Result<NuGetParseResult, DepsError>
Expand description

Parses a .csproj/.fsproj/.vbproj MSBuild project file, extracting PackageReference entries.

Supports both the attribute form (Version="1.0") and the child-element metadata form (<Version>1.0</Version>). Central package management entries (no Version attribute or child) are emitted with version_requirement: None so hover/completion on the name still works.