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
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ public void PublishNativeAOT(string id, string framework, string runtimeIdentifi
Assert.True(DotnetInternal.New(id, projectDir, DotNetCurrent, output: _output),
$"Unable to create template {id}. Check test output for errors.");

// For Android-only builds on Linux, modify the csproj to only target Android
// This avoids restore failures due to missing iOS/macCatalyst workloads
if (isAndroidPlatform && !TestEnvironment.IsMacOS && !TestEnvironment.IsWindows)
{
OnlyAndroid(projectFile);
}

var extendedBuildProps = isWindowsFramework
? PrepareNativeAotBuildPropsWindows(runtimeIdentifier)
Expand Down Expand Up @@ -95,12 +89,6 @@ public void PublishNativeAOTRootAllMauiAssemblies(string id, string framework, s
Assert.True(DotnetInternal.New(id, projectDir, DotNetCurrent, output: _output),
$"Unable to create template {id}. Check test output for errors.");

// For Android-only builds on Linux, modify the csproj to only target Android
// This avoids restore failures due to missing iOS/macCatalyst workloads
if (isAndroidPlatform && !TestEnvironment.IsMacOS && !TestEnvironment.IsWindows)
{
OnlyAndroid(projectFile);
}

var extendedBuildProps = isWindowsFramework
? PrepareNativeAotBuildPropsWindows(runtimeIdentifier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ protected BaseTemplateTests(IntegrationTestFixture fixture, ITestOutputHelper ou
Path.Combine(TestDirectory, "Directory.Build.targets"), true);
}

protected void OnlyAndroid(string projectFile)
{
FileUtilities.ReplaceInFile(projectFile, new Dictionary<string, string>()
{
{ "<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>", "<TargetFrameworks>net10.0-android</TargetFrameworks>" },
});
}

protected void AssertContains(string expected, string actual)
{
Assert.True(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ public void Build(string id, string framework, string config, bool shouldPack, s
"</Project>",
"<PropertyGroup><Version>1.0.0-preview.1</Version></PropertyGroup></Project>");

// We only have these packs for Android
if (additionalDotNetBuildParams.Contains("UseMonoRuntime=false", StringComparison.OrdinalIgnoreCase))
{
OnlyAndroid(projectFile);
}

var buildProps = BuildProps;

if (additionalDotNetBuildParams is not "" and not null)
Expand Down
Loading