安装Xamarin时出错:错误1325('1.0.0'不是有效的短文件名)

时间:2014-06-02 07:01:01

标签: visual-studio xamarin xamarin.android

我使用Visual Studio 2012在我的Windows 7上安装了Xamarin.Android。 我上周安装了VS 2013,我不得不删除VS 2012。 然后我想安装Xamarin 3,从那以后我无法通过这个错误。 我删除了与Xamarin相关的所有组件,Xamarin.Android除外 当我尝试删除Xamarin.Android时,我再次遇到同样的错误。

任何帮助将不胜感激,我无法删除Xamarin.Android,我可以做一个全新的安装。

[Info] === Logging started: 2/06/2014  16:49:33 ===
[Info] Action start 16:49:33: INSTALL.
[Info] Action start 16:49:33: FindRelatedProducts.
[Info] Action ended 16:49:33: FindRelatedProducts. Return value 1.
[Info] Action start 16:49:33: AppSearch.
[Info] Action ended 16:49:33: AppSearch. Return value 1.
[Info] Action start 16:49:33: LaunchConditions.
[Info] Action ended 16:49:33: LaunchConditions. Return value 1.
[Info] Action start 16:49:33: SetVS2012_ROOT_FOLDER.
[Info] Action ended 16:49:33: SetVS2012_ROOT_FOLDER. Return value 1.
[Info] Action start 16:49:33: ValidateProductID.
[Info] Action ended 16:49:33: ValidateProductID. Return value 1.
[Info] Action start 16:49:33: CostInitialize.
[Info] Action ended 16:49:33: CostInitialize. Return value 1.
[Info] Action start 16:49:33: FileCost.
[Info] Action ended 16:49:33: FileCost. Return value 1.
[Info] Action start 16:49:33: CostFinalize.
[Info] Action ended 16:49:33: CostFinalize. Return value 1.
[Info] Action start 16:49:33: MigrateFeatureStates.
[Info] Action ended 16:49:33: MigrateFeatureStates. Return value 0.
[Info] Action start 16:49:33: InstallValidate.
[Info] Action ended 16:49:34: InstallValidate. Return value 1.
[Info] Action start 16:49:34: RemoveExistingProducts.
[Info] Action start 16:49:34: INSTALL.
[Info] Action start 16:49:34: AppSearch.
[Info] Action ended 16:49:34: AppSearch. Return value 1.
[Info] Action start 16:49:34: FindRelatedProducts.
[Info] Action ended 16:49:34: FindRelatedProducts. Return value 0.
[Info] Action start 16:49:34: LaunchConditions.
[Info] Action ended 16:49:34: LaunchConditions. Return value 1.
[Info] Action start 16:49:34: SetVS2012_ROOT_FOLDER.
[Info] Action ended 16:49:34: SetVS2012_ROOT_FOLDER. Return value 1.
[Info] Action start 16:49:34: ValidateProductID.
[Info] Action ended 16:49:34: ValidateProductID. Return value 1.
[Info] Action start 16:49:34: CostInitialize.
[Info] Action ended 16:49:34: CostInitialize. Return value 1.
[Info] Action start 16:49:34: FileCost.
[Info] Action ended 16:49:34: FileCost. Return value 1.
[Info] Action start 16:49:34: CostFinalize.
[Info] MSI (s) (54:44) [16:49:34:848]: Product: Xamarin.Android -- Error 1325. '1.0.0' is not a valid short file name.
[Info] Error 1325. '1.0.0' is not a valid short file name.
[Info] Action ended 16:49:34: CostFinalize. Return value 3.
[Info] Action ended 16:49:34: INSTALL. Return value 3.
[Info] Property(N): UpgradeCode = {93EC4CB5-3AF9-4041-9413-E5F304933393}
[Info] Property(N): VS2013DEVENV = C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
[Info] Property(N): VS2010_ROOT_FOLDER = c:\Program Files\Microsoft Visual Studio 10.0\
[Info] Property(N): VS2012_ROOT_FOLDER = C:\Program Files\\Microsoft Visual Studio 11.0
[Info] Property(N): VS2013_ITEMTEMPLATES_DIR = C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\
[Info] Property(N): VS2013_PROJECTTEMPLATES_DIR = C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\ProjectTemplates\
[Info] Property(N): VS2013_ROOT_FOLDER = C:\Program Files\Microsoft Visual Studio 12.0\
[Info] Property(N): VS2013_EXTENSIONS_DIR = C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\
[Info] Property(N): HAVE_PCL = C:\

1 个答案:

答案 0 :(得分:0)

我联系了Xamarin支持并按照他们提供的6次或更多步骤而没有运气,最后我在SO上找到了这个答案(here),

我必须卸载所有Xamarin组件(Xamarin.Android,Xamarin.Studio等),然后手动删除所有相关文件,然后运行Microsoft工具Fix-it(can be found here),只有重新安装才能正常工作。

希望这会有助于其他遇到类似问题的人