Skip to content

A build tools package that adds support for making 32-bit exes LARGEADDRESSAWARE

License

Notifications You must be signed in to change notification settings

andreasmuellergin/LargeAddressAware

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NuGet package

LargeAddressAware

A build tools package that adds support for making 32-bit exes LARGEADDRESSAWARE

To use, install the NuGet package and set this property in your .csproj file:

  <PropertyGroup>
    <LargeAddressAware>true</LargeAddressAware>
  </PropertyGroup>

Also make sure that the .targets file from the NuPkg is included in your build. To do this, build your project using http://msbuildlog.com and search for $target SetLargeAddressAware in the structured log.

You can customize after which target the SetLargeAddressAware target runs by setting this property:

  <PropertyGroup>
    <LargeAddressAwareAfterTargets>MyCustomTarget</LargeAddressAwareAfterTargets>
  </PropertyGroup>

By default it runs after CoreCompile.

You can also customize which target assembly should be modified by setting this property:

  <PropertyGroup>
    <LargeAddressAwareTargetAssembly>bin/$(Configuration)/$(AssemblyName).exe</LargeAddressAwareTargetAssembly>
    <LargeAddressAwareAfterTargets>AfterBuild</LargeAddressAwareAfterTargets>
  </PropertyGroup>

This is required in order to set the LargeAddressAware flag to .Net Core executables as otherwise the flag will be set to the application dll. Please note that the LargeAddressAwareAfterTargets setting must be set to a later build stage such as AfterBuild.

About

A build tools package that adds support for making 32-bit exes LARGEADDRESSAWARE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%