Skip to content

Commit e5f056f

Browse files
committed
IncrementalBuildTest.CSProjUserFileChanges updated, not tested locally
1 parent d5fac84 commit e5f056f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/IncrementalBuildTest.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,11 +870,18 @@ public void LinkAssembliesNoShrink ([Values] AndroidRuntime runtime)
870870
}
871871

872872
[Test]
873-
public void CSProjUserFileChanges ()
873+
public void CSProjUserFileChanges ([Values] AndroidRuntime runtime)
874874
{
875+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
876+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
877+
return;
878+
}
875879
AssertCommercialBuild ();
876880

877-
var proj = new XamarinAndroidApplicationProject ();
881+
var proj = new XamarinAndroidApplicationProject {
882+
IsRelease = isRelease,
883+
};
884+
proj.SetRuntime (runtime);
878885
var selectedDevice = "foo";
879886
var csproj_user_file = $"{proj.ProjectName}.csproj.user";
880887
proj.Sources.Add (new BuildItem.NoActionResource (csproj_user_file) {

0 commit comments

Comments
 (0)