-
Notifications
You must be signed in to change notification settings - Fork 0
Add comprehensive Chinese blog documentation for project introduction #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Soar360 <15421284+Soar360@users.noreply.github.com>
docs/blog.md
Outdated
|
|
||
| ```xml | ||
| <ItemGroup> | ||
| <PackageReference Include="LuYao.ResourcePacker.MSBuild" Version="1.0.0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个引用方式是错的,参考 #36 。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修正为正确的引用格式,添加了 PrivateAssets 和 IncludeAssets 属性。(019a15c)
docs/blog.md
Outdated
|
|
||
| #### 2. 组织资源文件结构 | ||
|
|
||
| 使用子目录组织相关资源,生成器会保留目录结构: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我不确定是否支持,你可以创建项目测试一下。记得将其添加到解决方案管理器。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
经过测试和代码审查,确认资源键只基于文件名(不含扩展名),不保留子目录结构。已更新文档说明,建议将相关资源放在同一目录下,并提醒注意不同子目录下的文件名不要重复。(019a15c)
docs/blog.md
Outdated
|
|
||
| #### 5. 处理多项目场景 | ||
|
|
||
| 在解决方案中有多个项目时,每个项目都有自己的 `R` 类: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为 R 的可见性修饰符默认为 internal,所以这里要提示用户,跨程序集访问的问题。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已添加详细说明 R 类的 internal 可见性限制,并提供了三种跨程序集访问资源的解决方案:1) 每个项目独立管理资源(推荐),2) 通过公共方法传递数据,3) 使用 ResourcePackageReader 直接读取 .dat 文件。(019a15c)
|
@copilot please resolve conversation |
…bly limitations Co-authored-by: Soar360 <15421284+Soar360@users.noreply.github.com>
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.