Skip to content

Commit

Permalink
Move version propeties to src\Directory.Build.props.
Browse files Browse the repository at this point in the history
  • Loading branch information
chemodax committed Jan 6, 2024
1 parent 975cdd0 commit fc2bf07
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Directory.build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
<Project>
<Import Project="Version.props" />
<PropertyGroup>
<Version>$(VersionMajor).$(VersionMinor).$(VersionPatch)</Version>
</PropertyGroup>
</Project>
8 changes: 8 additions & 0 deletions pbench.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Version.props = Version.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E80BA0D9-2367-4121-ADD5-93B9C84146CF}"
ProjectSection(SolutionItems) = preProject
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -62,6 +67,9 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E80BA0D9-2367-4121-ADD5-93B9C84146CF} = {EB5CE9DD-0F74-4C98-A346-48EA1D511670}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
VisualSVNWorkingCopyRoot = .
SolutionGuid = {6FC286BE-3FC2-4C87-BB2C-F9E1F24D5591}
Expand Down
8 changes: 8 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<Import Project="..\Version.props" />
<PropertyGroup>
<Version>$(VersionMajor).$(VersionMinor).$(VersionPatch)</Version>
</PropertyGroup>
</Project>

0 comments on commit fc2bf07

Please sign in to comment.