* build.cake: cosmetic, less verbose GetMSBuildSettings() method
* build.cake: more readable way of using an enum
I had to look up what "1" meant in the documentation!
(https://cakebuild.net/api/Cake.Common.Tools.MSBuild/MSBuildPlatform/)
MSBuildSettings GetMSBuildSettings()
{
- var msbuildSettings = new MSBuildSettings();
-
- msbuildSettings.PlatformTarget = PlatformTarget.MSIL;
- msbuildSettings.MSBuildPlatform = (Cake.Common.Tools.MSBuild.MSBuildPlatform)1;
- msbuildSettings.Configuration = configuration;
- return msbuildSettings;
-
+ return new MSBuildSettings {
+ PlatformTarget = PlatformTarget.MSIL,
+ MSBuildPlatform = Cake.Common.Tools.MSBuild.MSBuildPlatform.x86,
+ Configuration = configuration,
+ };
}