Move data file links
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
<Compile Include="Program.fs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="../../data/channels.dat" />
|
||||
<Content Include="../../data/config.json">
|
||||
<Content Include="data/channels.dat" />
|
||||
<Content Include="data/config.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -5,7 +5,7 @@ module Channels =
|
||||
open FSharp.Data
|
||||
open System.IO
|
||||
|
||||
let private filepath = __SOURCE_DIRECTORY__ + "/../../data/channels.dat"
|
||||
let private filepath = __SOURCE_DIRECTORY__ + "/data/channels.dat"
|
||||
|
||||
let mutable channels =
|
||||
File.ReadLines(filepath)
|
||||
|
||||
@@ -7,7 +7,7 @@ module Config =
|
||||
|
||||
let private getConfig =
|
||||
let builder = new ConfigurationBuilder()
|
||||
do builder.SetBasePath( Directory.GetCurrentDirectory() + "/../../data" ) |> ignore
|
||||
do builder.SetBasePath( Directory.GetCurrentDirectory() + "/data" ) |> ignore
|
||||
do builder.AddJsonFile("config.json") |> ignore
|
||||
builder.Build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user