Bug 53859 - MSBuild property in the .csproj file not being recognized when building from VSTS
Summary: MSBuild property in the .csproj file not being recognized when building from ...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 15.3
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-23 14:33 UTC by Tim
Modified: 2017-07-24 12:55 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Tim 2017-03-23 14:33:46 UTC
PNGs are not optimized when building Xamarin.iOS project using VSTS, even though the option is selected in Properties for the project. Can be worked around as below, but suggests that MSBuild is not reading all csproj properties.

@TimMarlow said:
Got this to work by placing the slightly modified /p:OptimizePNGs=true in Xamarin.iOS Build step --> Advanced --> Arguments.

This does seem to suggest that the build agent is not recognising the setting in the prject to start with...?
Yes, it would seem so. I would be curious to know if just building via the command line on your local machine shows the same issue. In either case, it would be worth getting a bug report filed about that MSBuild property in the .csproj file not being recognized when building from VSTS (and from the command line locally if that turns out to be the case).
Comment 1 Jeffrey Stedfast 2017-03-23 20:52:18 UTC
What version is this happening in? I assume 4.3.0.x?
Comment 2 Tim 2017-03-24 09:28:44 UTC
Hi Jeff,

Sorry which version of which part? I've got the various logs so can find the numbers for the right part.

Tim
Comment 3 Adrian Alonso 2017-06-21 20:03:27 UTC
Hi Tim,

This should be already fixed as part of the revamped property pages work we did in 15.2. Please let us know if you can still reproduce the issue using a recent release. thanks