Copied to clipboard

Flag this post as spam?

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


  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Sep 01, 2018 @ 12:14
    Søren Kottal
    0

    Can't build from source

    I have cloned a fresh new repo, and checked out dev-v7.

    When I try to run build/build.ps1 I get the following error:

    ls : Cannot find path 'C:\workspaces\umbraco-cms.skttl\umbraco-cms\build.tmp\WebApp\config\' because it does not exist.
    At C:\workspaces\umbraco-cms.skttl\umbraco-cms\build\Modules\Umbraco.Build\Utilities.ps1:31 char:12
    +   $files = ls -r "$source\$select"
    +            ~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\workspaces\u...\WebApp\config\:String) [Get-ChildItem], ItemNotFound
       Exception
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    ls : Cannot find path 'C:\workspaces\umbraco-cms.skttl\umbraco-cms\build.tmp\WebApp\config\' because it does not exist.
    At C:\workspaces\umbraco-cms.skttl\umbraco-cms\build\Modules\Umbraco.Build\Utilities.ps1:31 char:12
    +   $files = ls -r "$source\$select"
    +            ~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\workspaces\u...\WebApp\config\:String) [Get-ChildItem], ItemNotFound
       Exception
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    ls : Cannot find path 'C:\workspaces\umbraco-cms.skttl\umbraco-cms\build.tmp\WebApp\config\lang\' because it does not e
    xist.
    At C:\workspaces\umbraco-cms.skttl\umbraco-cms\build\Modules\Umbraco.Build\Utilities.ps1:31 char:12
    +   $files = ls -r "$source\$select"
    +            ~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\workspaces\u...pp\config\lang\:String) [Get-ChildItem], ItemNotFound
       Exception
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    cp : Cannot find path 'C:\workspaces\umbraco-cms.skttl\umbraco-cms\build.tmp\WebApp\web.config' because it does not exi
    st.
    At C:\workspaces\umbraco-cms.skttl\umbraco-cms\build\Modules\Umbraco.Build\Utilities.ps1:25 char:3
    +   cp -force $source $target
    +   ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\workspaces\u...bApp\web.config:String) [Copy-Item], ItemNotFoundExce
       ption
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
    

    Anyone have any idea what is wrong?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 01, 2018 @ 14:15
    Sebastiaan Janssen
    0

    You probably have a problem earlier in the build process, the config files should have been copied to that location already and that failed.

    Maybe have a look in the log files in the build.tmp folder to see what else might be going on?

    FYI: I just ran build.ps1 and it seems to work for me!

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Sep 01, 2018 @ 14:37
    Søren Kottal
    0

    Thanks, msbuild fails on this:

      Models\Membership\User.cs(262,46): error CS1003: Syntax error, '(' expected [C:\workspaces\umbraco-cms.skttll\src\Umbraco.Core\Umbraco.Core.csproj]
      Models\Membership\User.cs(262,46): error CS1031: Type expected [C:\workspaces\umbraco-cms.skttll\src\Umbraco.Core\Umbraco.Core.csproj]
      Models\Membership\User.cs(262,46): error CS1026: ) expected [C:\workspaces\umbraco-cms.skttll\src\Umbraco.Core\Umbraco.Core.csproj]
      Models\Membership\User.cs(271,46): error CS1003: Syntax error, '(' expected [C:\workspaces\umbraco-cms.skttll\src\Umbraco.Core\Umbraco.Core.csproj]
      Models\Membership\User.cs(271,46): error CS1031: Type expected [C:\workspaces\umbraco-cms.skttll\src\Umbraco.Core\Umbraco.Core.csproj]
      Models\Membership\User.cs(271,46): error CS1026: ) expected [C:\workspaces\umbraco-cms.skttll\src\Umbraco.Core\Umbraco.Core.csproj]
    

    those lines are

    public UserState UserState
    {
        get
        {
            if (LastLoginDate == default && IsApproved == false && InvitedDate != null)
                return UserState.Invited;
    
            if (IsLockedOut)
                return UserState.LockedOut;
            if (IsApproved == false)
                return UserState.Disabled;
    
            // User is not disabled or locked and has never logged in before
            if (LastLoginDate == default && IsApproved && IsLockedOut == false)
                return UserState.Inactive;
    
                return UserState.Active;
        }
    }
    
  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 01, 2018 @ 14:57
    Sebastiaan Janssen
    0

    Weird, that's just valid code.. your compilers seems very confused, I guess it works when you build from Visual Studio?

    Maybe vswhere is detecting a weird version of visual studio (older than 2017)?

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Sep 03, 2018 @ 06:13
    Søren Kottal
    0

    No, actually VS (2017 15.1, release 26403.7) doesn't build either.

    vswhere gives this

    Visual Studio Locator version 2.5.2+gebb9f26a3d [query version 1.9.77.53636]
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    instanceId: 93b68565
    installDate: 20-04-2017 10:59:23
    installationName: VisualStudio/15.1.0+26403.7
    installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
    installationVersion: 15.0.26403.7
    productId: Microsoft.VisualStudio.Product.Community
    productPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
    displayName: Visual Studio Community 2017
    description: Free, fully-featured IDE for students, open-source and individual developers
    channelId: VisualStudio.15.Release
    channelPath: C:\Users\skttl\AppData\Local\Microsoft\VisualStudio\Packages\_Channels\4CB340F5\catalog.json
    channelUri: https://aka.ms/vs/15/release/channel
    enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
    releaseNotes: https://go.microsoft.com/fwlink/?LinkId=660090#15.1.26403.07
    thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=660105
    properties_channelManifestId: VisualStudio.15.Release/15.1.0+26403.7
    properties_nickname:
    properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe
    
  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 03, 2018 @ 06:17
    Sebastiaan Janssen
    100

    I believe you would need 15.3 at the very least (not entirely sure, could have been 15.4 as well), so that would be the problem here!

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Sep 03, 2018 @ 08:07
    Søren Kottal
    0

    Yay, that worked :) Thanks!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 03, 2018 @ 08:09
    Sebastiaan Janssen
    0

    Lovely! I'll add it to docs. I assume you went straight to 15.8?

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Sep 03, 2018 @ 08:11
    Søren Kottal
    0

    Yes, 15.8 - didn't bother trying 15.3 before upgrading.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 03, 2018 @ 10:13
    Sebastiaan Janssen
    0

    No that makes total sense! :-)

    Just checked, it was 15.3 which introduced some new C# features that we're now using, added a note to the contrubution guidelines https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/.github/CONTRIBUTING_DETAILED.md#building-umbraco-from-source-code

Please Sign in or register to post replies

Write your reply to:

Draft