Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Unable to compile on mac #2

Open
Gaisuru opened this issue Jul 14, 2015 · 2 comments
Open

Unable to compile on mac #2

Gaisuru opened this issue Jul 14, 2015 · 2 comments

Comments

@Gaisuru
Copy link

Gaisuru commented Jul 14, 2015

I am trying to fix the build number in my Team City build, but I keep getting this error and warning.

The Warning
/Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp//TraceableLive.Droid/TestApp.Droid.csproj (Build) ->
[15:40:04][Step 2/3] /Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/packages/Readify.Xamarin.MSBuild.Android.1.1.0/build/Readify.Xamarin.MSBuild.Android.targets (OverrideAndroidManifestVersion target) ->
[15:40:04][Step 2/3] /Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/packages/Readify.Xamarin.MSBuild.Android.1.1.0/build/Readify.Xamarin.MSBuild.Android.targets (CoreOverrideAndroidManifestVersion) ->
[15:40:04][Step 2/3]
[15:40:04][Step 2/3] /Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/packages/Readify.Xamarin.MSBuild.Android.1.1.0/build/Readify.Xamarin.MSBuild.Android.targets: warning : Target '_ValidateAndroidPackageProperties', not found in the project

[15:40:04][Step 2/3] Errors:
/Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/TestApp.Droid/TestApp.Droid.csproj (Build) ->
[15:40:04][Step 2/3] /Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/packages/Readify.Xamarin.MSBuild.Android.1.1.0/build/Readify.Xamarin.MSBuild.Android.targets (OverrideAndroidManifestVersion target) ->
[15:40:04][Step 2/3] /Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/packages/Readify.Xamarin.MSBuild.Android.1.1.0/build/Readify.Xamarin.MSBuild.Android.targets (CoreOverrideAndroidManifestVersion) ->
[15:40:04][Step 2/3](CoreOverrideAndroidManifestVersion target) ->
[15:40:04][Step 2/3]
[15:40:04][Step 2/3] /Library/TeamCity/buildAgent/work/dfa28b56baa89f86/TestApp/packages/Readify.Xamarin.MSBuild.Android.1.1.0/build/Readify.Xamarin.MSBuild.Android.targets: error : AppVersion '1.0.0.1' must be of the form 'n.n.n.n' where 'n' is a positive integer.

@tathamoddie
Copy link
Contributor

The issue title indicates you're compiling on xbuild, via Mono? Can you confirm?

This check is implemented at https://github.com/Readify/Xamarin.Msbuild/blob/master/Android/Readify.Xamarin.MSBuild.Android.targets#L17

Even if you tried removing that check temporarily, I'm not sure how the task implementation itself (https://github.com/Readify/Xamarin.Msbuild/blob/master/Android/Readify.Xamarin.MSBuild.Android.targets#L44) would fare in the xbuild runner, as it also depends on C#.

@Gaisuru
Copy link
Author

Gaisuru commented Jul 15, 2015

I am running xbuild via Mono. Just not sure what in that check/why it is failing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants