Skip to content

Commit

Permalink
Better fix for $(SolutionDir) being Undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
maforget committed Jul 2, 2024
1 parent 8613ddd commit d1c66b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ComicRack/ComicRack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>powershell -NoProfile -ExecutionPolicy Bypass -File "$(ProjectDir)..\CompressIconFolders.ps1" -BaseDirectory "$(TargetDir)"
<PostBuildEvent>powershell -NoProfile -ExecutionPolicy Bypass -File "$(SolutionDir)\CompressIconFolders.ps1" -BaseDirectory "$(TargetDir)"

if $(ConfigurationName) == Debug Goto :Exit
del /Q *.pdb
Expand Down
5 changes: 5 additions & 0 deletions directory.build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>
</Project>

0 comments on commit d1c66b6

Please sign in to comment.