How I solved my issue:
- Go to the file which appears as Miscellaneous Files inside Solution Explorer.
- Right-Click file and select Exclude from project.
- Right-Click your project/folder where the file was and click add Existing Item, and add the file you just removed back into your project.