You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 6, 2018. It is now read-only.
Inconsistent behaviour between GetFileInfo & Watch #248
Tried with a PhysicalFileProvider.
If I call the FileChanged() method directly, the file provider is functioning properly and providing information on the file.
If I change the file, the change is not watched and the ChangeToken does not trigger.
If I update the code by removing the trailing .\, the ChangeToken is also functioning properly :
Yeah, we should fix this. The issue is more pervasive and affect other relative paths for instance - /Views/Home/../Shared/_Layout.cshtml is a valid rooted path, but Watch doesn't work with this.
We workaround this in Mvc (aspnet/Mvc@cfa9631) primarily because we wanted the view engine to work in a file provider agnostic way, but it would be good to resolve paths in PhysicalFileProvider too.
Activity
muratg commentedon Mar 20, 2017
@pranavkm thoughts?
pranavkm commentedon Mar 20, 2017
Yeah, we should fix this. The issue is more pervasive and affect other relative paths for instance -
/Views/Home/../Shared/_Layout.cshtmlis a valid rooted path, butWatchdoesn't work with this.We workaround this in Mvc (aspnet/Mvc@cfa9631) primarily because we wanted the view engine to work in a file provider agnostic way, but it would be good to resolve paths in
PhysicalFileProvidertoo.aspnet-hello commentedon Jan 1, 2018
This issue was moved to aspnet/Home#2546