Leave entrypoint uninitialized if not determinable
This commit is contained in:
parent
de8999c361
commit
24febb32f8
1 changed files with 4 additions and 1 deletions
|
@ -13,8 +13,11 @@ class Context {
|
||||||
[string]$StagePropertyName = "Stage";
|
[string]$StagePropertyName = "Stage";
|
||||||
|
|
||||||
Context() {
|
Context() {
|
||||||
|
try {
|
||||||
$this.EntryPoint = Get-Entrypoint;
|
$this.EntryPoint = Get-Entrypoint;
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
[string] ProjectRoot() {
|
[string] ProjectRoot() {
|
||||||
return Resolve-Path (Join-Path $PSScriptRoot ".." ".." "..");
|
return Resolve-Path (Join-Path $PSScriptRoot ".." ".." "..");
|
||||||
|
|
Loading…
Reference in a new issue