<bdo id='QfG2m'></bdo><ul id='QfG2m'></ul>

<small id='QfG2m'></small><noframes id='QfG2m'>

  1. <i id='QfG2m'><tr id='QfG2m'><dt id='QfG2m'><q id='QfG2m'><span id='QfG2m'><b id='QfG2m'><form id='QfG2m'><ins id='QfG2m'></ins><ul id='QfG2m'></ul><sub id='QfG2m'></sub></form><legend id='QfG2m'></legend><bdo id='QfG2m'><pre id='QfG2m'><center id='QfG2m'></center></pre></bdo></b><th id='QfG2m'></th></span></q></dt></tr></i><div id='QfG2m'><tfoot id='QfG2m'></tfoot><dl id='QfG2m'><fieldset id='QfG2m'></fieldset></dl></div>
    <tfoot id='QfG2m'></tfoot>
  2. <legend id='QfG2m'><style id='QfG2m'><dir id='QfG2m'><q id='QfG2m'></q></dir></style></legend>
    1. Visual Studio - 路径中的非法字符

      Visual Studio- Illegal characters in path(Visual Studio - 路径中的非法字符)
        <tbody id='gsQsQ'></tbody>
      • <small id='gsQsQ'></small><noframes id='gsQsQ'>

          <bdo id='gsQsQ'></bdo><ul id='gsQsQ'></ul>
        • <i id='gsQsQ'><tr id='gsQsQ'><dt id='gsQsQ'><q id='gsQsQ'><span id='gsQsQ'><b id='gsQsQ'><form id='gsQsQ'><ins id='gsQsQ'></ins><ul id='gsQsQ'></ul><sub id='gsQsQ'></sub></form><legend id='gsQsQ'></legend><bdo id='gsQsQ'><pre id='gsQsQ'><center id='gsQsQ'></center></pre></bdo></b><th id='gsQsQ'></th></span></q></dt></tr></i><div id='gsQsQ'><tfoot id='gsQsQ'></tfoot><dl id='gsQsQ'><fieldset id='gsQsQ'></fieldset></dl></div>

        • <tfoot id='gsQsQ'></tfoot>

          1. <legend id='gsQsQ'><style id='gsQsQ'><dir id='gsQsQ'><q id='gsQsQ'></q></dir></style></legend>

                本文介绍了Visual Studio - 路径中的非法字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                这发生在 Visual Studio Community 2017 最新更新之后.每次我尝试打开我的项目时,都会收到以下警告:

                <块引用>

                警告 IDE0006 加载项目时遇到错误.某些项目功能,例如对失败项目和依赖它的项目的完整解决方案分析,已被禁用.核心测试

                然后当我运行构建时,我得到:

                <块引用>

                错误ResolvePackageFileConflicts"任务意外失败.System.ArgumentException:路径中有非法字符.
                在 System.IO.Path.CheckInvalidPathChars(字符串路径,布尔检查附加)
                在 System.IO.Path.GetFileName(字符串路径)
                在 Microsoft.NET.Build.Tasks.ItemUtilities.GetTargetPath(ITaskItem item)
                在 Microsoft.NET.Build.Tasks.ItemUtilities.GetReferenceTargetPath(ITaskItem item)
                在 Microsoft.NET.Build.Tasks.ConflictResolution.ResolvePackageFileConflicts.<>c.<ExecuteCore > b__35_1(ConflictItem ci)
                在 Microsoft.NET.Build.Tasks.ConflictResolution.ConflictResolver`1.ResolveConflicts(IEnumerable`1 conflictItems,Func`2 getItemKey,Action`1 foundConflict,Boolean commitWinner,Action`1 unresolvedConflict)
                在 Microsoft.NET.Build.Tasks.ConflictResolution.ResolvePackageFileConflicts.ExecuteCore()
                在 Microsoft.NET.Build.Tasks.TaskBase.Execute()
                在 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
                在 Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask >d__26.MoveNext() Core.Tests

                之后

                <块引用>

                错误 CS0006 元数据文件 'C: mpackendTestsDataLoader.TestsinDebugDataLoader.Tests.dll' 找不到 EResourceConnector.Tests C: mpackendTestsEResourceConnector.TestsCSC 1 活动

                项目路径仅使用拉丁字符.在构建服务器上构建正在运行,但在上次更新 VS 后我的计算机上却没有.我尝试重新安装 VS,但没有帮助.

                那么对于这个问题有什么解决方案或至少提示吗?

                我试图排除受此问题影响且有效的文件.但这不是我的问题的解决方案.有趣的是,只有受影响的文件是单元测试.

                我尝试使用最新的 Visual Studio 2017 在全新的 Windows 10 上构建整个解决方案,但它失败了,所以这显然是我的解决方案的问题,但仅限于新版本的 VS.我在 Visual Studio 2015 上尝试了我的解决方案并且构建工作正常.

                无论如何,例如 Core.Test.csproj 文件就是导致该问题的文件之一.

                解决方案

                在您的情况下,问题是以下参考中的行返回:

                <Reference Include="System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"><提示路径>....packagesSystem.Collections.Immutable.1.3.1libportable-net45+win8+wp8+wpa81System.Collections.Immutable.dll</提示路径></参考>

                将其更改为:

                 <Reference Include="System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"><HintPath>....packagesSystem.Collections.Immutable.1.3.1libportable-net45+win8+wp8+wpa81System.Collections.Immutable.dll</HintPath></参考>

                This happen after Visual Studio Community 2017 latest update. Every time I try to open my project I get following warning:

                Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. Core.Tests

                Then when I run build I get:

                Error The "ResolvePackageFileConflicts" task failed unexpectedly. System.ArgumentException: Illegal characters in path.
                at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
                at System.IO.Path.GetFileName(String path)
                at Microsoft.NET.Build.Tasks.ItemUtilities.GetTargetPath(ITaskItem item)
                at Microsoft.NET.Build.Tasks.ItemUtilities.GetReferenceTargetPath(ITaskItem item)
                at Microsoft.NET.Build.Tasks.ConflictResolution.ResolvePackageFileConflicts.<>c. < ExecuteCore > b__35_1(ConflictItem ci)
                at Microsoft.NET.Build.Tasks.ConflictResolution.ConflictResolver`1.ResolveConflicts(IEnumerable`1 conflictItems, Func`2 getItemKey, Action`1 foundConflict, Boolean commitWinner, Action`1 unresolvedConflict)
                at Microsoft.NET.Build.Tasks.ConflictResolution.ResolvePackageFileConflicts.ExecuteCore()
                at Microsoft.NET.Build.Tasks.TaskBase.Execute()
                at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
                at Microsoft.Build.BackEnd.TaskBuilder.< ExecuteInstantiatedTask >d__26.MoveNext() Core.Tests

                and afterwards

                Error CS0006 Metadata file 'C: mpackendTestsDataLoader.TestsinDebugDataLoader.Tests.dll' could not be found EResourceConnector.Tests C: mpackendTestsEResourceConnector.TestsCSC 1 Active

                Path to the project is in latin only characters. On the build server build is working but on my computer after last update of VS is not. I've tried to reinstall VS but that didn't help.

                So is there any solutions or at least hint for this issue?

                EDIT: I tried to exclude files which are affected by this issue and that worked. But that is not solution for my problem. Interesting is, that are only affected files are unit tests.

                EDIT2: I tried to build whole solution on the fresh Windows 10 with latest Visual Studio 2017 and it's failing so it is obviously my solution's problem but only in the new version of VS. I tried my solution on the Visual Studio 2015 and build worked fine.

                Anyway, here's for example Core.Test.csproj file which is one of these that are causing that issue. https://pastebin.com/kq7MFLV1

                解决方案

                In your case the problem is the line returns in the following reference:

                <Reference Include="System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
                      <HintPath>
                      ....packagesSystem.Collections.Immutable.1.3.1libportable-net45+win8+wp8+wpa81System.Collections.Immutable.dll
                      </HintPath>
                </Reference>
                

                Change this to:

                 <Reference Include="System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
                      <HintPath>....packagesSystem.Collections.Immutable.1.3.1libportable-net45+win8+wp8+wpa81System.Collections.Immutable.dll</HintPath>
                 </Reference>
                

                这篇关于Visual Studio - 路径中的非法字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)

                      <i id='69q1l'><tr id='69q1l'><dt id='69q1l'><q id='69q1l'><span id='69q1l'><b id='69q1l'><form id='69q1l'><ins id='69q1l'></ins><ul id='69q1l'></ul><sub id='69q1l'></sub></form><legend id='69q1l'></legend><bdo id='69q1l'><pre id='69q1l'><center id='69q1l'></center></pre></bdo></b><th id='69q1l'></th></span></q></dt></tr></i><div id='69q1l'><tfoot id='69q1l'></tfoot><dl id='69q1l'><fieldset id='69q1l'></fieldset></dl></div>

                    • <legend id='69q1l'><style id='69q1l'><dir id='69q1l'><q id='69q1l'></q></dir></style></legend>

                          <tbody id='69q1l'></tbody>
                      1. <tfoot id='69q1l'></tfoot>
                          <bdo id='69q1l'></bdo><ul id='69q1l'></ul>
                        • <small id='69q1l'></small><noframes id='69q1l'>