title: App Center Compile Error using toolkit Microsoft.Toolkit.Mvvm
body: <p>I have a problem with an Microsoft Xamarin App configured in MS App Center which uses the Microsoft Community Toolkit NuGet package.</p>
  <p>=&gt; <a href="https://docs.microsoft.com/en-us/windows/communitytoolkit/mvvm/introduction" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/windows/communitytoolkit/mvvm/introduction</a></p>
  <p>(problem should be with any C# project using MS MVVM Toolkit, not only Xamarin)</p>
  <p>While compiling the project locally with VisualStudio the appropriate generated files are created and the projects compiles without error.</p>
  <p>BUT: when I try to compile it in the MS App Center I am getting tons of errors because the generated files with the partial class for a Observable property like this are NOT available</p>
  <pre><code>[ObservableProperty]
  private string searchText;
  </code></pre>
  <p>=&gt; generated:</p>
  <pre><code>partial class SubmittedDocumentListPageModel
      {
          /// &lt;inheritdoc cref=&quot;searchText&quot;/&gt;
          [global::System.CodeDom.Compiler.GeneratedCode(&quot;CommunityToolkit.Mvvm.SourceGenerators.ObservablePropertyGenerator&quot;, &quot;8.0.0.0&quot;)]
          [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
          public string SearchText
          {
              get =&gt; searchText;
              set
              {
                  if (!global::System.Collections.Generic.EqualityComparer&lt;string&gt;.Default.Equals(searchText, value))
                  {
                      OnSearchTextChanging(value);
                      OnPropertyChanging(global::CommunityToolkit.Mvvm.ComponentModel.__Internals.__KnownINotifyPropertyChangingArgs.SearchText);
                      searchText = value;
                      OnSearchTextChanged(value);
                      OnPropertyChanged(global::CommunityToolkit.Mvvm.ComponentModel.__Internals.__KnownINotifyPropertyChangedArgs.SearchText);
                  }
              }
          }
  </code></pre>
  <p>Are there any pre-build commands or anything else to create these auto-generated files with the properties ?</p>
  <p>I am still getting errors like this:</p>
  <p>SubmittedDocumentListPageModel.cs(102,13): error CS0103: The name 'SearchText' does not exist in the current context</p>
  <p>(Of course, because the auto generated partial class file is not generated. The error is comprehensible, but how do I avoid the errors ?)</p>
  <p>Any ideas ? I have found nothing after searching the internet.</p>
  <p>Thanx</p>
  <p>Marco</p>