Bug 60250 - Changing a image set's "Render As" value doesn't update the Contents.json file
Summary: Changing a image set's "Render As" value doesn't update the Contents.json file
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.7.0 (15.4)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.5
Assignee: Emanuel
URL:
Depends on:
Blocks:
 
Reported: 2017-10-18 07:45 UTC by Mikael Nensén
Modified: 2017-11-28 12:41 UTC (History)
8 users (show)

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


Attachments
Screen recording (724.02 KB, video/mp4)
2017-10-18 07:45 UTC, Mikael Nensén
Details


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 Mikael Nensén 2017-10-18 07:45:48 UTC
Created attachment 25352 [details]
Screen recording

Changing a image set's "Render As" value doesn't update the Content.json file; it's always back to "Default" when you reopen the image asset and select the image set.

Version info:
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Professional

LightSwitch for Visual Studio 2015   00322-40000-00000-AA559
Microsoft LightSwitch for Visual Studio 2015

Microsoft Visual Studio Tools for Applications 2015   00322-40000-00000-AA559
Microsoft Visual Studio Tools for Applications 2015

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA559
Windows Phone SDK 8.0 - ENU

Visual Basic 2015   00322-40000-00000-AA559
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA559
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA559
Microsoft Visual C++ 2015

ASP.NET and Web Tools 2015.1   14.1.21111.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.9   14.0.20316.0
Azure App Service Tools v2.9

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.0.6000.0
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

CreateLayoutWizard   1.0
Create layout wizard.

DataFactoryProject   1.0
Microsoft Data Factory Package

DevExpress.DeploymentTool   1.0
A useful tool for deploying DevExpress assemblies.

DevExpress.Win.LayoutAssistant Extension   1.0
DevExpress.Win.LayoutAssistant Visual Studio Extension Detailed Info

File Nesting   2.6.67
Automatically nest files based on file name and enables developers to nest and unnest any file manually

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JustDecompile Tools   1.0
Makes JustDecompile functionality available in VIsual Studio. Requires JustDecompile installation.

MainWindow Extension   1.0
MainWindow Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft .NET Core Tools (Preview 2)   14.1.21111.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.6000.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.6000.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40323.3

Microsoft Azure Tools   2.8
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.40211.2

Mono Debugging for Visual Studio   4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2015 ENU   14.0.23928
Microsoft Office Developer Tools for Visual Studio 2015 ENU

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

ResXManager   1.6.708.0
Manage localization of all ResX-Based resources in one place. Shows all resources of a solution and let's you edit the strings and their localizations in a well-arranged data grid.

SQL Server Analysis Services   13.0.1700.68
Microsoft SQL Server Analysis Services Designer 
Version 13.0.1700.68

SQL Server Data Tools   14.0.60812.0
Microsoft SQL Server Data Tools

SQL Server Integration Services   
Microsoft SQL Server Integration Services Designer
Version 13.0.1601.5

SQL Server Reporting Services   13.0.1700.68
Microsoft SQL Server Reporting Services Designers 
Version 13.0.1700.68

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.3.3.0
TypeScript tools for Visual Studio

Web Compiler   1.11.326
Compiler for LESS, Sass and CoffeeScript files

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.7.9.45 (bd7e3753c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.4.5.1 (fb018c5)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   11.0.0.0 (152b654)
Visual Studio extension to enable development for Xamarin.iOS.

XtraReports package   1.0
XtraReports package
Comment 1 Alan McGovern 2017-10-19 13:35:57 UTC
Reassigning this to the appropriate component. Thanks for the report!
Comment 2 John Miller [MSFT] 2017-10-19 15:57:00 UTC
I was unable to reproduce this with the latest 15.5 Preview 2 build. 

I correctly see the content.json updated with:

"properties": {
    "template-rendering-intent": "original"
  },

When I revisit the image set, it correctly displays the setting for Render As. 

Microsoft Visual Studio Enterprise 2017 Int Preview (Dogfood)
Version 15.5.0 Preview 2.0 [27018.1.d15rel]
VisualStudio.15.IntPreview/15.5.0-pre.2.0+27018.1.d15rel
Microsoft .NET Framework
Version 4.7.02046
Installed Version: Enterprise
Visual Basic 2017   00369-60000-00001-AA101
Microsoft Visual Basic 2017
Visual C# 2017   00369-60000-00001-AA101
Microsoft Visual C# 2017
Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Mono Debugging for Visual Studio   4.8.4-pre (3fe64e3)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager   4.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
VisualStudio.Mac   1.0
Mac Extension for Visual Studio
Xamarin   4.8.0.673 (04c2a6bf1)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK   8.1.0.21 (HEAD/d3e597365)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK   11.4.0.93 (1b460cb)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 3 John Miller [MSFT] 2017-10-19 18:17:31 UTC
@Mikael,

I wasnt able to reproduce this on the stable 15.4 version either. 

What steps can I take to reproduce this?
Comment 4 Pierce Boggan [MSFT] 2017-10-19 18:17:54 UTC
Moving off of 15.5 milestone until information is provided.
Comment 5 Emanuel 2017-10-19 20:43:58 UTC
I was able to reproduce this bug, and I talked to @John to found out why he couldn't. The real issue is the Asset Catalog is not being marked as modified when changing the 'Render As' option.

Steps to reproduce:
1) Create an iOS app.
2) Add an Asset Catalog.
3) Create an Image Set.
4) Save the Asset Catalog.
5) Only change the 'Render As' option

Expected result: The Asset Catalog gets marked as modified or dirty (little star next to the file name).

Actual result: The Asset Catalog is not getting marked as modified so the file is not being saved.

Workaround: you can change another option to get the file dirty.

Moving this bug back to 15.5.
Comment 6 xamarin-release-manager 2017-10-20 13:38:24 UTC
Fixed in version 4.9.0.334 (master)

Author: Emanuel
Commit: e1d07eeddee9d170dd99cea1a9e860ef69d5f00b (xamarin/XamarinVS)