Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
Add netstandard1.6 sample
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Jun 30, 2016
1 parent b1378bd commit a7b4e1d
Show file tree
Hide file tree
Showing 13 changed files with 216 additions and 144 deletions.
30 changes: 20 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,33 @@ install:
- appveyor DownloadFile https://download.microsoft.com/download/A/3/8/A38489F3-9777-41DD-83F8-2CBDFAB2520C/packages/DotNetCore.1.0.0-SDK.Preview2-x64.exe
- DotNetCore.1.0.0-SDK.Preview2-x64.exe /quiet
environment:
# Add the SDK to the PATH for the current build process
PATH: $(PATH);$(PROGRAMFILES)\dotnet\
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
build_script:
- appveyor-retry dotnet restore -v Minimal
- dotnet build **\project.json -c %CONFIGURATION%
- dotnet pack -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts .\src\LibNETStandard10\project.json
- dotnet pack -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts .\src\LibNETStandard11\project.json
- dotnet pack -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts .\src\LibNETStandard12\project.json
- dotnet pack -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts .\src\LibNETStandard13\project.json
- dotnet pack -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts .\src\LibNETStandard14\project.json
- dotnet pack -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts .\src\LibNETStandard15\project.json
- dotnet publish -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o .\artifacts\ConsoleApplication .\src\ConsoleApplication\project.json
- dotnet build "src\LibNETStandard10" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard10" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\LibNETStandard11" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard11" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\LibNETStandard12" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard12" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\LibNETStandard13" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard13" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\LibNETStandard14" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard14" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\LibNETStandard15" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard15" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\LibNETStandard16" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet pack "src\LibNETStandard16" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
- dotnet build "src\ConsoleApplication" -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
- dotnet publish "src\ConsoleApplication" -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts\ConsoleApplication
test_script:
- dotnet test -c %CONFIGURATION% --no-build .\test\MyFirstUnitTests
- dotnet test "test\MyFirstUnitTests" -c %CONFIGURATION%
artifacts:
- path: artifacts\**\*.*
cache:
- '%USERPROFILE%\.nuget\packages'
on_finish: # Run the demo to show that it works
- dotnet .\artifacts\ConsoleApplication\ConsoleApplication.dll
- dotnet artifacts\ConsoleApplication\ConsoleApplication.dll
9 changes: 8 additions & 1 deletion dotnet-core-appveyor_Solution.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{CD5E9CC7-853F-4CC8-BCC1-903046E6AC6B}"
EndProject
Expand Down Expand Up @@ -29,6 +29,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "LibNETStandard16", "src\LibNETStandard16\LibNETStandard16.xproj", "{2CE51C4B-862C-411B-9C88-9229A11A6F10}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -67,6 +69,10 @@ Global
{3684F642-7365-4140-8170-6ED2C2C6B886}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3684F642-7365-4140-8170-6ED2C2C6B886}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3684F642-7365-4140-8170-6ED2C2C6B886}.Release|Any CPU.Build.0 = Release|Any CPU
{2CE51C4B-862C-411B-9C88-9229A11A6F10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2CE51C4B-862C-411B-9C88-9229A11A6F10}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2CE51C4B-862C-411B-9C88-9229A11A6F10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CE51C4B-862C-411B-9C88-9229A11A6F10}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -80,5 +86,6 @@ Global
{5FD913A9-537D-4338-9AFF-362348EE4364} = {CD5E9CC7-853F-4CC8-BCC1-903046E6AC6B}
{03DC2983-2A58-4D72-A0F6-9BE3AE1112D4} = {CD5E9CC7-853F-4CC8-BCC1-903046E6AC6B}
{3684F642-7365-4140-8170-6ED2C2C6B886} = {6A66FA4B-D583-4D37-9FF6-828B56AFF413}
{2CE51C4B-862C-411B-9C88-9229A11A6F10} = {CD5E9CC7-853F-4CC8-BCC1-903046E6AC6B}
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions src/ConsoleApplication/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public static void Main(string[] args)
Console.WriteLine(LibNETStandard13.Class1.Message);
Console.WriteLine(LibNETStandard14.Class1.Message);
Console.WriteLine(LibNETStandard15.Class1.Message);
Console.WriteLine(LibNETStandard16.Class1.Message);
}
}
}
43 changes: 22 additions & 21 deletions src/ConsoleApplication/project.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true
},
"dependencies": {
"LibNETStandard10": { "target": "project" },
"LibNETStandard11": { "target": "project" },
"LibNETStandard12": { "target": "project" },
"LibNETStandard13": { "target": "project" },
"LibNETStandard14": { "target": "project" },
"LibNETStandard15": { "target": "project" }
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
}
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true
},
"dependencies": {
"LibNETStandard10": { "target": "project" },
"LibNETStandard11": { "target": "project" },
"LibNETStandard12": { "target": "project" },
"LibNETStandard13": { "target": "project" },
"LibNETStandard14": { "target": "project" },
"LibNETStandard15": { "target": "project" },
"LibNETStandard16": { "target": "project" }
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
}
}
}
}
30 changes: 15 additions & 15 deletions src/LibNETStandard10/project.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"version": "1.0.0-*",
"frameworks": {
"netstandard1.0": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8"
]
}
"version": "1.0.0-*",
"frameworks": {
"netstandard1.0": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8"
]
}
}
}
34 changes: 17 additions & 17 deletions src/LibNETStandard11/project.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"version": "1.0.0-*",
"frameworks": {
"netstandard1.1": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81"
]
}
"version": "1.0.0-*",
"frameworks": {
"netstandard1.1": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81"
]
}
}
}
40 changes: 20 additions & 20 deletions src/LibNETStandard12/project.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "1.0.0-*",
"frameworks": {
"netstandard1.2": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
"version": "1.0.0-*",
"frameworks": {
"netstandard1.2": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
}
}
40 changes: 20 additions & 20 deletions src/LibNETStandard13/project.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "1.0.0-*",
"frameworks": {
"netstandard1.3": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
"version": "1.0.0-*",
"frameworks": {
"netstandard1.3": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
}
}
40 changes: 20 additions & 20 deletions src/LibNETStandard14/project.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "1.0.0-*",
"frameworks": {
"netstandard1.4": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
"version": "1.0.0-*",
"frameworks": {
"netstandard1.4": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
}
}
40 changes: 20 additions & 20 deletions src/LibNETStandard15/project.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "1.0.0-*",
"frameworks": {
"netstandard1.5": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
"version": "1.0.0-*",
"frameworks": {
"netstandard1.5": {
"dependencies": {
"NETStandard.Library": "1.6.0"
},
"imports": [
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
]
}
}
}
9 changes: 9 additions & 0 deletions src/LibNETStandard16/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace LibNETStandard16
{
public class Class1
{
public const string Message = "Hello from netstandard1.6!";
}
}
Loading

0 comments on commit a7b4e1d

Please sign in to comment.