Skip to content
Permalink
Browse files

Allow spaces in TargetDir when building LauncherApp project.

  • Loading branch information
dfkeenan authored and xen2 committed Jan 27, 2019
1 parent 233d891 commit 88811c9cef84073a5fa7a692f57f115673f72350
Showing with 2 additions and 2 deletions.
  1. +2 −2 sources/launcher/Xenko.LauncherApp/Xenko.LauncherApp.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net45</TargetFramework>
@@ -90,7 +90,7 @@
</ItemGroup>
</Target>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="&#xD;&#xA;&#xD;&#xA;cd $(TargetDir)&#xD;&#xA;rem Ensure we are in the right place&#xD;&#xA;&#xD;&#xA;rem Delete all DLLs in the current directory and the immediate subdirectories&#xD;&#xA;del /q $(TargetDir)\*.dll&#xD;&#xA;for /d %25%25f in (&quot;$(TargetDir)\*&quot;) do del /q %25%25f\*.dll&#xD;&#xA;&#xD;&#xA;rem Delete empty directories at the first level&#xD;&#xA;rem See http://stackoverflow.com/questions/7831286/how-to-delete-empty-folders-using-windows-command-prompt for explanations&#xD;&#xA;rem Use %25SystemRoot%25 to use the right sort tool as people may have the unix sort in their path&#xD;&#xA;for /f &quot;usebackq delims=&quot; %25%25d in (`&quot;dir /ad/b $(TargetDir) | %25SystemRoot%25\System32\sort.exe /R&quot;`) do rd &quot;%25%25d&quot;" />
<Exec Command="&#xD;&#xA;&#xD;&#xA;cd &quot;$(TargetDir)&quot;&#xD;&#xA;rem Ensure we are in the right place&#xD;&#xA;&#xD;&#xA;rem Delete all DLLs in the current directory and the immediate subdirectories&#xD;&#xA;del /q &quot;$(TargetDir)\*.dll&quot;&#xD;&#xA;for /d %25%25f in (&quot;$(TargetDir)\*&quot;) do del /q %25%25f\*.dll&#xD;&#xA;&#xD;&#xA;rem Delete empty directories at the first level&#xD;&#xA;rem See http://stackoverflow.com/questions/7831286/how-to-delete-empty-folders-using-windows-command-prompt for explanations&#xD;&#xA;rem Use %25SystemRoot%25 to use the right sort tool as people may have the unix sort in their path&#xD;&#xA;for /f &quot;usebackq delims=&quot; %25%25d in (`&quot;dir /ad/b &quot;$(TargetDir)&quot; | %25SystemRoot%25\System32\sort.exe /R&quot;`) do rd &quot;%25%25d&quot;" />
</Target>
<Import Project="..\..\targets\Xenko.Core.Sign.targets" />
</Project>

0 comments on commit 88811c9

Please sign in to comment.
You can’t perform that action at this time.