Visual Studio Linux生成异常路径中的非法字符

时间:2018-10-30 02:57:30

标签: c++ linux visual-studio

因此,我正在尝试获取用于Linux的Visual Studio工具。我安装了Windows Linux子系统(Ubuntu)和所有内容。我从这里遵循了所有指示:targeting windows subsystem for linux from visual studio。我设置了gdbserver,并使Visual Studio intellisense与Linux连接。但是,当我尝试构建项目时,出现以下错误:

Severity    Code    Description Project File    Line    Suppression State
Error       Exception occured while copying sources to remote machine - Illegal characters in path. Testing Linux   C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Application Type\Linux\1.0\Linux.targets 157 

显然,错误出在Linux.targets文件中的以下代码中(第157行,这里是第二行):

 <Target Name="_CopySources" DependsOnTargets="_ConsolidateSourcesToCopy;_PrepareUpToDateChecks;_ValidateSources;_ResolveRemoteTarget" Condition="'$(ResolvedRemoteTarget)'!=''">
    <CopySources
      Sources="@(FinalSourcesToCopyRemotely)"
      AdditionalSources="@(AdditionalSourcesToCopyRemotely)"
      ProjectDir="$(ProjectDir)"
      RemoteProjectDir="$(RemoteProjectDir)"
      RemoteTarget="$(ResolvedRemoteTarget)"
      IntermediateDir="$(IntDir)"
      RemoteProjectDirFile="$(RemoteProjectDirFile)"
      UpToDateFile="$(CopySourcesUpToDateFile)"
      RemoteOutDir="$(RemoteOutDir)"
      LocalRemoteCopySources="$(LocalRemoteCopySources)"
      ProjectPublicIncludePath="$(ProjectPublicIncludePath)"
      LocalTargetPath="$(TargetPath)" >
      <Output TaskParameter="ResolvedRemoteProjectDir" PropertyName="_ResolvedRemoteProjectDir" />
      <Output TaskParameter="ResolvedProjectPublicIncludePath" PropertyName="RemoteIncludePath" />
      <Output TaskParameter="ResolvedTargetPath" PropertyName="ResolvedTargetPath" />
    </CopySources>
  </Target>

一些帮助将不胜感激。

0 个答案:

没有答案