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
2 changes: 1 addition & 1 deletion Configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<LibUnwindSourceFullPath>$([System.IO.Path]::GetFullPath ('$(LibUnwindSourceDirectory)'))</LibUnwindSourceFullPath>
<LibUnwindGeneratedHeadersFullPath>$([System.IO.Path]::GetFullPath ('$(LibUnwindGeneratedHeadersDirectory)'))</LibUnwindGeneratedHeadersFullPath>
<LZ4SourceFullPath>$([System.IO.Path]::GetFullPath ('$(LZ4SourceDirectory)'))</LZ4SourceFullPath>
<JavaInteropTargetFrameworkVersion>net9.0</JavaInteropTargetFrameworkVersion>
<JavaInteropTargetFrameworkVersion>net10.0</JavaInteropTargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<AdbToolPath Condition=" '$(AdbToolPath)' == '' ">$(AndroidSdkFullPath)\platform-tools\</AdbToolPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2212,5 +2212,27 @@ public void SystemIOHashing ([Values] AndroidRuntime runtime)
using var builder = CreateApkBuilder ();
Assert.IsTrue (builder.Build (proj), "build should have succeeded.");
}

[Test]
public void CustomView_NoPackage ()
{
var proj = new XamarinAndroidApplicationProject ();
proj.Sources.Add (new BuildItem ("Compile", "CustomView.cs") { TextContent = () => @"
using Android.Content;
using Android.Runtime;
using Android.Views;

namespace UnnamedProject
{
// Register attribute without package prefix should cause XA4238
[Register(""CustomView"")]
public class CustomView : View
{
public CustomView (Context context) : base (context) { }
}
}" });
using var builder = CreateApkBuilder ();
Assert.IsTrue (builder.Build (proj), "Build should have succeeded.");
}
}
}