summaryrefslogtreecommitdiff
path: root/src/SMAPI/StardewModdingAPI.csproj
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-17 13:23:24 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-17 13:23:24 -0400
commit0043810e04239c897a61c097855ab08c382251ff (patch)
treea392155500fdcdfb6d6ff50a3ccec3d1fd2b03c5 /src/SMAPI/StardewModdingAPI.csproj
parent450147e9fb906aee8dbc60ee26a6963da03b257b (diff)
downloadSMAPI-0043810e04239c897a61c097855ab08c382251ff.tar.gz
SMAPI-0043810e04239c897a61c097855ab08c382251ff.tar.bz2
SMAPI-0043810e04239c897a61c097855ab08c382251ff.zip
set 'large address aware' flag on SMAPI executable to fix memory issues (#431)
This is safe since the vanilla game has it set too.
Diffstat (limited to 'src/SMAPI/StardewModdingAPI.csproj')
-rw-r--r--src/SMAPI/StardewModdingAPI.csproj8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI/StardewModdingAPI.csproj b/src/SMAPI/StardewModdingAPI.csproj
index ab3967c5..fcd54c34 100644
--- a/src/SMAPI/StardewModdingAPI.csproj
+++ b/src/SMAPI/StardewModdingAPI.csproj
@@ -27,6 +27,7 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
+ <LargeAddressAware Condition="'$(OS)' == 'Windows_NT'">true</LargeAddressAware>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>
@@ -344,4 +345,11 @@
<Import Project="..\SMAPI.Internal\SMAPI.Internal.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\build\common.targets" />
+ <Import Project="..\packages\LargeAddressAware.1.0.3\build\LargeAddressAware.targets" Condition="Exists('..\packages\LargeAddressAware.1.0.3\build\LargeAddressAware.targets')" />
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
+ </PropertyGroup>
+ <Error Condition="!Exists('..\packages\LargeAddressAware.1.0.3\build\LargeAddressAware.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LargeAddressAware.1.0.3\build\LargeAddressAware.targets'))" />
+ </Target>
</Project> \ No newline at end of file