Skip to content

Commit 76c087b

Browse files
committed
Run tests again + more updates
1 parent 5eccabb commit 76c087b

File tree

14 files changed

+45
-57
lines changed

14 files changed

+45
-57
lines changed

build.fsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,30 @@ Target.create "Pack" (fun _ ->
7575
let setParams (p:DotNet.PackOptions) = { p with OutputPath = Some outputPath; Configuration = config}
7676
DotNet.pack (fun p -> {
7777
setParams p with
78-
MSBuildParams= {
78+
MSBuildParams = {
7979
MSBuild.CliArguments.Create() with
8080
Properties = [
8181
"PackageVersion", release.NugetVersion
8282
"ReleaseNotes", releaseNotes
8383
]
8484
}
8585
}) "src/FSharp.TypeProviders.SDK.fsproj"
86+
DotNet.pack setParams "src/FSharp.TypeProvider.SDK.fsproj"
8687
DotNet.pack setParams "examples/BasicProvider/BasicProvider.fsproj"
8788
DotNet.pack setParams "examples/StressProvider/StressProvider.fsproj"
8889

90+
91+
DotNet.pack (fun p -> {
92+
setParams p with
93+
MSBuildParams = {
94+
MSBuild.CliArguments.Create() with
95+
Properties = [
96+
"PackageVersion", release.NugetVersion
97+
"ReleaseNotes", releaseNotes
98+
]
99+
}
100+
}) "templates/FSharp.TypeProviders.Templates.nuspec"
101+
89102
// TODO - get the bottom of why FAKE keeps creating a new .nuspec no matter the version
90103
// NuGet.NuGet.NuGetPack (fun p -> {
91104
// p with
@@ -125,7 +138,12 @@ Target.create "TestTemplatesNuGet" (fun _ ->
125138

126139
Target.create "All" ignore
127140

128-
"Clean" ==> "Pack"
129-
"Build" ==> "Examples" ==> "RunTests" ==> "Pack" ==> "TestTemplatesNuGet" ==> "All"
141+
"Clean"
142+
==> "Build"
143+
==> "Examples"
144+
==> "RunTests"
145+
==> "Pack"
146+
==> "TestTemplatesNuGet"
147+
==> "All"
130148

131149
Target.runOrDefault "All"

build.fsx.lock

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -240,21 +240,14 @@ NUGET
240240
System.Text.Encoding (>= 4.3)
241241
System.Threading (>= 4.3)
242242
System.Threading.Tasks (>= 4.3)
243-
System.IO.Compression (4.3)
243+
System.IO.FileSystem (4.3)
244244
Microsoft.NETCore.Platforms (>= 1.1)
245-
runtime.native.System (>= 4.3)
246-
runtime.native.System.IO.Compression (>= 4.3)
247-
System.Buffers (>= 4.3)
248-
System.Collections (>= 4.3)
249-
System.Diagnostics.Debug (>= 4.3)
245+
Microsoft.NETCore.Targets (>= 1.1)
250246
System.IO (>= 4.3)
251-
System.Resources.ResourceManager (>= 4.3)
247+
System.IO.FileSystem.Primitives (>= 4.3)
252248
System.Runtime (>= 4.3)
253-
System.Runtime.Extensions (>= 4.3)
254249
System.Runtime.Handles (>= 4.3)
255-
System.Runtime.InteropServices (>= 4.3)
256250
System.Text.Encoding (>= 4.3)
257-
System.Threading (>= 4.3)
258251
System.Threading.Tasks (>= 4.3)
259252
System.IO.FileSystem.Primitives (4.3)
260253
System.Runtime (>= 4.3)

examples/BasicProvider.Tests/paket.references

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ FSharp.Core
22

33
group Test
44
xunit
5-
xunit.runner.console
5+
xunit.runner.visualstudio
66
Microsoft.NET.Test.Sdk

examples/StressProvider.Tests/paket.references

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ FSharp.Core
22

33
group Test
44
xunit
5-
xunit.runner.console
5+
xunit.runner.visualstudio
66
Microsoft.NET.Test.Sdk

paket.dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ nuget FSharp.Core >= 4.5.2
55
group Test
66
source https://api.nuget.org/v3/index.json
77
nuget xunit
8-
nuget xunit.runner.console
8+
nuget xunit.runner.visualstudio
99
nuget Microsoft.NET.Test.Sdk

paket.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,4 @@ NUGET
254254
xunit.extensibility.execution (2.4.1)
255255
NETStandard.Library (>= 1.6.1) - restriction: && (< net452) (>= netstandard1.1)
256256
xunit.extensibility.core (2.4.1) - restriction: >= netstandard1.1
257-
xunit.runner.console (2.4.1)
257+
xunit.runner.visualstudio (2.4.2)

src/FSharp.TypeProviders.SDK.fsproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<OutputType>Library</OutputType>
6-
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
76
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
7+
8+
<PackageId>FSharp.TypeProviders.SDK</PackageId>
9+
<Version>1.0.0</Version>
810
<Authors>FSharp.TypeProviders.SDK contributors</Authors>
911
<PackageLicenseExpression>MIT</PackageLicenseExpression>
10-
<PackageProjectUrl>http://github.com/fsprojects/FSharp.TypeProviders.SDK</PackageProjectUrl>
11-
<PackageIconUrl>https://raw.githubusercontent.com/fsprojects/FSharp.TypeProviders.SDK/master/docs/files/img/logo.png</PackageIconUrl>
12+
<PackageProjectUrl>https://github.com/fsprojects/FSharp.TypeProviders.SDK#the-f-type-provider-sdk</PackageProjectUrl>
13+
<RepositoryUrl>http://github.com/fsprojects/FSharp.TypeProviders.SDK</RepositoryUrl>
14+
<RepositoryType>git</RepositoryType>
15+
<PackageIcon>logo.png</PackageIcon>
1216
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1317
<Description>The core implementation of an F# type provider</Description>
1418
<Copyright>Copyright 2020 FSharp.TypeProviders.SDK contributors</Copyright>
15-
<tags>F# fsharp typeprovider</tags>
19+
<Tags>F# fsharp typeprovider</Tags>
1620
</PropertyGroup>
1721
<ItemGroup>
1822
<Compile Include="ProvidedTypes.fsi" />

src/FSharp.TypeProviders.SDK.nuspec

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/ProvidedTypesTesting.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ type internal Testing() =
579579

580580
sb.ToString()
581581

582-
module internal Targets =
582+
module internal Targets =
583583

584584
let private (++) a b = System.IO.Path.Combine(a,b)
585585

templates/content/basic/src/MyProvider.Runtime/MyProvider.Runtime.fsproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
3-
<!-- See https://stackoverflow.com/questions/43921992/how-can-i-use-beforebuild-and-afterbuild-targets-with-visual-studio-2017 -->
4-
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
5-
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
63
<PropertyGroup>
74
<OutputType>Library</OutputType>
85
<TargetFramework>netstandard2.0</TargetFramework>

0 commit comments

Comments
 (0)