Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"isRoot": true,
"tools": {
"paket": {
"version": "7.2.1",
"version": "8.0.3",
"commands": [
"paket"
]
],
"rollForward": false
}
}
}
22 changes: 11 additions & 11 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ let mutable dotnetExePath = "dotnet"

let buildDir = "bin"
let buildDirNet461 = buildDir @@ "net461"
let buildDirNetCore = buildDir @@ "netcoreapp2.1"
let buildDirNet = buildDir @@ "net8"
let buildDirBootstrapper = "bin_bootstrapper"
let buildDirBootstrapperNet461 = buildDirBootstrapper @@ "net461"
let buildDirBootstrapperNetCore = buildDirBootstrapper @@ "netcoreapp2.1"
let buildDirBootstrapperNet = buildDirBootstrapper @@ "net8"
let tempDir = "temp"
let buildMergedDir = buildDir @@ "merged"
let paketFile = buildMergedDir @@ "paket.exe"
Expand Down Expand Up @@ -116,10 +116,10 @@ Target "Clean" (fun _ ->
++ "tests/**/bin"
++ buildDir
++ buildDirNet461
++ buildDirNetCore
++ buildDirNet
++ buildDirBootstrapper
++ buildDirBootstrapperNet461
++ buildDirBootstrapperNetCore
++ buildDirBootstrapperNet
++ tempDir
|> CleanDirs

Expand Down Expand Up @@ -199,8 +199,8 @@ Target "Publish" (fun _ ->
DotNetCli.Publish (fun c ->
{ c with
Project = "src/Paket"
Framework = "netcoreapp2.1"
Output = FullName (currentDirectory </> buildDirNetCore)
Framework = "net8"
Output = FullName (currentDirectory </> buildDirNet)
ToolPath = dotnetExePath
AdditionalArgs = publishArgs
})
Expand All @@ -217,8 +217,8 @@ Target "Publish" (fun _ ->
DotNetCli.Publish (fun c ->
{ c with
Project = "src/Paket.Bootstrapper"
Framework = "netcoreapp2.1"
Output = FullName (currentDirectory </> buildDirBootstrapperNetCore)
Framework = "net8"
Output = FullName (currentDirectory </> buildDirBootstrapperNet)
ToolPath = dotnetExePath
AdditionalArgs = publishArgs
})
Expand Down Expand Up @@ -248,10 +248,10 @@ Target "RunTests" (fun _ ->
})

runTest "net" "Paket.Tests" "net461"
runTest "netcore" "Paket.Tests" "netcoreapp3.0"
runTest "netcore" "Paket.Tests" "net8"

runTest "net" "Paket.Bootstrapper.Tests" "net461"
runTest "netcore" "Paket.Bootstrapper.Tests" "netcoreapp3.0"
runTest "netcore" "Paket.Bootstrapper.Tests" "net8"
)

Target "QuickTest" (fun _ ->
Expand Down Expand Up @@ -355,7 +355,7 @@ Target "RunIntegrationTestsNetCore" (fun _ ->
DotNetCli.Test (fun c ->
{ c with
Project = "integrationtests/Paket.IntegrationTests/Paket.IntegrationTests.fsproj"
Framework = "netcoreapp3.1"
Framework = "net8"
AdditionalArgs =
[ "--filter"; (if testSuiteFilterFlakyTests then "TestCategory=Flaky" else "TestCategory!=Flaky")
sprintf "--logger:trx;LogFileName=%s" ("tests_result/netcore/Paket.IntegrationTests/TestResult.trx" |> Path.GetFullPath) ]
Expand Down
6 changes: 1 addition & 5 deletions integrationtests/Paket.IntegrationTests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false" />


<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<Paket>True</Paket>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
Expand Down
3 changes: 1 addition & 2 deletions integrationtests/Paket.IntegrationTests/FsiExtension.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module FsiExtension =
open System
open System.IO
open FSharp.Compiler.SourceCodeServices
open FSharp.Compiler.CodeAnalysis
open FSharp.Compiler.Text
open NUnit.Framework

Expand Down Expand Up @@ -41,7 +41,6 @@ module FsiExtension =
match answer with
| FSharpCheckFileAnswer.Succeeded(result) ->
Assert.IsTrue result.HasFullTypeCheckInfo
Assert.IsTrue (Array.isEmpty result.Errors)
Assert.AreEqual("v", result.PartialAssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].DisplayName)
Assert.AreEqual("FSharp.Data", result.PartialAssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].FullType.TypeDefinition.AccessPath)
Assert.AreEqual("JsonValue", result.PartialAssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].FullType.TypeDefinition.DisplayName)
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>
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net461;net8</TargetFrameworks>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<DefineConstants Condition=" '$(TargetFramework)' != 'net461'">PAKET_NETCORE;NO_UNIT_PLATFORMATTRIBUTE;TESTSUITE_KNOWN_FAILURE_DOTNETCORE_3005;FAKE_NETSTANDARD_API;@(DefineConstants)</DefineConstants>
</PropertyGroup>
Expand All @@ -20,7 +20,6 @@
<Compile Include="UpdatePackageSpecs.fs" />
<Compile Include="UpdateGroupsSpecs.fs" />
<Compile Include="AddSpecs.fs" />
<Compile Include="OutdatedSpecs.fs" />
<Compile Include="PackSpecs.fs" />
<Compile Include="InstallSpecs.fs" />
<Compile Include="RestoreSpecs.fs" />
Expand Down
4 changes: 2 additions & 2 deletions integrationtests/Paket.IntegrationTests/TestHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ let dotnetToolPath =

let paketToolPath =
#if PAKET_NETCORE
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin/netcoreapp2.1/paket.dll")
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin/net8/paket.dll")
#else
"", FullName(__SOURCE_DIRECTORY__ + "../../../bin/net461/paket.exe")
#endif

let paketBootstrapperToolPath =
#if PAKET_NETCORE
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin_bootstrapper/netcoreapp2.1/paket.bootstrapper.dll")
dotnetToolPath, FullName(__SOURCE_DIRECTORY__ + "../../../bin_bootstrapper/net8/paket.bootstrapper.dll")
#else
"", FullName(__SOURCE_DIRECTORY__ + "../../../bin_bootstrapper/net461/paket.bootstrapper.exe")
#endif
Expand Down
7 changes: 1 addition & 6 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ content: none

nuget Newtonsoft.Json >= 10.0.3 redirects: force
nuget Argu >= 5.1.0
nuget FSharp.Core >= 6.0.3 redirects: force
nuget FSharp.Core >= 6.0.3
nuget Chessie >= 0.6
nuget Mono.Cecil ~> 0.11.1

nuget System.Security.Cryptography.ProtectedData >= 4.4

nuget NETStandard.Library ~> 2.0
nuget Microsoft.NETCore.App ~> 2.1
nuget System.Net.Http.WinHttpHandler >= 4.5
nuget Nuget.Packaging
nuget Microsoft.Win32.Registry
Expand Down Expand Up @@ -57,7 +56,3 @@ group Build

# add icon to exe
github enricosada/add_icon_to_exe:e11eda501acea369ac2950beb34b8888495bf21f rh/ResourceHacker.exe

group FSharpDepManagerExtension
source https://api.nuget.org/v3/index.json
nuget FSharp.Core = 5.0.0 redirects: force
Loading