Skip to content

Commit

Permalink
Sample.Gtk: add SourceGen as ProjectReference
Browse files Browse the repository at this point in the history
Added this to ensure that SourceGen.dll is created before
building the Controls.Sample.Gtk. We have to do this since
sometimes when building the Sample.Gtk project, the error
below is shown. It's a random error that happens when
building the Microsoft.Maui.Gtk.slnf but it doesn't happen
in each build attempt.

```
CSC : error CS0006: Metadata file '/home/runner/work/maui/maui/.nuspec/Microsoft.Maui.Controls.SourceGen.dll' could not be found [/home/runner/work/maui/maui/src/Controls/samples/Controls.Sample.Gtk/Controls.Sample.Gtk.csproj]
    0 Warning(s)
    1 Error(s)
```
  • Loading branch information
parhamsaremi committed Apr 27, 2023
1 parent 40c2ae9 commit d69270f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-gtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
dotnet workload install gtk --skip-manifest-update
- name: Build MAUI
run: |
dotnet build src/Controls/src/SourceGen/Controls.SourceGen.csproj
dotnet build Microsoft.Maui.Gtk.slnf
dotnet-format:
Expand Down

0 comments on commit d69270f

Please sign in to comment.