How to specify Platform in DotNetBuild with Cake 3 #4205
-
Hi, Im converting <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "> now I'm trying to build with following code: var msBuildSettings = new DotNetMSBuildSettings()
.WithTarget("Build")
.WithProperty("ArchiveOnBuild", "True")
.WithProperty("IpaPackageDir", ipaPackageDir)
.WithProperty("Platform", platform);
DotNetBuild("mycsproj.csproj", new DotNetBuildSettings{
NoRestore = true,
Configuration = configuration,
MSBuildSettings = msBuildSettings
}); But It looks that something like this suppose to be working: Any ideas how to achieve this in Cake? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@jpiechowiak can you elaborate on what "recognize" means in your question? The example you gave will produce something akin to the following The code you provided will set a property named I would suggest you try to build your app "manually", using |
Beta Was this translation helpful? Give feedback.
-
After further investigation, it looks like that it is probably not related to Cake, but some botnet issues. |
Beta Was this translation helpful? Give feedback.
After further investigation, it looks like that it is probably not related to Cake, but some botnet issues.
@nils-a thanks for hint with argument. It helped me to know what is going on.