Skip to content

Cannot run the wasm project #983

Closed
Closed

Description

@weitzhandler

Current behavior

After generating a new template with the vsix extensions, upgrading Uno.UI package to 1.44.1 throughout the solution, I try to run the wasm project, the browser opens for a second and immediately closes.

The output I see in the ASP.NET Core Web Server output window is:

UnoApp1.Wasm> Version for package Uno.Wasm.Bootstrap.Cli could not be resolved.

I can see this line repeated 2-4 times.

The output in the Debug output window is attached here.

Per this comment I've tried updating the csproj with:

xml <ItemGroup> <PackageReference Include="Uno.UI" Version="1.44.1" /> <PackageReference Include="Uno.Wasm.Bootstrap" Version="1.0.0-dev.281" /> <DotNetCliToolReference Include="Uno.Wasm.Bootstrap.Cli" Version="1.0.0-dev.281" /> </ItemGroup>

But the error still persists.
I've tried the versions of that comment as well.

Expected behavior

When generating an Uno app using the extension, all projects should work out of the box.

How to reproduce it (as minimally and precisely as possible)

  • Install the templates extension
  • In VS generate a new Uno app
  • Set the wasm as startup project (IIS+Chrome) and run
  • Check the output window, switch between Debug and ASP.NET Core Web Server drop downs.

Environment

Nuget Packages and versions:
Uno.UI: 1.44.1
Uno.Wasm.Bootstrap: 1.0.0-dev.281

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: 16.1.1)
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Activity

  1. ghuntley commented on May 30, 2019

    @ghuntley
    Member

    @weitzhandler sorry to hear this. What version of Visual Studio are you using?

  2. added
    platform/wasm 🌐
    on May 30, 2019
  3. self-assigned this
    on May 30, 2019
  4. weitzhandler commented on May 30, 2019

    @weitzhandler
    MemberAuthor

    @ghuntley Thanks for your sympathy 😊
    I've updated my post, it's 16.1.1.

  5. PieEatingNinjas commented on Jun 9, 2019

    @PieEatingNinjas

    Experiencing the same issue, running 16.1.2.

  6. jeromelaban commented on Jun 13, 2019

    @jeromelaban
    Member

    @weitzhandler If you start the app using Ctrl+F5, what happens ? The F5 experience is not useful for now.

  7. weitzhandler commented on Jun 14, 2019

    @weitzhandler
    MemberAuthor

    @jeromelaban
    You probably meant CtrlShiftF5, I've tried that but I get a "HTTP Error 502.5 - Process Failure" error page.
    The output in the ASP.NET Core Web Server is as indicated above.

  8. sheharyarshahid commented on Jun 17, 2019

    @sheharyarshahid

    Annotation 2019-06-17 113854
    I am getting this error when running WASM after new UNO project created.

    Error list shows this when building:

    Severity Code Description Project File Line Suppression State
    Error System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\sshar\AppData\Local\Temp\mono-wasm-01f6a0203b0\release'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
    at System.IO.Directory.EnumerateFiles(String path)
    at Uno.Wasm.Bootstrap.ShellTask_vc25c613b5190954144284486cfec2056d1820375.CopyRuntime() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 358
    at Uno.Wasm.Bootstrap.ShellTask_vc25c613b5190954144284486cfec2056d1820375.Execute() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 109 MyPass.Wasm C:\Users\sshar.nuget\packages\uno.wasm.bootstrap\1.0.0-dev.137\build\Uno.Wasm.Bootstrap.targets 101

  9. ghuntley commented on Jul 11, 2019

    @ghuntley
    Member

    Whatever this was, it no longer reproduces.

    image

    Using the latest vsix (see https://github.com/unoplatform/uno/pull/1213/files#diff-bb469f1b15e197be6787eeb4f0a2fcce) pre-release, latest Uno.UI pre-release and latest Uno.Wasm.Bootstrap pre-release.

    GitHub
    PR Type What kind of change does this PR introduce?

    Documentation content changes

    Other information
    Need to think about the information hierarchy. I don't think /contributing/ is the correct ...

  10. ghuntley commented on Jul 11, 2019

    @ghuntley
    Member

    Thanks for letting us know folks, apologies this was open for so long!

  11. andrewleader commented on Aug 12, 2019

    @andrewleader

    I had the same exact problem, but in my case the root cause was that the .NET Core 2.2 SDK wasn't installed. But no helpful errors pointed me to that!

  12. added a commit that references this issue on Mar 28, 2025
  13. added a commit that references this issue on Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

platform/wasm 🌐

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions