Skip to content

Commit f3baddb

Browse files
committed
When on AnyCPU, copy the x86 binary, and rename the resulting exe to FlashDevelopx64.exe.
1 parent 51a42e2 commit f3baddb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

FlashDevelop/FlashDevelop.csproj

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
<Optimize>true</Optimize>
7070
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7171
</PropertyGroup>
72+
<PropertyGroup>
73+
<RunPostBuildEvent>Always</RunPostBuildEvent>
74+
</PropertyGroup>
7275
<ItemGroup>
7376
<Reference Include="Aga, Version=1.7.0.0, Culture=neutral, PublicKeyToken=fcc90fbf924463a3, processorArchitecture=x86">
7477
<SpecificVersion>False</SpecificVersion>
@@ -234,7 +237,7 @@
234237
<ItemGroup>
235238
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
236239
<Visible>False</Visible>
237-
<ProductName>Microsoft .NET Framework 4 %28x86 und x64%29</ProductName>
240+
<ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
238241
<Install>true</Install>
239242
</BootstrapperPackage>
240243
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
@@ -267,4 +270,12 @@
267270
<PropertyGroup>
268271
<PreBuildEvent>"$(SolutionDir)\SetVersion.bat" "$(SolutionDir)"</PreBuildEvent>
269272
</PropertyGroup>
273+
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
274+
<PreBuildEvent>"$(SolutionDir)\SetVersion.bat" "$(SolutionDir)" &amp;&amp; ^
275+
IF EXIST "$(TargetPath)" move /Y "$(TargetPath)" "$(TargetDir)$(TargetName)x86$(TargetExt)"</PreBuildEvent>
276+
</PropertyGroup>
277+
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
278+
<PostBuildEvent>IF EXIST "$(TargetPath)" move /Y "$(TargetPath)" "$(TargetDir)$(TargetName)x64$(TargetExt)"&amp;&amp; ^
279+
IF EXIST "$(TargetDir)$(TargetName)x86$(TargetExt)" move /Y "$(TargetDir)$(TargetName)x86$(TargetExt)" "$(TargetPath)"</PostBuildEvent>
280+
</PropertyGroup>
270281
</Project>

0 commit comments

Comments
 (0)