Skip to content

Commit

Permalink
revert netcoreapp3.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel authored and Krzysztof-Cieslak committed Oct 6, 2019
1 parent 6973ddc commit 1554d47
Show file tree
Hide file tree
Showing 18 changed files with 599 additions and 552 deletions.
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_debug_netcore",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/netcoreapp3.0/fsautocomplete.dll",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/netcoreapp2.1/fsautocomplete.dll",
"args": ["--mode", "lsp"],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
Expand All @@ -33,7 +33,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_lsp_tests",
"program": "${workspaceFolder}/test/FsAutoComplete.Tests.Lsp/bin/Debug/netcoreapp3.0/FsAutoComplete.Tests.Lsp.dll",
"program": "${workspaceFolder}/test/FsAutoComplete.Tests.Lsp/bin/Debug/netcoreapp2.1/FsAutoComplete.Tests.Lsp.dll",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
Expand All @@ -43,7 +43,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_debug_netcore",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/netcoreapp3.0/fsautocomplete.dll",
"program": "${workspaceFolder}/src/FsAutoComplete/bin/Debug/netcoreapp2.1/fsautocomplete.dll",
"args": ["--mode", "stdio", "-v"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"taskName": "build_debug_netcore",
"type": "shell",
"command": "dotnet build src/FsAutoComplete -f netcoreapp3.0",
"command": "dotnet build src/FsAutoComplete -f netcoreapp2.1",
"group": {
"kind": "build",
"isDefault": true
Expand Down
4 changes: 2 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ let runIntegrationTest cfg (fn: string) : bool =
match cfg.Runtime with
| FSACRuntime.NET -> "net461"
| FSACRuntime.NETCoreSCD
| FSACRuntime.NETCoreFDD -> "netcoreapp3.0"
| FSACRuntime.NETCoreFDD -> "netcoreapp2.1"
let fsiArgs = sprintf "%s -- -pub -f %s -c %s" fn framework configuration
let fsiPath = FSIHelper.fsiPath
tracefn "Running fsi '%s %s' (from dir '%s')" fsiPath fsiArgs dir
Expand Down Expand Up @@ -222,7 +222,7 @@ Target "LocalRelease" (fun _ ->
DotNetCli.Publish (fun p ->
{ p with
Output = __SOURCE_DIRECTORY__ </> "bin/release_netcore"
Framework = "netcoreapp3.0"
Framework = "netcoreapp2.1"
Project = "src/FsAutoComplete"
Configuration = configuration
AdditionalArgs = [ "/p:SourceLinkCreate=true"; sprintf "/p:Version=%s" release.AssemblyVersion ] })
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "3.0.100"
"version": "2.1.801"
}
}
4 changes: 2 additions & 2 deletions paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version 5.201.1

framework: net461, netstandard2.0, netcoreapp3.0
framework: net461, netstandard2.0, netcoreapp2.1
source https://api.nuget.org/v3/index.json
source ./lib
storage: none
Expand Down Expand Up @@ -37,7 +37,7 @@ group Build
nuget FAKE ~> 4

group Test
framework: net461, netstandard2.0, netcoreapp2.0, netcoreapp3.0
framework: net461, netstandard2.0, netcoreapp2.0, netcoreapp2.1
source https://api.nuget.org/v3/index.json
storage: none

Expand Down
1,098 changes: 573 additions & 525 deletions paket.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net461;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
<AssemblyName>fsautocomplete.backgroundservices</AssemblyName>
<ServerGarbageCollection>true</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
Expand Down
1 change: 0 additions & 1 deletion src/FsAutoComplete.Core/CompilerServiceInterface.fs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ type FSharpCompilerServiceChecker(backgroundServiceEnabled) =
do checker.ImplicitlyStartBackgroundWork <- not backgroundServiceEnabled

do checker.BeforeBackgroundFileCheck.Add ignore

let fixFileName path =
if (try Path.GetFullPath path |> ignore; true with _ -> false) then path
else
Expand Down
2 changes: 1 addition & 1 deletion src/FsAutoComplete.Core/DotnetNewTemplate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module DotnetNewTemplate =
Options =
[ { ParameterName = "--framework";
ShortName = "-f";
ParameterType = TemplateParameterType.Choice ["netcoreapp3.0 - Target netcoreapp3.0";"netstandard2.0 - Target netstandard2.0"];
ParameterType = TemplateParameterType.Choice ["netcoreapp2.1 - Target netcoreapp2.1";"netstandard2.0 - Target netstandard2.0"];
ParameterDescription = "The target framework for the project.";
DefaultValue = "netstandard2.0" };

Expand Down
12 changes: 6 additions & 6 deletions src/FsAutoComplete/FsAutoComplete.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net461;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
<AssemblyName>fsautocomplete</AssemblyName>
<ServerGarbageCollection>true</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
Expand All @@ -24,7 +24,7 @@
<Compile Include="Program.fs" />
<None Include="FsAutoComplete.fsproj.paket.references" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
<Content Include="default.win32manifest">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
Expand All @@ -38,7 +38,7 @@
<!-- do not bundle the net461 exe inside the .net core tool package -->
<PropertyGroup Condition=" '$(PackAsTool)' == 'true' ">
<TargetFrameworks></TargetFrameworks>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>dotnet-fsautocomplete</AssemblyName>
<PackageId>fsautocomplete</PackageId>

Expand All @@ -55,11 +55,11 @@

<Target Name="CopyBackgroundServiceJsonToOutputDir"
AfterTargets="ComputeFilesToPublish"
Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">
Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
<ItemGroup>
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\netcoreapp3.0\fsautocomplete.backgroundservices.deps.json"
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\netcoreapp2.1\fsautocomplete.backgroundservices.deps.json"
RelativePath="fsautocomplete.backgroundservices.deps.json" />
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\netcoreapp3.0\fsautocomplete.backgroundservices.runtimeconfig.json"
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)/../FsAutoComplete.BackgroundServices\bin\$(Configuration)\netcoreapp2.1\fsautocomplete.backgroundservices.runtimeconfig.json"
RelativePath="fsautocomplete.backgroundservices.runtimeconfig.json" />
</ItemGroup>
</Target>
Expand Down
4 changes: 2 additions & 2 deletions test/FsAutoComplete.IntegrationTests/TestHelpers.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with
member s.Usage =
match s with
| Configuration _ -> "The configuration. The default is 'Debug'."
| Framework _ -> "The target framework. The default is 'netcoreapp3.0'"
| Framework _ -> "The target framework. The default is 'netcoreapp2.1'"
| Published -> "Test the exe published in '~/bin/' dirs instead"
| Runtime _ -> "The target runtime. If set, it will test a self-contained deployment."

Expand Down Expand Up @@ -50,7 +50,7 @@ let testConfig =
let results = parser.Parse (Array.ofList fsxArgs)

let configuration = results.GetResult (<@ Configuration @>, defaultValue = "Debug")
let framework = results.GetResult (<@ Framework @>, defaultValue = "netcoreapp3.0")
let framework = results.GetResult (<@ Framework @>, defaultValue = "netcoreapp2.1")
let rid = results.TryGetResult <@ Runtime @>
let published = results.Contains <@ Published @>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../src/FsAutoComplete/FsAutoComplete.fsproj">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/FsAutoComplete.Tests/FsAutoComplete.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit 1554d47

Please sign in to comment.