c# - Embedded resource txt file is not updating -
i have project .txt file in folder. .txt file set embedded resource.
i use code read it:
var assembly = assembly.getexecutingassembly(); var manifestresources = assembly.getmanifestresourcenames(); string s = manifestresources.single(c => c.endswith("cats.txt"));
which works great.
however updated cats.txt , noticed project didn't update.
i deleted cats.txt , found still working fine , reading file.
i tried cleaning solution, rebuilding, , iisreset, seems insist file still there in assembly despite me removing it.
any ideas?
okay fixed restarting visual studio. have no idea how affected it.
when inspected properties of 'assembly', codebase attribute pointing older copy of dll in different folder, somewhere else on hard disk, had open in visual studio window.
i have no idea underlying mechanism caused happen, had correct version of solution open , debugging it.
closing solution , opening again fixed it. chalk 1 bizarro caching behaviour or something.
Comments
Post a Comment