c# - Visual Studio- Illegal characters in path -
this happen after visual studio community 2017 latest update. every time try open project following warning:
warning ide0006 error encountered while loading project. project features, such full solution analysis failed project , projects depend on it, have been disabled. core.tests
then when run build get:
error "resolvepackagefileconflicts" task failed unexpectedly. system.argumentexception: illegal characters in path.
@ system.io.path.checkinvalidpathchars(string path, boolean checkadditional)
@ system.io.path.getfilename(string path)
@ 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
and afterwards
error cs0006 metadata file 'c:\tmp\backend\tests\dataloader.tests\bin\debug\dataloader.tests.dll' not found eresourceconnector.tests c:\tmp\backend\tests\eresourceconnector.tests\csc 1 active
path project in latin characters. on build server build working on computer after last update of vs not. i've tried reinstall vs didn't help.
so there solutions or @ least hint issue?
edit: tried exclude files affected issue , worked. not solution problem. interesting is, affected files unit tests.
edit2: tried build whole solution on fresh windows 10 latest visual studio 2017 , it's failing solution's problem in new version of vs. tried solution on visual studio 2015 , build worked fine.
anyway, here's example core.test.csproj file 1 of these causing issue. https://pastebin.com/kq7mflv1
in case problem line returns in following reference:
<reference include="system.collections.immutable, version=1.2.1.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"> <hintpath> ..\..\packages\system.collections.immutable.1.3.1\lib\portable-net45+win8+wp8+wpa81\system.collections.immutable.dll </hintpath> </reference> change to:
<reference include="system.collections.immutable, version=1.2.1.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"> <hintpath>..\..\packages\system.collections.immutable.1.3.1\lib\portable-net45+win8+wp8+wpa81\system.collections.immutable.dll</hintpath> </reference> 
Comments
Post a Comment