Samples can't have the same asset file names across components
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- build-system, tooling
调研方向
首先重现构建 CommunityToolkit.AllComponents.sln 时的 NETSDK1152 失败,重点检查 AllComponents Tests.WinAppSdk 和 WinAppSdk 项目文件,以及 Shimmer 和 TransitionHelper 中重复的 samples/Assets/Owl.jpg 路径。确定这项工作应检测重复的 asset 名称,还是应在 all-up 构建期间支持它们;完成的标准是已实现所选行为,并且 all-up 解决方案不再因这些重复项而失败。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
"D:\a\Labs-Windows\Labs-Windows\CommunityToolkit.AllComponents.sln" (default target) (1:2) ->
"D:\a\Labs-Windows\Labs-Windows\tooling\ProjectHeads\AllComponents\Tests.WinAppSdk\CommunityToolkit.Tests.WinAppSdk.csproj" (default target) (27:6) ->
(_HandleFileConflictsForPublish target) ->
C:\Program Files\dotnet\sdk\6.0.407\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path: D:\a\Labs-Windows\Labs-Windows\components\Shimmer\samples\Assets\Owl.jpg, D:\a\Labs-Windows\Labs-Windows\components\TransitionHelper\samples\Assets\Owl.jpg. [D:\a\Labs-Windows\Labs-Windows\tooling\ProjectHeads\AllComponents\Tests.WinAppSdk\CommunityToolkit.Tests.WinAppSdk.csproj]
"D:\a\Labs-Windows\Labs-Windows\CommunityToolkit.AllComponents.sln" (default target) (1:2) ->
"D:\a\Labs-Windows\Labs-Windows\tooling\ProjectHeads\AllComponents\WinAppSdk\CommunityToolkit.App.WinAppSdk.csproj" (default target) (29:6) ->
C:\Program Files\dotnet\sdk\6.0.407\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path: D:\a\Labs-Windows\Labs-Windows\components\Shimmer\samples\Assets\Owl.jpg, D:\a\Labs-Windows\Labs-Windows\components\TransitionHelper\samples\Assets\Owl.jpg. [D:\a\Labs-Windows\Labs-Windows\tooling\ProjectHeads\AllComponents\WinAppSdk\CommunityToolkit.App.WinAppSdk.csproj]
In this case we had two components Shimmer and TransitionHelper which had a samples\Assets\Owl.jpg file. When the build went to include both these components it got confused.
We need to better identify this issue locally with an analyzer to alert a dev as an error during development (duplicate file name across repo) [easier?] or figure out how to merge resources into a cohesive collection which can still work for all the code relying on those images [hard?].
Steps to reproduce
Create two components
Setup an image with the same name in both sample directories and include in project
Try and build the all-up solution
Expected behavior
Able to either:
- identify duplicates across components and alert developer
- use assets with the same name
Screenshots
No response
Code Platform
- UWP
- WinAppSDK / WinUI 3
- Web Assembly (WASM)
- Android
- iOS
- MacOS
- Linux / GTK
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
Maybe we should also think about some centralized assets that all samples have access to in case they just need an image or two to include?
Help us help you
Yes, but only if others can assist.
- 主要语言
- C#
- 星标
- 57
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommunityToolkit/Tooling-Windows-Submodule 的其他 Issue
-
Running WASM on All Solution Doesn't work in VS可能重新可做 @Arlodotexe 于 245 天前认领,目前没有进行中的 PR。 未关闭bug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 条评论 · 已指派 1 人 ·
-
GenerateAllSolution with only wasm target won't build可能重新可做 @Arlodotexe 于 245 天前认领,目前没有进行中的 PR。 未关闭bug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 条评论 · 已指派 1 人 ·
-
bug :bug:
难度 2/5 1-3 小时 新手友好度 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 script可能重新可做 @Arlodotexe 于 597 天前认领,目前没有进行中的 PR。 未关闭documentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 已指派 1 人 ·
-
bug :bug: regression testing 🏗
难度 4/5 3-5 天 新手友好度 35/100
查看 CommunityToolkit/Tooling-Windows-Submodule 的全部 Issue
相似的 Issue
-
area: core bug help wanted ready
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
area: remote bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
难度 2/5 1-3 小时 新手友好度 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
A: Mapping P3: Standard T: New Feature
难度 2/5 1-3 小时 新手友好度 68/100
space-wizards/space-station-14#46878 · 2 条评论 ·
维护者通常 1 天内回复