Skip to content

PoloySharp blocked by windows path length (260) limit #109

@sui-zhiyuan

Description

@sui-zhiyuan

Description (optional)

If Project foder path legth is larger then 72, Generating file might fail due to path is longer then 260.

Reproduction Steps

  1. Create a csproj in folde like
    C:\Users\dummy\project\dummyrepor\dotnetbackend\dummyrepo.somebasementrepo\
  2. Import PolySharp
  3. Build

Expected Behavior

Build success.

Actual Behavior

Got Build Error:
CS0016 could not write to output“C:\Users\dummy\project\dummyrepor\dotnetbackend\dummyrepo.somebasementrepo\obj\Debug\netstandard2.0\generated\PolySharp.SourceGenerators\PolySharp.SourceGenerators.PolyfillsGenerator\System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs” ........

System info

  • PoloySharp Version: PackageVersion Include="PolySharp" Version="1.14.1"
  • Operating System: Windows 11 Professional 23H2
  • dotnet version 8.0.400
  • Visual studio version 17.11.4

Additional context (optional)

Can we remove the repeated PolySharp.SourceGenerators in the path to reduce path length ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions