I'm getting below error while trying to build the solution MSB3191 Unable to create directory "obj\Debug\net5.0\Razor\Pages". Could not find a part of the path 'obj\Debug\net5.0\Razor\Pages'
What I have tried so far:
- Given full permissions to obj folder
- Closed and reopened the VS
- Clean & rebuild the solution couple of times.
- Changing the configuration settings from Debug to Release and vice versa but nothing changed.
- Running Visual Studio under administration account.