Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kasper 13 posts 84 karma points
    Nov 01, 2023 @ 14:57
    Kasper
    0

    Umbraco CLI templates not building

    This issue has appeared out of nowhere, when trying to create a new umbraco project using the CLI as described here in the docs:

    https://docs.umbraco.com/umbraco-cms/fundamentals/setup/install/install-umbraco-with-templates

    When I run the command dotnet new umbraco -n MyCustomUmbracoProject the project is created, but when I run dotnet build I get the following error:

    C:\Program Files\dotnet\sdk\7.0.304\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.target
    s(499,5): error : Manifest file at 'obj\Debug\net7.0\staticwebassets.build.json' not found. [C:\Users\MyUserName\Desk
    top\test\MyCustomUmbracoProject\MyCustomUmbracoProject.csproj]
    

    I have tried comparing with a colleague who is able to run and build the project, using the exact same commands, where the staticwebassets.build.json file is created during the build step.

    I am using dotnet version 7.304. Has anyone else experienced this or have any clue as to why this file is not generated on my environment?

  • Kasper 13 posts 84 karma points
    Nov 02, 2023 @ 08:15
    Kasper
    0

    Updating to SDK version 7.0.403 seems to have fixed the issue.

Please Sign in or register to post replies

Write your reply to:

Draft