Skip to content

Commit e5ab173

Browse files
committed
add docs
1 parent 40bc545 commit e5ab173

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Documentation/guides/building-apps/build-properties.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,25 @@ used in Android Application projects. The default value is
696696
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
697697
```
698698

699+
## AndroidLinkResources
700+
701+
When `true` this will make the build system link out the Nested Types
702+
of the Resource.Designer.cs `Resource` class in all assemblies. The
703+
IL code that uses those types will be updated to use the values
704+
directly rather than accessing fields.
705+
706+
This can have a small impact on reducing the apk size, it might also
707+
help slightly with startup performance. This will only effect "Release"
708+
based builds.
709+
710+
***Experimental***. Only designed to work with code such as
711+
712+
```
713+
var view = FindViewById(Resources.Ids.foo);
714+
```
715+
716+
Any other scenarios (such as reflection) will not be supported.
717+
699718
## AndroidLinkSkip
700719

701720
Specifies a semicolon-delimited (`;`)

0 commit comments

Comments
 (0)