[ci] Build with .NET 7.0.306. #760
                
     Merged
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Context: #690 (comment)
We would like to (eventually) provide additional guidance to users around API's that Google has annotated with
@RestrictTo.In order to do this, we will have to use a newer
generatorthat contains the needed support: dotnet/java-interop#1094.In order to do that, we will need a newer .NET that allows us to override the
generatorused to bind libraries:dotnet/android#8069
This PR updates us to .NET
7.0.306which contains this enhancement. Note that we cannot update to .NET 8 while we still supportnet6.0-androidbindings, as .NET 8 cannot buildnet6.0-android.Note that this is currently a no-op and should not change anything, as the .NET 7 SDK will still download the .NET 6 bits to bind
net6.0-android.