Skip to content

Commit bee6d83

Browse files
committed
Demo can now rely on plain build working
Since we support automatic restore of file-app package references in a single run.
1 parent 7340b9b commit bee6d83

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/demos.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
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

src/Demo/Demo.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<Sdk Name="SmallSharp" />
1+
<Project Sdk="SmallSharp">
42

53
<PropertyGroup>
64
<OutputType>Exe</OutputType>

src/Demo/Demo.slnx

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)