File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 $version = gci bin | select -first 1 -expandproperty BaseName | %{ $_.Substring(11) }
4141 pushd src/Demo
4242 jq --arg version "$version" '.["msbuild-sdks"].SmallSharp = $version' global.json > temp.json && mv temp.json global.json
43+
4344 # build with each top-level file as the active one
44- gci *.cs | %{ dotnet build -p:ActiveFile=$_.name }
45+ foreach ($file in gci *.cs) {
46+ dotnet build -p:ActiveFile=$($file.Name)
47+ if ($LASTEXITCODE -ne 0) {
48+ Write-Error "Build failed for $($file.Name)"
49+ exit $LASTEXITCODE
50+ }
51+ }
4552
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
2-
3- <Sdk Name =" SmallSharp" />
1+ <Project Sdk =" SmallSharp" >
42
53 <PropertyGroup >
64 <OutputType >Exe</OutputType >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments