File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 30
30
& dotnet workload install maui ios android maccatalyst
31
31
32
32
- name : Build
33
- run : dotnet build --configuration Release
33
+ run : dotnet build --configuration Release --verbosity normal
34
34
# - name: Test
35
35
# run: dotnet test --configuration Release
36
36
- name : Package NuGets
43
43
echo "PACKAGE VERSION: $VERSION"
44
44
45
45
New-Item -ItemType Directory -Force -Path .\artifacts
46
- dotnet pack --output ./artifacts --configuration Release -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI/ZXing.Net.MAUI.csproj
47
- dotnet pack --output ./artifacts --configuration Release -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj
48
- dotnet pack --output ./artifacts --configuration Release -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj
46
+
47
+ # Pack with --no-build since we already built, and add error handling
48
+ Write-Host "Packing ZXing.Net.MAUI..."
49
+ dotnet pack --output ./artifacts --configuration Release --no-build --verbosity normal -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI/ZXing.Net.MAUI.csproj
50
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
51
+
52
+ Write-Host "Packing ZXing.Net.MAUI.Controls..."
53
+ dotnet pack --output ./artifacts --configuration Release --no-build --verbosity normal -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj
54
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
55
+
56
+ Write-Host "Packing ZXing.Net.MAUI.Comet..."
57
+ dotnet pack --output ./artifacts --configuration Release --no-build --verbosity normal -p:Version=$VERSION -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj
58
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
49
59
50
60
- name : Artifacts
51
61
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 54
54
<ExcludeFromCurrentConfiguration >true</ExcludeFromCurrentConfiguration >
55
55
</Compile >
56
56
57
- <Compile Condition =" '$(TargetPlatformIdentifier)' == 'ios' " Update =" *\*.ios*$(DefaultLanguageSourceExtension)" >
57
+ <Compile Condition =" '$(TargetPlatformIdentifier)' == 'ios' " Update =" ** \*.ios*$(DefaultLanguageSourceExtension)" >
58
58
<ExcludeFromCurrentConfiguration >False</ExcludeFromCurrentConfiguration >
59
59
</Compile >
60
- <Compile Condition =" '$(TargetPlatformIdentifier)' == 'maccatalyst' " Update =" **\*.maccatalyst*$(DefaultLanguageSourceExtension)" >
60
+ <Compile Condition =" '$(TargetPlatformIdentifier)' == 'maccatalyst' " Update =" **\*.ios*$(DefaultLanguageSourceExtension);**\*. maccatalyst*$(DefaultLanguageSourceExtension)" >
61
61
<ExcludeFromCurrentConfiguration >False</ExcludeFromCurrentConfiguration >
62
62
</Compile >
63
63
<Compile Condition =" '$(TargetPlatformIdentifier)' == 'android' " Update =" **\*.android*$(DefaultLanguageSourceExtension)" >
You can’t perform that action at this time.
0 commit comments