Skip to content

Commit

Permalink
Update Directory.Build.props
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-edmondson committed Jun 3, 2024
1 parent e142c35 commit 438dbf2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net7.0;net8.0;</TargetFrameworks>
<LangVersion>latest</LangVersion>
<SolutionPath>$([System.IO.Path]::GetFullPath($([System.IO.Directory]::GetFiles("$(MSBuildThisFileDirectory)", "*.sln")[0])))</SolutionPath>
<SolutionName>$([System.IO.Path]::GetFileNameWithoutExtension($(SolutionPath)))</SolutionName>
<SolutionDirectory>$([System.IO.Path]::GetDirectoryName($(SolutionPath)))</SolutionDirectory>

<Authors>$([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("AUTHORS"))))</Authors>
<Version>$([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("VERSION"))))</Version>
<Description>$([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("DESCRIPTION"))))</Description>
<Authors>$([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("AUTHORS"))).Trim())</Authors>
<Version>$([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("VERSION"))).Trim())</Version>
<Description>$([System.IO.File]::ReadAllText($([MSBuild]::GetPathOfFileAbove("DESCRIPTION"))).Trim())</Description>

<NamespacePrefix>$(Authors.Replace(" ", ""))</NamespacePrefix>
<NamespaceSuffix>$(MSBuildProjectName.Replace(" ", ""))</NamespaceSuffix>
<RootNamespace>$(NamespacePrefix).$(NamespaceSuffix)</RootNamespace>
<AssemblyName>$(RootNamespace)</AssemblyName>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningLevel>9999</WarningLevel>
<NoWarn>CA1724;CA1034;CA1000;</NoWarn>
<EnablePackageValidation>True</EnablePackageValidation>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
Expand Down

0 comments on commit 438dbf2

Please sign in to comment.