Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Commit 301d1d0

Browse files
committed
Resolved merge conflicts between coreclr and master
1 parent d803cce commit 301d1d0

20 files changed

Lines changed: 126 additions & 56 deletions

File tree

build.ps1

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,52 @@ function Install-Dotnet
55
if(($LASTEXITCODE -ne 0) -Or ((Test-Path Env:\APPVEYOR) -eq $true))
66
{
77
Write-Host "Dotnet CLI not found - downloading latest version"
8-
& { iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1')) }
8+
9+
# Prepare the dotnet CLI folder
10+
$env:DOTNET_INSTALL_DIR="$(Convert-Path "$PSScriptRoot")\.dotnet\win7-x64"
11+
if (!(Test-Path $env:DOTNET_INSTALL_DIR))
12+
{
13+
mkdir $env:DOTNET_INSTALL_DIR | Out-Null
14+
}
15+
16+
# Download the dotnet CLI install script
17+
if (!(Test-Path .\dotnet\install.ps1))
18+
{
19+
Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile ".\.dotnet\dotnet-install.ps1"
20+
}
21+
22+
# Run the dotnet CLI install
23+
& .\.dotnet\dotnet-install.ps1
24+
25+
# Add the dotnet folder path to the process. This gets skipped
26+
# by Install-DotNetCli if it's already installed.
27+
Remove-PathVariable $env:DOTNET_INSTALL_DIR
28+
$env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
29+
930
}
1031
}
1132

33+
function Remove-PathVariable
34+
{
35+
[cmdletbinding()]
36+
param([string] $VariableToRemove)
37+
$path = [Environment]::GetEnvironmentVariable("PATH", "User")
38+
$newItems = $path.Split(';') | Where-Object { $_.ToString() -inotlike $VariableToRemove }
39+
[Environment]::SetEnvironmentVariable("PATH", [System.String]::Join(';', $newItems), "User")
40+
$path = [Environment]::GetEnvironmentVariable("PATH", "Process")
41+
$newItems = $path.Split(';') | Where-Object { $_.ToString() -inotlike $VariableToRemove }
42+
[Environment]::SetEnvironmentVariable("PATH", [System.String]::Join(';', $newItems), "Process")
43+
}
44+
1245
function Restore-Packages
1346
{
1447
param([string] $DirectoryName)
15-
& dotnet restore -v Error ("""" + $DirectoryName + """")
48+
& dotnet restore -v Warning ("""" + $DirectoryName + """")
1649
}
1750

1851
function Test-Projects
1952
{
20-
& dotnet test;
53+
& dotnet test -c Release;
2154
if($LASTEXITCODE -ne 0)
2255
{
2356
exit 3

samples/Nancy.Demo.Hosting.Kestrel/HomeModule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ public class HomeModule : NancyModule
66
{
77
public HomeModule()
88
{
9-
Get["/"] = (o, token) => Task.FromResult<dynamic>("Hello from Nancy running on CoreCLR");
9+
Get("/", (args, ct) => Task.FromResult("Hello from Nancy running on CoreCLR"));
1010

11-
Get["/conneg/{name}"] = (parameters, token) => Task.FromResult<dynamic>(new Person() { Name = parameters.name });
11+
Get("/conneg/{name}", (args, token) => Task.FromResult(new Person() { Name = args.name }));
1212
}
1313
}
1414
}

src/Nancy/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
"buildOptions": {
1818
"embed": [
19+
"ErrorHandling/Resources/**/*.*",
1920
"Diagnostics/Resources/**/*.*",
2021
"Diagnostics/Views/**/*.*"
2122
]

test/Nancy.Authentication.Basic.Tests/Nancy.Authentication.Basic.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

test/Nancy.Authentication.Forms.Tests/Nancy.Authentication.Forms.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

test/Nancy.Embedded.Tests/Nancy.Embedded.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

test/Nancy.Encryption.MachineKey.Tests/Nancy.Encryption.MachineKey.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

test/Nancy.Hosting.Aspnet.Tests/Nancy.Hosting.Aspnet.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

test/Nancy.Hosting.Self.Tests/Nancy.Hosting.Self.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

test/Nancy.Metadata.Modules.Tests/Nancy.Metadata.Modules.Tests.xproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
@@ -16,5 +16,8 @@
1616
<PropertyGroup>
1717
<SchemaVersion>2.0</SchemaVersion>
1818
</PropertyGroup>
19+
<ItemGroup>
20+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
21+
</ItemGroup>
1922
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
20-
</Project>
23+
</Project>

0 commit comments

Comments
 (0)