gpt4 book ai didi

c++ - 编译 Audacity MSB4023 项目元数据时出错,无法应用于 MSVC 2010

转载 作者:太空宇宙 更新时间:2023-11-04 05:44:12 24 4
gpt4 key购买 nike

我正在尝试编译 Audacity 2.0.0 并收到以下错误。我是 C/C++ 的新手,所以不确定如何对其进行故障排除。我正在使用 VS 2010 Professional SP1。

Error 449 error MSB4023: Cannot evaluate the item metadata "%(Extension)". The item metadata "%(Extension)" cannot be applied to the path ""C:\audacity-src-2.0.0\win\Debug\Audacity.vcxproj\analyze.ny"". Illegal characters in path. C:\audacity-src-2.0.0\win\ny.targets 65 6 Audacity

这是我的 ny.targets 文件。我进行了一些谷歌搜索,但到目前为止一无所获。

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName
Include="copy">
<Targets>_copy</Targets>
</AvailableItemName>
</ItemGroup>
<UsingTask
TaskName="copy"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target
Name="_copy"
BeforeTargets="$(copyBeforeTargets)"
AfterTargets="$(copyAfterTargets)"
Condition="'@(copy)' != ''"
DependsOnTargets="$(copyDependsOn);ComputecopyOutput"
Outputs="@(copy-&gt;'%(Outputs)')"
Inputs="@(copy);%(copy.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<copy
Remove="@(copy)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<copy_tlog
Include="%(copy.Outputs)"
Condition="'%(copy.Outputs)' != '' and '%(copy.ExcludedFromBuild)' != 'true'">
<Source>@(copy, '|')</Source>
</copy_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(copy.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(copy_tlog)' != '' and '%(copy_tlog.ExcludedFromBuild)' != 'true'"
File="$(IntDir)$(ProjectName).write.1.tlog"
Lines="^%(copy_tlog.Source);@(copy_tlog-&gt;'%(Fullpath)')" />
<copy
Condition="'@(copy)' != '' and '%(copy.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(copy.CommandLineTemplate)"
OutputName="%(copy.OutputName)"
AdditionalOptions="%(copy.AdditionalOptions)"
Inputs="@(copy)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputecopyOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputecopyOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputecopyOutput"
Condition="'@(copy)' != ''">
<ItemGroup>
<copyDirsToMake
Condition="'@(copy)' != '' and '%(copy.ExcludedFromBuild)' != 'true'"
Include="%(copy.Outputs)" />
<Link
Include="%(copyDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(copyDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(copyDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(copyDirsToMake-&gt;'%(RootDir)%(Directory)')" />
</Target>
</Project>

最佳答案

郑重声明,您的问题是由引号引起的。

转:

""C:\audacity-src-2.0.0\win\Debug\Audacity.vcxproj\analyze.ny""

进入

"C:\audacity-src-2.0.0\win\Debug\Audacity.vcxproj\analyze.ny"

你如何做到这一点取决于你如何传递输入。

关于c++ - 编译 Audacity MSB4023 项目元数据时出错,无法应用于 MSVC 2010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10092052/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com