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
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;
}
}
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:Anyone have any idea what is wrong?
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!
Thanks, msbuild fails on this:
those lines are
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)?No, actually VS (2017 15.1, release 26403.7) doesn't build either.
vswhere
gives thisI 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!
Yay, that worked :) Thanks!
Lovely! I'll add it to docs. I assume you went straight to 15.8?
Yes, 15.8 - didn't bother trying 15.3 before upgrading.
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
is working on a reply...