c# - Filename 'file' is too long or invalid Visual Studio 2010 and 2012 -


i've found interesting error when tried build .net 3.5 class library, , i've got error in visual studio 2012.

error   201 file name '..\..\..\..\b2b.common\documentation\ foobarbaz.core.providers.scheduledtaskproviders .foobarbazsearchalerting.xml'  long or invalid  d:\foobarbaz\5000\5000 - xyz - xyxy - example -  ire\b2b.common\src\foobarbaz.core.providers .scheduledtaskproviders\foobarbaz search alerting\csc    foobarbaz search alerting 

the problem is, can build in vs2010 without problem.

according msdn error shows, when filename path longer 260 character. it's 156.

so 2 questions are:

why work in vs2010 , not 2012?

how can solve in vs2012?

this known issue. file names can't infinitely long. need redesign naming conventions. frankly, name, foobarbaz.portfolio.core.providers.scheduledtaskproviders .foobarbazsearchalerting.xml sadomasochism of computing.

to avoid this, map source control branches simple c:\dev\branch_name.

you need discuss issue team , redesign naming , foldering patterns. say, file should have no more 3 part-names. company.product.business

please @ blog. http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2156195-fix-260-character-file-name-length-limitation

this may you


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -