Commit 609c967
Fix imported link paths not being nested correctly in the MGCB browser. (MonoGame#8739)
XNA contentproj files use Windows paths separated by backslashes. MGCB
expects forward slashes to be able to nest content items correctly.
The call to PathHelper.GetRelativePath() below the lines changed use
System.Uri methods, which has the effect of performing backslash ->
slash conversions on the supplied source file path, so this seemed the
correct location to convert the link path too.
Without this change, any contentproj that references items with a
`<Link>` path will be shown at the root of the MGCB project. With this
change, the items will be nested at the correct location in the browser.
---------
Co-authored-by: Simon (Darkside) Jackson <[email protected]>1 parent 003d516 commit 609c967
File tree
1 file changed
+2
-2
lines changed- Tools/MonoGame.Content.Builder.Editor/Common
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments