Skip to content

Commit

Permalink
Fixning the MAUI project Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Clifftech123 committed May 28, 2024
1 parent b6db79c commit 93109f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
file: ./TestResults/coverage.cobertura.xml
flags: unittests
name: codecov-umbrella
#fail_ci_if_error: true
#fail_ci_if_error: true
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
using CountryData.Sample.MAUI.ViewModels;

namespace CountryData.Sample.MAUI;

public partial class MainPage : ContentPage
namespace CountryData.Sample.MAUI
{
int count = 0;

public MainPage(MainViewModel mainViewModel)
{
InitializeComponent();
BindingContext = mainViewModel;
}

//private void OnCounterClicked(object sender, EventArgs e)
//{
// count++;
// CounterLabel.Text = $"Current count: {count}";
public partial class MainPage : ContentPage
{
int count = 0;

Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs

View workflow job for this annotation

GitHub Actions / build

The field 'MainPage.count' is assigned but its value is never used

Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs

View workflow job for this annotation

GitHub Actions / build

The field 'MainPage.count' is assigned but its value is never used

Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs

View workflow job for this annotation

GitHub Actions / build

The field 'MainPage.count' is assigned but its value is never used

Check warning on line 7 in sample/CountryData.Sample.MAUI/CountryData.Sample.MAUI/MainPage.xaml.cs

View workflow job for this annotation

GitHub Actions / build

The field 'MainPage.count' is assigned but its value is never used

// SemanticScreenReader.Announce(CounterLabel.Text);
//}
}
public MainPage(MainViewModel mainViewModel)
{
InitializeComponent();
BindingContext = mainViewModel;
}

// Uncomment this method if you need it
//private void OnCounterClicked(object sender, EventArgs e)
//{
// count++;
// CounterLabel.Text = $"Current count: {count}";
//}
}
}

0 comments on commit 93109f6

Please sign in to comment.