Skip to content
Snippets Groups Projects
Commit 2c230408 authored by Øystein Kristoffer Tveit's avatar Øystein Kristoffer Tveit :beginner:
Browse files

Move data file links

parent 16eb3993
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<Compile Include="Program.fs" /> <Compile Include="Program.fs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="../../data/channels.dat" /> <Content Include="data/channels.dat" />
<Content Include="../../data/config.json"> <Content Include="data/config.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
</ItemGroup> </ItemGroup>
......
...@@ -5,7 +5,7 @@ module Channels = ...@@ -5,7 +5,7 @@ module Channels =
open FSharp.Data open FSharp.Data
open System.IO open System.IO
let private filepath = __SOURCE_DIRECTORY__ + "/../../data/channels.dat" let private filepath = __SOURCE_DIRECTORY__ + "/data/channels.dat"
let mutable channels = let mutable channels =
File.ReadLines(filepath) File.ReadLines(filepath)
......
...@@ -7,7 +7,7 @@ module Config = ...@@ -7,7 +7,7 @@ module Config =
let private getConfig = let private getConfig =
let builder = new ConfigurationBuilder() let builder = new ConfigurationBuilder()
do builder.SetBasePath( Directory.GetCurrentDirectory() + "/../../data" ) |> ignore do builder.SetBasePath( Directory.GetCurrentDirectory() + "/data" ) |> ignore
do builder.AddJsonFile("config.json") |> ignore do builder.AddJsonFile("config.json") |> ignore
builder.Build() builder.Build()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment