TODO: comments are not showing up in the Task List

I've noticed that the TODO comments will show up in the Task List of Closed Files which are under the App_Code folder. Any comments in the code behind of a page or usercontrol (ie. not in the App_Code Folder) then it won't show in the Task List.

I have started using the #warning and starting the warning message with TODO: in the hope that this issue may one day be fixed!


An easy way to find any TODO items is to simply use the Find in Files search option, search for //TODO, and select the Look in option to be 'Entire Solution'.

This will look in all the files, and not just the open ones.


By default, TODO comments are only shown in the task list for currently opened files. Visual Studio doesn't automatically search through the entire solution.

Over time, many users end up with most of a project's files open most of the time (at least for moderately sized projects) because Visual Studio remembers these preferences in a *.suo file. Users generally don't close the files, and so open files tend to accumulate. The *.suo files themselves are not typically kept in source control, and so when rebuilding your workstation everything is not opened up right away anymore and the tasks won't show.