There is an issue with PostSharp 1.5 and 2.0 that won't let you install i开发者_StackOverflow中文版t on the Windows 7 machine with the error message ".NET Framework 2.0 is not present on this computer".
To work around the issue you have to run the installer while being logged in with Administrator account. Not Admin group and not "run as Administrator", you have to be logged in with the Administrator account. Hope that helps, if someone has the same issue.
You can also open a command prompt under Administrator priviledge, then invoke the .msi installer
The possible reason was incorrect registry value - see http://www.sharpcrafters.com/forum/Topic8623-18-1.aspx#m8766
the registry value "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5\SP" is set to 0 on your computer but was expected to be 1.
you can set this registry value to 1 for the time of installation, then set it back to 0
it is a known , not PostSharp specific issue: https://superuser.com/questions/106647/net-framework-3-5-sp1-on-wind...
精彩评论