Skip to content
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

Source code not showing on non-Windows build targets #37

Closed
Arlodotexe opened this issue Mar 8, 2022 · 0 comments · Fixed by #88
Closed

Source code not showing on non-Windows build targets #37

Arlodotexe opened this issue Mar 8, 2022 · 0 comments · Fixed by #88
Labels
bug 🐛 Something isn't working sample app 🖼 Uno Issues related to Uno Platform WASM Bugs related to working with WASM/Codespaces

Comments

@Arlodotexe
Copy link
Member

Arlodotexe commented Mar 8, 2022

Background

As part of #29, we are now able to pull in and show in source code for each sample, bundled as app content and pulled in via StorageFile.GetFileFromApplicationUriAsync().

However, due to a bug with Uno (filed separately here), we're unable to pull in and view the source code on any platform other than UWP and WinAppSDK.

Solution(s)

Either unoplatform/uno#8266 (see unoplatform/uno#2502 (comment)) needs to be solved, or a workaround needs to be created.

Or, as a temporary workaround, create a custom MSBuild Target that

  • Checks the head for all referenced projects
  • Checks each referenced project for any usages of
  • Manually copy the files to the project head's "Assets" folder

Then, modify all of our code to only use the Assets folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working sample app 🖼 Uno Issues related to Uno Platform WASM Bugs related to working with WASM/Codespaces
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants