Link to home
Start Free TrialLog in
Avatar of rickhill11
rickhill11

asked on

VS 2019 Community C# Text file not getting updated

I have a data file on the client side of my MVC app.  

myProject.Client>wwwroot>Resources>code.txt.

When I edit that file using VS or any other editor:

When I debug, the edited data is not there.

On the other hand, when I publish to my web site, the edited data is there.

The properties are set to copy if newer, but this problem existed even when it was copy always.  

What am I missing?
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

here caching is your enemy try ctrl + f5
Avatar of rickhill11
rickhill11

ASKER

David,  Thanks for the reply.  

CTL F5 didn't work on Chrome.

Deleted all history, and still no joy

Tried the CTL-F5 trick in Edge as well.

Still not working.  I deleted an item from my .txt file, and when in debug, the program still finds it.

Also, the file is 365K, so not too big, but takes more than a second to load, and CTL-F5 returns in a second or less.

Any other ideas.

To Add, Decided to make a change to a title on one of the pages, and of course it wasn't there.  Used CTL-F5 to update the page, and with that the txt file was updated.

Scratching my head on this!
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.