Skip to content

Commit 023db81

Browse files
committed
use generated assemblyinfo
1 parent b0a00ed commit 023db81

File tree

6 files changed

+6
-38
lines changed

6 files changed

+6
-38
lines changed

build.fsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ let runTool cmd args workingDir =
5757
let getBuildParam = Environment.environVar
5858

5959
let DoNothing = ignore
60+
6061
// --------------------------------------------------------------------------------------
6162
// Build Targets
6263
// --------------------------------------------------------------------------------------

src/Fornax.Core/AssemblyInfo.fs

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

src/Fornax.Core/Fornax.Core.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<TargetFrameWork>netstandard2.0</TargetFrameWork>
77
</PropertyGroup>
88
<ItemGroup>
9-
<Compile Include="AssemblyInfo.fs" />
109
<Compile Include="Model.fs" />
1110
<None Include="paket.references" />
1211
</ItemGroup>

src/Fornax/AssemblyInfo.fs

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

src/Fornax/Fornax.fs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ open LibGit2Sharp
1212
open Suave.Sockets
1313
open Suave.Sockets.Control
1414
open Suave.WebSocket
15+
open System.Reflection
1516

1617
type FornaxExiter () =
1718
interface IExiter with
@@ -268,8 +269,10 @@ let main argv =
268269
Console.ReadKey() |> ignore
269270
printfn "Exiting..."
270271
0
271-
| Some Version ->
272-
printfn "%s" AssemblyVersionInformation.AssemblyVersion
272+
| Some Version ->
273+
let assy = Assembly.GetExecutingAssembly()
274+
let v = assy.GetCustomAttributes<AssemblyVersionAttribute>() |> Seq.head
275+
printfn "%s" v.Version
273276
0
274277
| Some Clean ->
275278
let publ = Path.Combine(cwd, "_public")

src/Fornax/Fornax.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<ItemGroup>
1010
<ProjectReference Include="..\Fornax.Core\Fornax.Core.fsproj" />
1111

12-
<Compile Include="AssemblyInfo.fs" />
1312
<Compile Include="FSIRefs.fs" />
1413
<Compile Include="Generator.fs" />
1514
<Compile Include="Fornax.fs" />

0 commit comments

Comments
 (0)