MSB6001:“cmd.exe”的命令行开关无效。 | Qt + Windows Phone RT

时间:2016-01-15 20:53:05

标签: c++ windows qt visual-studio-2013 store

嗨,我遇到了Visual Studio Express 2013的问题。当我想编译代码时,它让我发疯。因为我正在试图解决这个错误:

Error   1   error MSB6001: Invalid command line switch for "cmd.exe". Illegal characters in path.   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets  170 5   TabliceChemiczne

我可以使用Qt编译代码并在设备上部署。该应用程序看起来很棒,但我无法将其部署到商店。其中一个原因是资源文件在开发者控制台中无法使用:

Package acceptance validation error: The following image(s) specified in the appxManifest.xml of 13084Artmetic.TablicaMendelejewa-Artmetic_1q966j2m0cjrj.appx were not found: assets/logo_71x71.png, assets/logo_150x150.png, assets/logo_71x71.png, assets/logo_310x150.png, assets/logo_480x800.png

但事实上它们都在包中,因为我手动找到它。 第二个原因是我无法将Signature添加到包中:

Package acceptance validation error: The package 13084Artmetic.TablicaMendelejewa-Artmetic_1q966j2m0cjrj.appx uses an incorrect hash algorithm: http://www.w3.org/2001/04/xmlenc#sha512. Packages must use SHA-256 as the hash algorithm.

所以我决定安装Visual Studio agter尝试使用命令提示符创建Signature,但是我无法在与此xml代码相关的错误中编译代码:

 <Target Name="CustomBuild"
          Condition="'@(CustomBuild)' != ''"
          DependsOnTargets="SelectCustomBuild;ComputeCustomBuildOutput"
          BeforeTargets="$(CustomBuildToolBeforeTargets)"
          AfterTargets="$(CustomBuildToolAfterTargets)"
          >

    <PropertyGroup>
      <CustomBuildToolArchitecture Condition="'$(CustomBuildToolArchitecture)' == ''">Native32Bit</CustomBuildToolArchitecture>
    </PropertyGroup>

    <CustomBuild
      Sources                     ="@(CustomBuild)"
      BuildSuffix                 ="$(_BuildSuffix)"

      TrackerLogDirectory         ="%(CustomBuild.TrackerLogDirectory)"
      MinimalRebuildFromTracking  ="%(CustomBuild.MinimalRebuildFromTracking)"

      TLogReadFiles               ="@(CustomBuildTLogReadFiles)"
      TLogWriteFiles              ="@(CustomBuildTLogWriteFiles)"
      TrackFileAccess             ="$(TrackFileAccess)"
      ToolArchitecture            ="$(CustomBuildToolArchitecture)"
      TrackerFrameworkPath        ="$(CustomBuildTrackerFrameworkPath)"
      TrackerSdkPath              ="$(CustomBuildTrackerSdkPath)"

      AcceptableNonZeroExitCodes  ="%(CustomBuild.AcceptableNonZeroExitCodes)"
      >
    </CustomBuild>

0 个答案:

没有答案