Receiving access denied error from Visual Studio when trying to change target framework

It sounds like either:

1)The file has been marked read only. Check this by viewing the properties of the csproj.

Or

2)Your user does not has sufficient permissions to change the file – check security on the csproj.