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

Fail to compile #1

Open
GeorgeS2019 opened this issue Jan 30, 2021 · 1 comment
Open

Fail to compile #1

GeorgeS2019 opened this issue Jan 30, 2021 · 1 comment

Comments

@GeorgeS2019
Copy link

@mattleibow thanks for attempting another way to bring SkiaSharp to Blazor.

  1. challenge to get uno.wasm.bootstrap to work
bash -c `wslpath "C:\Users\UserName\.nuget\packages\uno.wasm.bootstrap\2.0.0-dev.69\build\scripts\dotnet-setup.sh"`

bash -c `wslpath "C:\Users\UserName\.nuget\packages\uno.wasm.bootstrap\2.0.0-dev.69\build\scripts\emscripten-setup.sh"`
  1. challenge to setup correctly the followings
    <script type="text/javascript" src="package/require.js"></script>
    <script type="text/javascript" src="package/mono-config.js"></script>
    <script type="text/javascript" src="package/uno-config.js"></script>
    <script type="text/javascript" src="package/uno-bootstrap.js"></script>
    <script async type="text/javascript" src="package/dotnet.js"></script>
@mattleibow
Copy link
Owner

mattleibow commented Feb 1, 2021

Maybe this will help:

  1. You may need to set up your WSL environment:
    https://platform.uno/docs/articles/get-started-with-linux.html
  2. I am using a very hacky post-build task to copy and rename files:
    https://github.com/mattleibow/BlazorSkiaSharp/blob/main/ConsoleApp1/ConsoleApp1.csproj#L19-L42
    I should make this better, but it works in this sample. You may want to change this and use a totally different task. Also, this might only work in Debug builds because I think Release puts the files in a different location. You will need to play around with this a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants