Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sui-zhiyuan opened this issue Oct 14, 2024 · 1 comment
Open

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

sui-zhiyuan opened this issue Oct 14, 2024 · 1 comment

Comments

@sui-zhiyuan
Copy link

sui-zhiyuan commented Oct 14, 2024

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 ?

@TheHandsomeBanana
Copy link

TheHandsomeBanana commented Oct 14, 2024

Hey, if you are using Windows 10 or 11, you can enable "Long Paths" using Group Policies or the Registry. Keep in mind that there a legacy applications that rely on the Path limit so this wont work for those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants