Skip to content

Commit

Permalink
Build samples with .csproj files instead of .sln files
Browse files Browse the repository at this point in the history
- Some of the samples do not have .sln files, so there were some failures
  while trying to install NuGet packages. Let's run the nuget restore and
  msbuild commands with the .csproj files instead.

- The WebApplication sample doesn't have a .csproj or .sln file, so
  we will be unable to run it in CI.
  • Loading branch information
datalogics-saharay committed Mar 20, 2024
1 parent e4f859b commit 76d1f00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-net-framework-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:
'OpticalCharacterRecognition/AddTextToImage/',
'Other/MemoryFileSystem/',
'Other/StreamIO/',
'Other/WebApplication/',
'Printing/PrintPDF/',
'Printing/PrintPDFGUI/',
'Security/AddRegexRedaction/',
Expand Down Expand Up @@ -123,11 +122,11 @@ jobs:
run: |
sample_name=$(basename "$PWD")
echo "Installing NuGet packages..."
nuget.exe restore $sample_name.sln
nuget.exe restore $sample_name.csproj
- name: Build samples
working-directory: ${{ matrix.dir }}
run: |
sample_name=$(basename "$PWD")
echo "Building $sample_name sample..."
msbuild.exe $sample_name.sln //p:Configuration=Release
msbuild.exe $sample_name.csproj //p:Configuration=Release

0 comments on commit 76d1f00

Please sign in to comment.