Skip to content

Commit

Permalink
Fixed build and test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Oct 31, 2015
1 parent e12f75e commit 4bf4f67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Build-Projects
function Test-Projects
{
param([string] $DirectoryName)
& dnx ("""" + $DirectoryName + """") test; if($LASTEXITCODE -ne 0) { exit 2 }
& dnx -p ("""" + $DirectoryName + """") test; if($LASTEXITCODE -ne 0) { exit 2 }
}

function Remove-PathVariable
Expand Down
1 change: 1 addition & 0 deletions Serilog.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{E9D1B5
.editorconfig = .editorconfig
Build.ps1 = Build.ps1
assets\CommonAssemblyInfo.cs = assets\CommonAssemblyInfo.cs
global.json = global.json
NuGet.Config = NuGet.Config
README.md = README.md
assets\Serilog.snk = assets\Serilog.snk
Expand Down
8 changes: 7 additions & 1 deletion test/Serilog.Tests/Context/LogContextTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ public async Task ContextPropertiesPersistWhenCrossAppDomainCallsAreEnabled()
[Fact]
public void DoesNotPreventCrossDomainCalls()
{
var projectRoot = Environment.CurrentDirectory;
while (!File.Exists(Path.Combine(projectRoot, "global.json")))
{
projectRoot = Directory.GetParent(projectRoot).FullName;
}

AppDomain domain = null;
try
{
Expand All @@ -157,7 +163,7 @@ public void DoesNotPreventCrossDomainCalls()

var domaininfo = new AppDomainSetup
{
ApplicationBase = @"..\..\artifacts\bin\",
ApplicationBase = Path.Combine(projectRoot, @"artifacts\bin\"),
PrivateBinPath = @"Serilog\Debug\dnx451;Serilog.Tests\Debug\dnx451".Replace("Debug", configuration)
};
var evidence = AppDomain.CurrentDomain.Evidence;
Expand Down

0 comments on commit 4bf4f67

Please sign in to comment.