diff --git a/Directory.Build.props b/Directory.Build.props index 1f93988..159f563 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,10 +6,44 @@ $([System.IO.Path]::GetFileNameWithoutExtension($(SolutionPath))) $([System.IO.Path]::GetDirectoryName($(SolutionPath))) - $([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("AUTHORS"))).Trim()) - $([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("VERSION"))).Trim()) - $([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("DESCRIPTION"))).Trim()) - + VERSION + AUTHORS + DESCRIPTION + LICENSE + CHANGELOG + README + + + $([MSBuild]::ValueOrDefault($(VersionFilePath),$([MSBuild]::GetPathOfFileAbove("$(VersionFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(AuthorsFilePath),$([MSBuild]::GetPathOfFileAbove("$(AuthorsFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(DescriptionFilePath),$([MSBuild]::GetPathOfFileAbove("$(DescriptionFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(LicenseFilePath),$([MSBuild]::GetPathOfFileAbove("$(LicenseFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(ChangelogFilePath),$([MSBuild]::GetPathOfFileAbove("$(ChangelogFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(ReadmeFilePath),$([MSBuild]::GetPathOfFileAbove("$(ReadmeFileName)$(MetadataFileExtension)")))) + + .md + $([MSBuild]::ValueOrDefault($(VersionFilePath),$([MSBuild]::GetPathOfFileAbove("$(VersionFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(AuthorsFilePath),$([MSBuild]::GetPathOfFileAbove("$(AuthorsFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(DescriptionFilePath),$([MSBuild]::GetPathOfFileAbove("$(DescriptionFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(LicenseFilePath),$([MSBuild]::GetPathOfFileAbove("$(LicenseFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(ChangelogFilePath),$([MSBuild]::GetPathOfFileAbove("$(ChangelogFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(ReadmeFilePath),$([MSBuild]::GetPathOfFileAbove("$(ReadmeFileName)$(MetadataFileExtension)")))) + + .txt + $([MSBuild]::ValueOrDefault($(VersionFilePath),$([MSBuild]::GetPathOfFileAbove("$(VersionFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(AuthorsFilePath),$([MSBuild]::GetPathOfFileAbove("$(AuthorsFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(DescriptionFilePath),$([MSBuild]::GetPathOfFileAbove("$(DescriptionFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(LicenseFilePath),$([MSBuild]::GetPathOfFileAbove("$(LicenseFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(ChangelogFilePath),$([MSBuild]::GetPathOfFileAbove("$(ChangelogFileName)$(MetadataFileExtension)")))) + $([MSBuild]::ValueOrDefault($(ReadmeFilePath),$([MSBuild]::GetPathOfFileAbove("$(ReadmeFileName)$(MetadataFileExtension)")))) + + $([System.IO.File]::ReadAllText($(AuthorsFilePath)).Trim()) + $([System.IO.File]::ReadAllText($(DescriptionFilePath)).Trim()) + $([System.IO.File]::ReadAllText($(LicenseFilePath)).Trim()) + $([System.IO.File]::ReadAllText($(ChangelogFilePath)).Trim()) + $([System.IO.File]::ReadAllText($(ReadmeFilePath)).Trim()) + $([System.IO.File]::ReadAllText($(VersionFilePath)).Trim()) + $(Authors.Replace(" ", "")) $(SolutionName.Replace(" ", "")) $(MSBuildProjectName.Replace(" ", "").Replace($(SolutionNamespace), "").Trim("."))