Skip to content

Commit

Permalink
JSON: disable EmitCompilerGeneratedFiles by default due to issue with…
Browse files Browse the repository at this point in the history
… max path length

- VS will not be able to build due to max path length issues (!!!), even if it builds fine with the cli
- fix requires patching the registry on each dev machine to enable long path support, which is not pratical
- should only be enabled when troubleshooting the source generator
  • Loading branch information
KrzysFR committed Dec 10, 2024
1 parent 48a6d30 commit e477851
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
</PropertyGroup>

<!-- Source Code Generator -->
<!--
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<!--<CompilerGeneratedFilesOutputPath>$(ProjectDir)Generated</CompilerGeneratedFilesOutputPath>-->
<GeneratedFolder>Generated</GeneratedFolder>
<CompilerGeneratedFilesOutputPath>$(GeneratedFolder)\$(TargetFramework)</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
<!--
<Target Name="SkipSourceGeneratedFiles" BeforeTargets="CoreCompile">
<ItemGroup>
<Compile Remove="Generated/**/*" />
</ItemGroup>
</Target>-->
<ItemGroup>
<Compile Remove="$(GeneratedFolder)/**/*.cs" />
<None Include="$(GeneratedFolder)/**/*.cs" />
</ItemGroup>
-->

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Microsoft.TestPlatform.TestHost" />
Expand Down

0 comments on commit e477851

Please sign in to comment.