Skip to content

Commit

Permalink
use generated assemblyinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed May 7, 2022
1 parent b0a00ed commit 023db81
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 38 deletions.
1 change: 1 addition & 0 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ let runTool cmd args workingDir =
let getBuildParam = Environment.environVar

let DoNothing = ignore

// --------------------------------------------------------------------------------------
// Build Targets
// --------------------------------------------------------------------------------------
Expand Down
17 changes: 0 additions & 17 deletions src/Fornax.Core/AssemblyInfo.fs

This file was deleted.

1 change: 0 additions & 1 deletion src/Fornax.Core/Fornax.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<TargetFrameWork>netstandard2.0</TargetFrameWork>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="Model.fs" />
<None Include="paket.references" />
</ItemGroup>
Expand Down
17 changes: 0 additions & 17 deletions src/Fornax/AssemblyInfo.fs

This file was deleted.

7 changes: 5 additions & 2 deletions src/Fornax/Fornax.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ open LibGit2Sharp
open Suave.Sockets
open Suave.Sockets.Control
open Suave.WebSocket
open System.Reflection

type FornaxExiter () =
interface IExiter with
Expand Down Expand Up @@ -268,8 +269,10 @@ let main argv =
Console.ReadKey() |> ignore
printfn "Exiting..."
0
| Some Version ->
printfn "%s" AssemblyVersionInformation.AssemblyVersion
| Some Version ->
let assy = Assembly.GetExecutingAssembly()
let v = assy.GetCustomAttributes<AssemblyVersionAttribute>() |> Seq.head
printfn "%s" v.Version
0
| Some Clean ->
let publ = Path.Combine(cwd, "_public")
Expand Down
1 change: 0 additions & 1 deletion src/Fornax/Fornax.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<ItemGroup>
<ProjectReference Include="..\Fornax.Core\Fornax.Core.fsproj" />

<Compile Include="AssemblyInfo.fs" />
<Compile Include="FSIRefs.fs" />
<Compile Include="Generator.fs" />
<Compile Include="Fornax.fs" />
Expand Down

0 comments on commit 023db81

Please sign in to comment.