Add temp logging, to debug azure pipeline

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-11-27 21:53:31 +01:00
parent 8fdf65c78a
commit 9af77e5f51

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
@@ -127,7 +128,10 @@ namespace Umbraco.Core.IO
var mappedRoot = MapPath(_hostingEnvironment.ApplicationVirtualPath);
if (!PathStartsWith(filePath, mappedRoot))
filePath = _hostingEnvironment.MapPathContentRoot(filePath);
{
// TODO this is going to fail.. Scripts Stylesheets need to use WebRoot, PartialViews need to use ContentRoot
filePath = _hostingEnvironment.MapPathWebRoot(filePath);
}
// yes we can (see above)
//// don't trust what we get, it may contain relative segments