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: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<PropertyGroup>
<!-- Workaround: https://github.com/dotnet/sdk/issues/19050 -->
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
<!-- Workaround: https://github.com/dotnet/runtime/issues/55992 -->
<UseAppHost>False</UseAppHost>
<AppendTargetFrameworkToOutputPath Condition=" '$(AppendTargetFrameworkToOutputPath)' == '' ">False</AppendTargetFrameworkToOutputPath>
<BaseIntermediateOutputPath Condition=" '$(BaseIntermediateOutputPath)' == '' ">obj\</BaseIntermediateOutputPath>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions tools/generator/SourceWriters/Attributes/RegisterAttr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public override void WriteAttribute (CodeWriter writer)
var sb = new StringBuilder ();

if (UseGlobal)
sb.Append ($"[global::Android.Runtime.Register (\"{Name}\"");
sb.Append ((string) $"[global::Android.Runtime.Register (\"{Name}\"");
else
sb.Append ($"[Register (\"{Name}\"");
sb.Append ((string) $"[Register (\"{Name}\"");

if ((Signature.HasValue () || Connector.HasValue ()) && !UseShortForm)
sb.Append ($", \"{Signature}\", \"{Connector}\"");
sb.Append ((string) $", \"{Signature}\", \"{Connector}\"");

if (DoNotGenerateAcw && !AcwLast)
sb.Append (", DoNotGenerateAcw=true");
Expand Down