BigMountainStudio.com
BigMountainStudio.com

Reputation: 17560

How to set AppBuildDir - Error when running Code Analysis in Xamarin Studio

I'm using Xamarin Studio for the Mac, version 6.2.

From the Project menu I select "Run Code Analysis on Solution".

Error

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: Error executing task CompileEntitlements: Required property 'AppBundleDir' not set. (Core.iOS)

Core.iOS is an iOS project that the main project depends on.

I don't know where or how to set this "AppBundlerDir" and I can't find answers anywhere.

Upvotes: 0

Views: 272

Answers (1)

Jon Douglas
Jon Douglas

Reputation: 13176

AppBundleDir is a MSBuild property that represents an app bundle directory path. You can set this in your .csproj along the lines of

<AppBundleDir>$(DeviceSpecificOutputPath)$(_AppBundleName).app</AppBundleDir>

You should be able to get a general idea of what Tasks/Targets use it here:

https://github.com/xamarin/xamarin-macios/blob/fc55e4306f79491fd269ca2495c6a859799cb1c6/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets

You can find a definition of how it gets set here: https://github.com/xamarin/xamarin-macios/blob/fc55e4306f79491fd269ca2495c6a859799cb1c6/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets#L589

Upvotes: 1

Related Questions