Copied to clipboard

Flag this post as spam?

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


  • Martin Kennish 1 post 72 karma points
    Apr 14, 2020 @ 08:03
    Martin Kennish
    1

    Unable to build Umbraco from source

    I've cloned the Umbraco-CMS repo from github and am unable to build it from source on my machine by following the guide in the Build.md file. Neither the v8/contrib or netcore/dev branches will compile.

    The error shown in the console is:

    Exception calling "RunMethod" with "1" argument(s): "Exception calling "Build" with "0" argument(s): "Exception calling "RestoreNuGet" with "0" argument(s): "Failed to restore NuGet packages."""
    At D:\Programming\OpenSource\Umbraco-CMS\build\build.ps1:542 char:5
    +     $ubuild.RunMethod($command);
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ScriptMethodRuntimeException
    
    Error!
    
    MethodInvocationException: Exception calling "RunMethod" with "1" argument(s): "Exception calling "Build" with "0" argument(s): "Exception calling "RestoreNuGet" with "0" argument(s): "Failed to restore NuGet packages."""
    At D:\Programming\OpenSource\Umbraco-CMS\build\build.ps1:542:5
    + $ubuild.RunMethod($command);
    
    MethodInvocationException: Exception calling "Build" with "0" argument(s): "Exception calling "RestoreNuGet" with "0" argument(s): "Failed to restore NuGet packages.""
    At D:\Programming\OpenSource\Umbraco-CMS\build\temp\Umbraco.Build.0.2.15\ps\Boot.ps1:35:5
    + $method.Invoke($arguments)
    
    MethodInvocationException: Exception calling "RestoreNuGet" with "0" argument(s): "Failed to restore NuGet packages."
    At D:\Programming\OpenSource\Umbraco-CMS\build\build.ps1:488:5
    + $this.RestoreNuGet()
    
    RuntimeException: Failed to restore NuGet packages.
    At D:\Programming\OpenSource\Umbraco-CMS\build\build.ps1:386:20
    + if (-not $?) { throw "Failed to restore NuGet packages." }
    
    RemoteException: Invalid restore input. Missing required property 'OutputPath' for project type 'PackageReference'. Input files: D:\Programming\OpenSource\Umbraco-CMS\src\Umbraco.ModelsBuilder.Embedded\Umbraco.ModelsBuilder.Embedded.csproj.At D:\Programming\OpenSource\Umbraco-CMS\build\build.ps1:385:5
    + &$this.BuildEnv.NuGet restore "$($this.SolutionRoot)\src\Umbraco.sln" > "$($this.BuildTemp)\nuget.restore.log" @params
    
    Abort
    

    The nuget.restore.log has the following content:

    MSBuild auto-detection: using msbuild version '4.8.3752.0 built by: NET48REL1' from 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319'.
    WARNING: Project file D:\Programming\OpenSource\Umbraco-CMS\src\http://localhost:3961 cannot be found.
    

    Would sincerely appreciate any help you can give with this issue.

Please Sign in or register to post replies

Write your reply to:

Draft