From 1e02f1db51b55828468ccd040811ab085d838e8a Mon Sep 17 00:00:00 2001 From: Ryan Riley Date: Sun, 16 Jun 2019 14:56:40 -0500 Subject: [PATCH] Update Gluon.CLI to netcoreapp2.2 --- .gitignore | 1 + .paket/Paket.Restore.targets | 218 ++++++++++++++++++++++++----- paket.lock | 48 +++---- samples/SampleApp/SampleApp.fsproj | 12 +- samples/SampleLib/SampleLib.fsproj | 4 +- samples/WebApp/WebApp.csproj | 18 +-- src/Gluon.CLI/Gluon.CLI.fsproj | 3 +- src/Gluon.Client/package.json | 4 +- src/Gluon.Client/paket.template | 2 +- src/Gluon/TypeScript.CodeGen.fs | 2 +- 10 files changed, 229 insertions(+), 83 deletions(-) diff --git a/.gitignore b/.gitignore index f2d5cc0..d0a02a6 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ node_modules/ /paket.exe TestResults/ .vscode/ +.ionide/ diff --git a/.paket/Paket.Restore.targets b/.paket/Paket.Restore.targets index 55292f3..818b4ec 100644 --- a/.paket/Paket.Restore.targets +++ b/.paket/Paket.Restore.targets @@ -11,23 +11,49 @@ $(MSBuildThisFileDirectory)..\ $(PaketRootPath)paket-files\paket.restore.cached $(PaketRootPath)paket.lock + classic + proj + assembly + native /Library/Frameworks/Mono.framework/Commands/mono mono - - $(PaketRootPath)paket.exe - $(PaketToolsPath)paket.exe - "$(PaketExePath)" - $(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)" - + + $(PaketRootPath)paket.bootstrapper.exe + $(PaketToolsPath)paket.bootstrapper.exe + $([System.IO.Path]::GetDirectoryName("$(PaketBootStrapperExePath)"))\ + + + + + $(PaketRootPath)paket.exe + $(PaketToolsPath)paket.exe + $(PaketToolsPath)paket.exe + $(_PaketBootStrapperExeDir)paket.exe + paket.exe + + + $(PaketRootPath)paket + $(PaketToolsPath)paket + $(PaketToolsPath)paket + + + $(PaketRootPath)paket.exe + $(PaketToolsPath)paket.exe + + + $(PaketBootStrapperExeDir)paket.exe + + + paket + + <_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)")) - dotnet "$(PaketExePath)" + dotnet "$(PaketExePath)" + $(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)" + "$(PaketExePath)" - - "$(PaketExePath)" - $(PaketRootPath)paket.bootstrapper.exe - $(PaketToolsPath)paket.bootstrapper.exe "$(PaketBootStrapperExePath)" $(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)" @@ -36,9 +62,18 @@ true true + + + True + + $(BaseIntermediateOutputPath.TrimEnd('\').TrimEnd('\/')) - + + + + + @@ -72,28 +107,35 @@ true + + + true + - - - + + + - + - $(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).paket.references.cached + $(PaketIntermediateOutputPath)\$(MSBuildProjectFile).paket.references.cached $(MSBuildProjectFullPath).paket.references $(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references $(MSBuildProjectDirectory)\paket.references - + false true true @@ -121,8 +163,8 @@ - - + + @@ -132,26 +174,30 @@ - + - + + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',').Length) $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0]) $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1]) $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4]) + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[5]) %(PaketReferencesFileLinesInfo.PackageVersion) All - runtime + runtime + runtime true + true - $(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).paket.clitools + $(PaketIntermediateOutputPath)/$(MSBuildProjectFile).paket.clitools @@ -170,33 +216,43 @@ - + false + $(MSBuildVersion) + 15.8.0 - + - <_NuspecFilesNewLocation Include="$(BaseIntermediateOutputPath)$(Configuration)\*.nuspec"/> + <_NuspecFilesNewLocation Include="$(PaketIntermediateOutputPath)\$(Configuration)\*.nuspec"/> + + $(MSBuildProjectDirectory)/$(MSBuildProjectFile) true - false - true - $(BaseIntermediateOutputPath)$(Configuration) - $(BaseIntermediateOutputPath) + false + true + false + true + false + true + false + true + $(PaketIntermediateOutputPath)\$(Configuration) + $(PaketIntermediateOutputPath) - <_NuspecFiles Include="$(AdjustedNuspecOutputPath)\*.nuspec"/> + <_NuspecFiles Include="$(AdjustedNuspecOutputPath)\*.$(PackageVersion).nuspec"/> @@ -205,9 +261,99 @@ - - + + + + - = 1.1) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Diagnostics.Tracing (4.3) - restriction: || (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) System.Globalization (4.3) - restriction: || (&& (< net45) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) @@ -94,11 +94,11 @@ NUGET System.Runtime.Extensions (>= 4.3) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) System.Runtime.InteropServices (>= 4.3) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) System.IO (4.3) - restriction: || (&& (< net45) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.Text.Encoding (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.Threading.Tasks (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.Text.Encoding (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.Threading.Tasks (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Linq (4.3) - restriction: && (< net45) (>= netstandard2.0) System.Collections (>= 4.3) - restriction: || (&& (< net45) (>= net461) (>= netstandard1.6)) (&& (< net45) (>= net461) (< netstandard1.6)) (&& (< net45) (>= netstandard2.0)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Diagnostics.Debug (>= 4.3) - restriction: || (&& (< net45) (>= net461) (>= netstandard1.6)) (&& (< net45) (>= netstandard2.0)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) @@ -130,11 +130,11 @@ NUGET System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Threading (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Reflection (4.3) - restriction: && (< net45) (>= netstandard2.0) - Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.IO (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.Reflection.Primitives (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.IO (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.Reflection.Primitives (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Reflection.Emit (4.3) - restriction: && (< net45) (>= netstandard2.0) System.IO (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0)) System.Reflection (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0)) @@ -167,23 +167,23 @@ NUGET System.Reflection (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Runtime (4.3) - restriction: || (&& (< net45) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Runtime.Extensions (4.3) - restriction: || (&& (< net45) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) - System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) + System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (< portable-net45+win8+wp8+wpa81)) (&& (>= netstandard2.0) (< portable-net45+win8+wp8+wpa81)) System.Runtime.Handles (4.3) - restriction: || (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) System.Runtime (>= 4.3) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) System.Runtime.InteropServices (4.3) - restriction: && (< net45) (>= netstandard2.0) - Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - System.Reflection (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - System.Reflection.Primitives (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (>= net462) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) - System.Runtime.Handles (>= 4.3) - restriction: || (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + Microsoft.NETCore.Platforms (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + Microsoft.NETCore.Targets (>= 1.1) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + System.Reflection (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + System.Reflection.Primitives (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + System.Runtime (>= 4.3) - restriction: || (&& (< net45) (>= net461) (< netstandard1.2)) (&& (< net45) (>= net461) (< netstandard1.3)) (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (< netstandard1.2) (>= netstandard2.0) (< win8)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (>= net462) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) + System.Runtime.Handles (>= 4.3) - restriction: || (&& (< net45) (>= net461) (>= netstandard1.5)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (< net45) (>= net461) (>= netstandard2.0)) (&& (< net45) (>= netstandard2.0) (< win8) (< wpa81)) (&& (>= net461) (>= netcoreapp1.1)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= netcoreapp1.1) (>= netstandard2.0)) (&& (>= netstandard2.0) (< portable-net45+win8+wpa81)) System.Security.Claims (4.3) - restriction: && (< net45) (>= netstandard2.0) System.Collections (>= 4.3) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) System.Globalization (>= 4.3) - restriction: || (&& (< net46) (>= net461)) (&& (< net46) (>= netstandard2.0)) diff --git a/samples/SampleApp/SampleApp.fsproj b/samples/SampleApp/SampleApp.fsproj index 3d8aafb..e493739 100644 --- a/samples/SampleApp/SampleApp.fsproj +++ b/samples/SampleApp/SampleApp.fsproj @@ -68,7 +68,7 @@ - + ..\..\packages\FSharp.Core\lib\net45\FSharp.Core.dll @@ -77,7 +77,7 @@ - + ..\..\packages\FSharp.Core\lib\netstandard1.6\FSharp.Core.dll @@ -88,7 +88,7 @@ - + ..\..\packages\Microsoft.Owin\lib\net451\Microsoft.Owin.dll @@ -99,7 +99,7 @@ - + ..\..\packages\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll @@ -108,7 +108,7 @@ - + ..\..\packages\Newtonsoft.Json\lib\netstandard2.0\Newtonsoft.Json.dll @@ -119,7 +119,7 @@ - + ..\..\packages\Owin\lib\net40\Owin.dll diff --git a/samples/SampleLib/SampleLib.fsproj b/samples/SampleLib/SampleLib.fsproj index b01ff3b..b68e17c 100644 --- a/samples/SampleLib/SampleLib.fsproj +++ b/samples/SampleLib/SampleLib.fsproj @@ -67,7 +67,7 @@ --> - + ..\..\packages\FSharp.Core\lib\net45\FSharp.Core.dll @@ -76,7 +76,7 @@ - + ..\..\packages\FSharp.Core\lib\netstandard1.6\FSharp.Core.dll diff --git a/samples/WebApp/WebApp.csproj b/samples/WebApp/WebApp.csproj index 62faa7c..b3fc84a 100644 --- a/samples/WebApp/WebApp.csproj +++ b/samples/WebApp/WebApp.csproj @@ -136,7 +136,7 @@ yarn run build true - + ..\..\packages\FSharp.Core\lib\net45\FSharp.Core.dll @@ -145,7 +145,7 @@ yarn run build - + ..\..\packages\FSharp.Core\lib\netstandard1.6\FSharp.Core.dll @@ -156,7 +156,7 @@ yarn run build - + ..\..\packages\Microsoft.Owin\lib\net451\Microsoft.Owin.dll @@ -167,7 +167,7 @@ yarn run build - + ..\..\packages\Microsoft.Owin.Host.HttpListener\lib\net451\Microsoft.Owin.Host.HttpListener.dll @@ -178,7 +178,7 @@ yarn run build - + ..\..\packages\Microsoft.Owin.Host.SystemWeb\lib\net451\Microsoft.Owin.Host.SystemWeb.dll @@ -189,7 +189,7 @@ yarn run build - + ..\..\packages\Microsoft.Owin.Hosting\lib\net451\Microsoft.Owin.Hosting.dll @@ -200,7 +200,7 @@ yarn run build - + ..\..\packages\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll @@ -209,7 +209,7 @@ yarn run build - + ..\..\packages\Newtonsoft.Json\lib\netstandard2.0\Newtonsoft.Json.dll @@ -220,7 +220,7 @@ yarn run build - + ..\..\packages\Owin\lib\net40\Owin.dll diff --git a/src/Gluon.CLI/Gluon.CLI.fsproj b/src/Gluon.CLI/Gluon.CLI.fsproj index 90ef19a..a9eef96 100644 --- a/src/Gluon.CLI/Gluon.CLI.fsproj +++ b/src/Gluon.CLI/Gluon.CLI.fsproj @@ -1,6 +1,6 @@  - netcoreapp2.0;net461 + netcoreapp2.2;net461 {72FDBA6E-CE61-4811-9F18-39FAA585B5EA} Exe Gluon.CLI @@ -8,7 +8,6 @@ Gluon.CLI true true - true diff --git a/src/Gluon.Client/package.json b/src/Gluon.Client/package.json index a4e14f9..4e47c85 100644 --- a/src/Gluon.Client/package.json +++ b/src/Gluon.Client/package.json @@ -8,8 +8,8 @@ "clean": "rimraf ./bin && mkdir bin && rimraf ./dist && mkdir dist", "tsc": "tsc -p ./", "minify": "uglifyjs dist/Gluon.js -o dist/Gluon.min.js --source-map dist/Gluon.min.js.map -p 1 -m", - "dotnet-build": "dotnet build ../Gluon.CLI --configuration Release", - "postdotnet-build": "cpx ../Gluon.CLI/bin/Release/**/*.* ./bin", + "dotnet-build": "dotnet publish ../Gluon.CLI --configuration Release -f net461 && dotnet publish ../Gluon.CLI --configuration Release -f netcoreapp2.2", + "postdotnet-build": "cpx '../Gluon.CLI/bin/Release/net461/publish/*.*' './bin/net461' && cpx '../Gluon.CLI/bin/Release/netcoreapp2.2/publish/*.*' './bin/netcoreapp2.2'", "ts-build": "yarn run tsc && yarn run minify", "prebuild": "yarn run clean", "build": "yarn run dotnet-build && yarn run ts-build", diff --git a/src/Gluon.Client/paket.template b/src/Gluon.Client/paket.template index 04c112d..9b0d7e5 100644 --- a/src/Gluon.Client/paket.template +++ b/src/Gluon.Client/paket.template @@ -15,5 +15,5 @@ files dist/Gluon.js.map ==> content\Scripts dist/Gluon.min.js ==> content\Scripts dist/Gluon.min.js.map ==> content\Scripts - bin/netcoreapp2.0/*.* ==> tools\netcoreapp2.0 + bin/netcoreapp2.2/*.* ==> tools\netcoreapp2.2 bin/net461/*.* ==> tools\net461 diff --git a/src/Gluon/TypeScript.CodeGen.fs b/src/Gluon/TypeScript.CodeGen.fs index 69c3053..895cf9e 100644 --- a/src/Gluon/TypeScript.CodeGen.fs +++ b/src/Gluon/TypeScript.CodeGen.fs @@ -32,7 +32,7 @@ let makeType t = let makeOptionType t = S.TypeReference ("Gluon.Option", [t]) -let rec typeLiteralNs ns sch = +let rec typeLiteralNs (ns:string list) sch = let ( ! ) t = typeLiteralNs ns t match sch with | Schema.ArrayType t | Schema.ListType t | Schema.SequenceType t -> S.ArrayType !t