Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit 2dbec6a

Browse files
authored
Fixup build issues
* Fixup sln file * Turn off XLF localization * Fix test path issues * Run tests as part of running build.ps1 / build.sh * Do not install dotnet-format as part of running build.ps1
1 parent 52505c7 commit 2dbec6a

File tree

5 files changed

+150
-170
lines changed

5 files changed

+150
-170
lines changed

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<AnalysisMode>Default</AnalysisMode>
1414
<LangVersion>Latest</LangVersion>
1515
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
16+
<!-- Disable XLIFF tasks -->
17+
<UsingToolXliff>false</UsingToolXliff>
1618
</PropertyGroup>
1719

1820
<!--

build.ps1

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
1-
# Check dotnet-format is installed or not
2-
$dotnetFormat = Get-Command dotnet-format -ErrorAction Ignore -CommandType Application
31

4-
if ($dotnetFormat)
5-
{
6-
Write-Host -f Magenta "dotnet format tool is already installed."
7-
}
8-
else
9-
{
10-
Write-Host -f Magenta "Installing dotnet-format tool.."
11-
& dotnet tool install -g dotnet-format
12-
}
13-
14-
# We need to change default git hooks directory as .git folder is not tracked. And by default hooks are stored in .git/hooks folder.
15-
# So we are setting git hooks default directory to .githooks, so that we can track and version the git hooks.
16-
& git config core.hooksPath .githooks
17-
18-
& $PSScriptRoot\eng\common\Build.ps1 -restore -build -pack $args
2+
& $PSScriptRoot\eng\common\Build.ps1 -restore -build -test -pack $args
193
function ExitWithExitCode([int] $exitCode) {
204
if ($ci -and $prepareMachine) {
215
Stop-Processes

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ while [[ -h $source ]]; do
1313
done
1414

1515
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
16-
"$scriptroot/eng/common/build.sh" --restore --build --pack $@
16+
"$scriptroot/eng/common/build.sh" --restore --build --test --pack $@

0 commit comments

Comments
 (0)