今天将前期做的C#项目进行打包,将Localization属性改为Chinese后,报错:
Error 3
The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX40\dotNetFx40LP_Full_x86_x64zh-Hans.exe' in item 'Microsoft .NET Framework 4 (x86 and x64)' can not be located on disk. See Help for more information.
在网上查了好多资料,最后终于找到原因,因为4.0的.net虽然已经安装,但是是支持的English,这时候需要改为中文就会报错,我们可以通过下面方法解决:
将dotNetFx40LP_Full_x86_x64zh-Hans.exe文件放到C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\zh-Hans文件夹下重新Build,解决问题。