Mar 3, 2011 at 1:23 PM
Edited Mar 3, 2011 at 1:26 PM
Not a bug in MRefBuilder, but in the use of the MRefBuilder. The platform version and path could be
confusing, see below:
Try this, if you are using the sample posted there...
1. Set the "clean intermediates" property to false.
2. Build the help, go to the output directory and examine the MRefBuilder.config file.
3. If it displays the following line for the platform for the .NET 4.0 build, then that is the source of the problem
<platform version="2.0" path="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\" />
4. Now, go to the SHFB installed directory, and in the Template folder, create a backup of that configuration file for later
restoration, manually change the platform to look like this...
<platform version="2.0" path="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\" />
Save this file. Build again and see the results. Restore that configuration after the verifications.
NOTE: For .NET 2.0 and later, the platform version should be 2.0, otherwise, you will get an exception.