This happens after the last update of Visual Studio Community 2017. Each time I try to open my project, I get the following warning:
Warning IDE0006 Error loading project. Some project features, such as a complete analysis of solutions for a failed project and projects that depend on it, were disabled. Core.tests
Then, when I run build, I get:
Error Failed to complete the ResolvePackageFileConflicts task. System.ArgumentException: Illegal characters in the path.
in System.IO.Path.CheckInvalidPathChars (String path, Boolean checkAdditional)
in System.IO.Path.GetFileName (line path)
in Microsoft.NET.Build.Tasks.ItemUtilities.GetTargetPath (ITaskItem element)
in Microsoft.NET.Build.Tasks.ItemUtilities.GetReferenceTargetPath (ITaskItem element)
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 then
Error CS0006 Metadata file 'C: \ tmp \ backend \ Tests \ DataLoader.Tests \ bin \ Debug \ DataLoader.Tests.dll' could not be found EResourceConnector.Tests C: \ tmp \ backend \ Tests \ EResourceConnector.Tests \ CSC 1 Active
The path to the project is only in Latin characters. The assembly server works on the assembly, but on my computer, after the last update, VS is not. I tried reinstalling VS, but that didn't help.
So, are there any solutions, or at least a hint of this problem?
EDIT: I tried to exclude files affected by this issue and it worked. But this is not a solution to my problem. Interestingly, only the affected files are unit tests.
EDIT2: I tried to build the whole solution on fresh Windows 10 with the latest version of Visual Studio 2017, and it does not work, so this is obviously my problem with the solution, but only in the new version of VS. I tried my solution on Visual Studio 2015 and worked fine.
Anyway, here is an example of the Core.Test.csproj file, which is one of them that cause this problem. https://pastebin.com/kq7MFLV1
