Skip to content

Commit

Permalink
The default generated file path exceeds the length limit 260 on the b…
Browse files Browse the repository at this point in the history
…uild agent. Using a shorter path as a workaround.
  • Loading branch information
yeelam-gordon committed Feb 28, 2025
1 parent 8a2d474 commit 02f9a1d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<ProjectPriFileName>PowerToys.EnvironmentVariablesUILib.pri</ProjectPriFileName>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<IsPackable>true</IsPackable>
<!-- The default generated file path exceeds the length limit 260 on the build agent. Using a shorter path as a workaround. -->
<CompilerGeneratedFilesOutputPath>$(ProjectDir)obj\g</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -53,4 +55,8 @@
<PackageReference Include="System.Text.Json" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

<Target Name="EnsureCompilerGeneratedFilesOutputPathExists" BeforeTargets="XamlPreCompile">
<MakeDir Directories="$(CompilerGeneratedFilesOutputPath)" />
</Target>
</Project>

0 comments on commit 02f9a1d

Please sign in to comment.