I try to use Team CI Build, but it continues to fail with the same error:
#
Which seems correct, since at the previous stage he complains that he did not find this library:
##[warning]C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "Mono.Android". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
In addition, he registers where he is looking for him:
For SearchPath "{HintPathFromItem}".
Considered "..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll", but it d idn't exist.For SearchPath "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259\Mono.Android.winmd", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259\Mono.Android.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile259\Mono.Android.exe", but it didn't exist.
For SearchPath "{RawFileName}".
Considered treating "Mono.Android" as a file name, but it didn't exist.
As far as I understand, this file is not on the Team Services build server, right? How can i solve this? Should you change this directory?
The important thing is that locally on my machine Visual Studio and MSBuild work correctly.
This happens during the Visual Studio Build phase, which has the following configuration:
- MSBuild Configuration: MSBuild x86
- Visual Studio Version: Visual Studio 2015
- Arguments MSBuild: / p: DeployOnBuild = true / p: WebPublishMethod = Package
- /p: PackageAsSingleFile = true/p: SkipInvalidConfigurations = true
- /: PackageLocation = "$ (build.artifactstagingdirectory) \"
- Visual Studio Build Solution: 1. *
Team Services: 