Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ extends:
suppression:
suppressionFile: $(Build.SourcesDirectory)\.gdn\.gdnsuppress
settings:
networkIsolationPolicy: Permissive,CFSClean
skipBuildTagsForGitHubPullRequests: true
stages:
- template: /build-tools/automation/yaml-templates/build-macos.yaml@self
Expand Down
3 changes: 3 additions & 0 deletions build-tools/automation/yaml-templates/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ variables:
value: true
- name: DOTNET_GENERATE_ASPNET_CERTIFICATE
value: false
# XBD Google Maven mirror support: https://github.com/dotnet/android-libraries/commit/4fe06d57f3ef7905fab0257d7246c97464d29e74
- name: XamarinBuildDownloadGoogleMavenRepository
value: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-maven/maven/v1
# Fix network isolation requirements
# See https://devdiv.visualstudio.com/DevDiv/_git/Xamarin.yaml-templates/pullrequest/750402
- name: DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE
Expand Down
2 changes: 1 addition & 1 deletion external/debugger-libs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Android.Sdk.Analysis.csproj" />
<None Include="$(MSBuildThisFileDirectory)..\..\..\NuGet.config" Link="NuGet.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="..\..\..\build-tools\scripts\NUnitReferences.projitems" />
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public class Test : CSharpAnalyzerTest<TAnalyzer, DefaultVerifier>
public List<DiagnosticAnalyzer> Analyzers => analyzers;
public Test ()
{
ReferenceAssemblies = CSharpVerifierHelper.DefaultReferenceAssemblies;

SolutionTransforms.Add ((solution, projectId) => {
var project = solution.GetProject (projectId);
var compilationOptions = project.CompilationOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class Test : CSharpCodeFixTest<TAnalyzer, TCodeFix, DefaultVerifier>
{
public Test ()
{
ReferenceAssemblies = CSharpVerifierHelper.DefaultReferenceAssemblies;

SolutionTransforms.Add ((solution, projectId) => {
var compilationOptions = solution.GetProject (projectId).CompilationOptions;
compilationOptions = compilationOptions.WithSpecificDiagnosticOptions (
Expand All @@ -22,4 +24,3 @@ public Test ()
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public class Test : CSharpCodeRefactoringTest<TCodeRefactoring, DefaultVerifier>
{
public Test ()
{
ReferenceAssemblies = CSharpVerifierHelper.DefaultReferenceAssemblies;

SolutionTransforms.Add ((solution, projectId) => {
var compilationOptions = solution.GetProject (projectId).CompilationOptions;
compilationOptions = compilationOptions.WithSpecificDiagnosticOptions (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Testing;
using System;
using System.Collections.Immutable;
using System.IO;

internal static class CSharpVerifierHelper
{
internal static ReferenceAssemblies DefaultReferenceAssemblies { get; } =
ReferenceAssemblies.Default.WithNuGetConfigFilePath (Path.Combine (AppContext.BaseDirectory, "NuGet.config"));

/// <summary>
/// By default, the compiler reports diagnostics for nullable reference types at
/// <see cref="DiagnosticSeverity.Warning"/>, and the analyzer test framework defaults to only validating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ public void DuplicateRJavaOutput ()
new Package { Id = "Xamarin.GooglePlayServices.Base", Version = "118.2.0.5" },
new Package { Id = "Xamarin.GooglePlayServices.Basement", Version = "118.2.0.5" },
new Package { Id = "Xamarin.GooglePlayServices.Tasks", Version = "118.0.2.6" },
KnownPackages.Xamarin_Build_Download,
}
};
using (var b = CreateApkBuilder ()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static class KnownPackages
};
public static Package Xamarin_Build_Download = new Package {
Id = "Xamarin.Build.Download",
Version = "0.11.4",
Version = "0.11.6",
};
public static Package NuGet_Build_Packaging = new Package {
Id = "NuGet.Build.Packaging",
Expand Down