Skip to content

Commit 5560c78

Browse files
committed
Fix build script to exclude test project from publish
Specify main project file explicitly in dotnet publish command to avoid attempting to publish the test project as a single file, which is not supported.
1 parent aec38a8 commit 5560c78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ for platform in "${platforms[@]}"; do
8989
exe_name="lrm"
9090
fi
9191

92-
# Publish
93-
dotnet publish \
92+
# Publish (specify main project only, not test project)
93+
dotnet publish "$PROJECT_NAME.csproj" \
9494
--configuration Release \
9595
--runtime "$platform" \
9696
--self-contained true \

0 commit comments

Comments
 (0)