Skip to content

Commit 98f90e0

Browse files
committed
Version 1.0.0
1 parent 62005ea commit 98f90e0

File tree

3 files changed

+67
-39
lines changed

3 files changed

+67
-39
lines changed

build.fsx

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ let appSrcDir = "./src/"
1616
let testsBuildDir = "./build/tests/"
1717
let testsSrcDir = "./tests"
1818

19+
let nugetBinDir = "./nuget/bin/"
20+
let nugetOutputDir = "./nuget/output/"
21+
1922
let project = "Suave.IIS"
20-
let description = ""
23+
let description = "Set of helper functions for smooth running Suave web server on Internet Information Services (IIS)"
2124

2225
// Read release notes & version info from RELEASE_NOTES.md
2326
let release = File.ReadLines "RELEASE_NOTES.md" |> ReleaseNotesHelper.parseReleaseNotes
@@ -77,6 +80,33 @@ Target "RunTests" (fun _ ->
7780
NUnit3 (fun p -> { p with ResultSpecs = [dir + "\TestResult.xml"]}) [file]
7881
)
7982

83+
Target "Nuget" <| fun () ->
84+
CreateDir nugetOutputDir
85+
CreateDir nugetBinDir
86+
let nugetFiles = [
87+
"Suave.IIS.xml"
88+
"Suave.IIS.dll"
89+
]
90+
nugetFiles |> List.map (fun f -> appBuildDir + "Suave.IIS/" + f) |> CopyFiles nugetBinDir
91+
92+
// Format the release notes
93+
let releaseNotes = release.Notes |> String.concat "\n"
94+
NuGet (fun p ->
95+
{ p with
96+
Project = project
97+
Description = description
98+
Version = release.NugetVersion
99+
ReleaseNotes = releaseNotes
100+
OutputPath = nugetOutputDir
101+
References = nugetFiles |> List.filter (fun x -> x.EndsWith(".dll"))
102+
Files = nugetFiles |> List.map (fun f -> ("bin/" + f, Some("lib/net45"), None))
103+
Dependencies =
104+
[
105+
"Suave", GetPackageVersion ("./packages") "Suave"
106+
]
107+
})
108+
"nuget/Suave.IIS.nuspec"
109+
80110
// Dependencies
81111
"CleanTests" ==> "BuildTests"
82112
"BuildTests" ==> "RunTests"

nuget/Suave.IIS.nuspec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
4+
<id>@project@</id>
5+
<title>Suave IIS</title>
6+
<version>@build.number@</version>
7+
<authors>Roman Provaznik</authors>
8+
<owners>Roman Provaznik</owners>
9+
<licenseUrl>http://github.com/dzoukr/Suave.IIS/blob/master/LICENSE</licenseUrl>
10+
<projectUrl>http://github.com/dzoukr/Suave.IIS</projectUrl>
11+
<iconUrl>https://avatars2.githubusercontent.com/u/851307?v=3&amp;s=64</iconUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<summary>Set of helper functions for smooth running Suave web server on Internet Information Services (IIS)</summary>
14+
<description>@description@</description>
15+
<releaseNotes>@releaseNotes@</releaseNotes>
16+
<copyright>Copyright 2016</copyright>
17+
<tags>Suave,IIS,Internet Information Services</tags>
18+
@dependencies@
19+
@references@
20+
</metadata>
21+
@files@
22+
</package>

src/Suave.IIS/AssemblyInfo.fs

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,17 @@
1-
namespace Suave.IIS.AssemblyInfo
2-
1+
// Auto-Generated by FAKE; do not edit
2+
namespace System
33
open System.Reflection
4-
open System.Runtime.CompilerServices
5-
open System.Runtime.InteropServices
6-
7-
// General Information about an assembly is controlled through the following
8-
// set of attributes. Change these attribute values to modify the information
9-
// associated with an assembly.
10-
[<assembly: AssemblyTitle("Suave.IIS")>]
11-
[<assembly: AssemblyDescription("")>]
12-
[<assembly: AssemblyConfiguration("")>]
13-
[<assembly: AssemblyCompany("")>]
14-
[<assembly: AssemblyProduct("Suave.IIS")>]
15-
[<assembly: AssemblyCopyright("Copyright © 2016")>]
16-
[<assembly: AssemblyTrademark("")>]
17-
[<assembly: AssemblyCulture("")>]
18-
19-
// Setting ComVisible to false makes the types in this assembly not visible
20-
// to COM components. If you need to access a type in this assembly from
21-
// COM, set the ComVisible attribute to true on that type.
22-
[<assembly: ComVisible(false)>]
23-
24-
// The following GUID is for the ID of the typelib if this project is exposed to COM
25-
[<assembly: Guid("0a7b66ec-c871-47aa-9684-3372ef7954f7")>]
264

27-
// Version information for an assembly consists of the following four values:
28-
//
29-
// Major Version
30-
// Minor Version
31-
// Build Number
32-
// Revision
33-
//
34-
// You can specify all the values or you can default the Build and Revision Numbers
35-
// by using the '*' as shown below:
36-
// [<assembly: AssemblyVersion("1.0.*")>]
37-
[<assembly: AssemblyVersion("1.0.0.0")>]
38-
[<assembly: AssemblyFileVersion("1.0.0.0")>]
5+
[<assembly: AssemblyTitleAttribute("Suave.IIS")>]
6+
[<assembly: AssemblyProductAttribute("Suave.IIS")>]
7+
[<assembly: AssemblyDescriptionAttribute("")>]
8+
[<assembly: AssemblyVersionAttribute("1.0.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("1.0.0")>]
10+
do ()
3911

40-
do
41-
()
12+
module internal AssemblyVersionInformation =
13+
let [<Literal>] AssemblyTitle = "Suave.IIS"
14+
let [<Literal>] AssemblyProduct = "Suave.IIS"
15+
let [<Literal>] AssemblyDescription = ""
16+
let [<Literal>] AssemblyVersion = "1.0.0"
17+
let [<Literal>] AssemblyFileVersion = "1.0.0"

0 commit comments

Comments
 (0)