This might just be me having configured something wrong... The project works fine locally but the resource file reader breaks when I deploy to test environments.
I am trying to figure out where the Resource type provider is finding the filepath from. Locally everything works fine, but when I deploy my project ResXProvider seems to try to read the file from a path on my buildserver. Everything works if I actually go and put the resource file in the buildpath folder, so there is only some issue with where the system tries to go and find the resource file.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\TeamCity\BuildAgent3\work\d15d54883fe35cc\MyProject\Resources1.resx'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Resources.ResXResourceReader.EnsureResData()
at System.Resources.ResXResourceReader.System.Collections.IEnumerable.GetEnumerator()
at [email protected](Unit unitVar0)
at [email protected](Unit unitVar0)
at Microsoft.FSharp.Collections.SeqModule.TryFind[T](FSharpFunc2 predicate, IEnumerable
1 source)
at Microsoft.FSharp.Collections.SeqModule.Find[T](FSharpFunc2 predicate, IEnumerable
1 source)
at FSharp.Configuration.ResXProvider.readValue(String filePath, String name) in l:\github\FSharp.Configuration\src\FSharp.Configuration\ResXProvider.fs:line 20