Bug 51483 - Resource.Designer.cs trivia thrash between macOS + Windows.
Summary: Resource.Designer.cs trivia thrash between macOS + Windows.
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 4.8.0 (C9)
Hardware: All All
: --- normal
Target Milestone: Future Release
Assignee: Marek Safar
Depends on:
Reported: 2017-01-12 15:22 UTC by Brian Berry
Modified: 2017-02-10 08:04 UTC (History)
4 users (show)

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 GitHub or 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:

Description Brian Berry 2017-01-12 15:22:25 UTC
Found: Seemingly unnecessary Resource.Designer.cs generation differences between toolchains on macOS vs. Windows that result in version control thrash with the generated files.  Diffs (on a Mac against artifacts committed on Windows) of the form:

@@ -1,15 +1,15 @@
 #pragma warning disable 1591
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:4.0.30319.42000
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
+// ------------------------------------------------------------------------------
+//  <autogenerated>
+//      This code was generated by a tool.
+//      Mono Runtime Version: 4.0.30319.42000
+//      Changes to this file may cause incorrect behavior and will be lost if 
+//      the code is regenerated.
+//  </autogenerated>
+// ------------------------------------------------------------------------------
-[assembly: global::Android.Runtime.ResourceDesignerAttribute("FOO.Resource", IsApplication=false)]
+[assembly: Android.Runtime.ResourceDesignerAttribute("FOO.Resource", IsApplication=false)]

Differences include:
  * <autogenerated> vs <auto-generated>
  * "Mono Runtime" vs "Runtime"
  * Additional whitespace in the blank line between "Mono Runtime" and "Changes to" lines.
  * Additional whitespace at the EOL of the "...and will be lost if".
  * Loss of global:: scoping in the assembly-scoped attribute.

Basically, this affects workflow by adding some process drag to cull unnecessary change
where we want to keep the repository history clean as we work between platforms.

Many thanks!

=== Visual Studio for Mac Preview ===

Version Preview 2 (7.0 build 560)
Installation UUID: XXXX
	Mono 4.8.0 (mono-4.8.0-branch/f5fbc32) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000344

=== NuGet ===


=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.2.1 (11766.1)
Build 8C1002

=== Xamarin.iOS ===

Version: (Visual Studio Enterprise)
Hash: 62816dd
Branch: master
Build date: 2016-11-15 06:24:02-0500

=== Xamarin.Android ===

Version: (Visual Studio Enterprise)
Android SDK: /Users/XXXX/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)

SDK Tools Version: 25.1.2
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:

=== Xamarin.Mac ===

Version: (Visual Studio Enterprise)

=== Build Information ===

Release ID: 700000560
Git revision: 21714a71933f78242fea5b184a64f78bd5b11560
Build date: 2016-12-05 11:02:52-05
Xamarin addins: 6ef9b840f7003f55bc17782a901086305e96d290
Build lane: monodevelop-vNext-preview

=== Operating System ===

Mac OS X 10.12.2
Darwin tochee.local 16.3.0 Darwin Kernel Version 16.3.0
    Thu Nov 17 20:23:58 PST 2016
    root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Comment 1 Brian Berry 2017-01-12 15:24:45 UTC
Missed one diff:
   * "Mono Runtime Version: XXX" vs. "Runtime Version:XXX" has a
     spacing difference after the colon, currently.
Comment 2 Marek Safar 2017-02-10 08:04:44 UTC
Fixed in master