locked
<LogicalName> Element not working in .csproj file RRS feed

  • Question

  • I'm running into a path limit (260 characters) for some of my .resx files.  I've tried using the <LogicalName> element to shorten the name but it's not working:

        <EmbeddedResource Include="SomeReallyLongFileNameWithALongPath.aspx.resx">
          <DependentUpon>SomeReallyLongFileNameWithALongPath.aspx.cs</DependentUpon>
          <SubType>Designer</SubType>
          <LogicalName>ShortName.resources</LogicalName>
        </EmbeddedResource>

    I look in the obj/debug directory and the file has the full name with the path pre-pended.  In addition the MyProject.csproj.FileListAbsolute.txt file has the full name listed as well.

    Here is my studio info:
        Microsoft Visual Studio 2005
        Version 8.0.50727.762  (SP.050727-7600)
        Microsoft .NET Framework
        Version 2.0.50727 SP1
     
    Monday, December 15, 2008 4:53 PM

Answers

  • AFAIK logical name is only a convenience for you, sort of like an alias.  The actual full path is still limited to MAX_PATH which is currently limited to approximately 260 characters.  There is no workaround that I am aware of.

    Michael Taylor - 12/16/08
    http://p3net.mvps.org
    Tuesday, December 16, 2008 3:34 PM
    Moderator

All replies

  • AFAIK logical name is only a convenience for you, sort of like an alias.  The actual full path is still limited to MAX_PATH which is currently limited to approximately 260 characters.  There is no workaround that I am aware of.

    Michael Taylor - 12/16/08
    http://p3net.mvps.org
    Tuesday, December 16, 2008 3:34 PM
    Moderator
  • Not what I wanted to hear but thanks for the heads up.
    Sunday, December 21, 2008 7:55 PM