locked
<LogicalName> Element in .csproj not working 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

     
    Friday, December 12, 2008 7:07 PM

Answers

All replies