Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zpqrtbnk committed Dec 7, 2022
1 parent f5a7e0b commit ade657c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 0 additions & 1 deletion hz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,6 @@ function hz-build {
$buildArgs += "-p:VersionSuffix=$versionSuffix"
}

$buildArgs += "-p:SolutionDir=`"$slnRoot`""
$buildArgs += "-p:ReleaseBranch=$isReleaseBranch"

$projs | foreach {
Expand Down
13 changes: 12 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<Project>

<PropertyGroup>
<!--
the supposedly built-in $(SolutionDir) macro in MSBuild is confusing,
not always defined, there are issues with IDE vs command-line, etc so
we define our own alternative
this file is in ~/src and the solution is one level up
-->
<SolutionDirectory>$(MSBuildThisFileDirectory)/..</SolutionDirectory>
</PropertyGroup>

<!-- import our targets (once) -->
<PropertyGroup><HazelcastTargets>true</HazelcastTargets></PropertyGroup>
<Import Project="Directory.Build.targets" Condition="'$(HazelcastTargets)' == ''"/>
<Import Project="$(SolutionDir)/build/AnalysisRules.props" />
<Import Project="$(SolutionDirectory)/build/AnalysisRules.props" />

<PropertyGroup>
<GitRepositoryRemoteName></GitRepositoryRemoteName>
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<UsingTask
<UsingTask
TaskName="GetGitRepositoryRemoteName"
TaskFactory="RoslynCodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
Expand Down

0 comments on commit ade657c

Please sign in to comment.