将VS2008转换为VS2010项目“找不到指定的文件”

时间:2010-07-29 18:21:56

标签: c++ visual-studio visual-studio-2008 visual-c++ visual-studio-2010

我正在尝试将Visual C ++ 2008项目升级到Visual C ++ 2010项目。但是,当我尝试这样做时,我收到以下错误:

The following error has occurred during XML parsing: File: C:\Documents and Settings\t-aruns\Documents\Visual Studio 2008\Projects\test\test\test.vcproj Line: 9 Column: 2 Error Message: The system cannot find the file specified. The file 'C:\Documents and Settings\t-aruns\Documents\Visual Studio 2008\Projects\test\test\test.vcproj' has failed to load.

有问题的.vcproj文件的相关行如下:

<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
    ProjectType="Visual C++"
    Version="9.00"
    Name="test"
    ProjectGUID="{D60ADCAC-E0C0-470A-91EC-097BB293141A}"
    Keyword="AtlProj"
    TargetFrameworkVersion="196613"
    >
    <Platforms>
        <Platform
            Name="Win32"
        />
    </Platforms>
    <ToolFiles>
    </ToolFiles>
    <Configurations>
        <Configuration
            Name="Debug|Win32"
            OutputDirectory="$(ConfigurationName)"
            IntermediateDirectory="$(ConfigurationName)"
            ConfigurationType="2"
            UseOfATL="2"
            ATLMinimizesCRunTimeLibraryUsage="false"
            CharacterSet="1"
            >
            <Tool
                Name="VCPreBuildEventTool"
            />
...

任何人都可以就此错误消息的原因提供一些指导吗?

谢谢。

〜阿伦

1 个答案:

答案 0 :(得分:1)

您是否从.vcproj文件中具有安全设置的其他位置复制了这些文件,而不是尝试升级的用户?