I have read Using Android Assets . My problem is a bit different because I want to create a folder called assets
in the "shared project" as follows. Android and iOS projects are removed for the sake of simplicity. Only UWP is left for demonstration purposes.
I have already created a folder named assets
and save a file secret.txt
in it. However, I don't know which Build Action
value should I attach to this secret.txt
. The secret file is not a real secret.
Any comments and suggestions are always welcome!
将文件设置为EmbeddedResources并按此处所述操作它们: https : //docs.microsoft.com/zh-cn/xamarin/xamarin-forms/app-fundamentals/files?tabs=windows#embedding-in-shared-projects
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.