Issue with change detection and a Suggestion

Mar 8, 2011 at 2:11 PM
Edited Mar 8, 2011 at 2:56 PM

I have a new Silverlight solution that has two projects in it. The Silverlight project and a Web application project.  I have it set on each individual project to update on rebuild.  The settings for both projects are identical, however, when I modify the settings for both projects and make them match, only the 2nd project (web project) will update on rebuild.

If I make changes to the first project's AssemblyInfo.cs (or other files in the project) the version will be updated on the subsequent rebuild, but not any after that without again modifying a file in the project. While the 2nd project will update on every rebuild without any changes to any files in the project.

I am using version 2.4.11046.2045 of the add-in and Visual Studio 2010.

Here is the log file:

[Debug] BuildEvents_OnBuildBegin scope: vsBuildScopeSolution action vsBuildActionBuild
[Debug] Checking solution item 'Geobase'...
[Debug] Checking project 'WebEditor'...
[Debug] File (E:\projects\dotnet\Geobase\Solution Files\WebEditor\Bin\Debug\WebEditor.dll) date is read from file
[Debug]  Project's 'WebEditor' date is 3/8/2011 8:59:28 AM
[Debug]  Item's 'SetLayerUrlAction.cs' date is 3/7/2011 2:28:50 PM
[Debug]  Item's 'ToggleCollapseAction.cs' date is 3/7/2011 2:28:50 PM
[Debug]  Item's 'ToggleVisibilityAction.cs' date is 3/7/2011 2:28:50 PM
[Debug]  Item's 'App.xaml' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'blue_globe.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'collapse.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'dismiss.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'expand.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_about.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_clickglobe.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_globe.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_legend.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_magnifyglass.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_nav.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_options.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_overview.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_tools.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_widget.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_zoomin.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'i_zoomout.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'logo.png' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'MainPage.xaml' date is 3/8/2011 8:55:53 AM
[Debug]  Item's 'AppManifest.xml' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'AssemblyInfo.cs' date is 3/8/2011 8:55:58 AM
[Debug]  Item's 'NavigationStyle.xaml' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'generic.xaml' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'CollapsiblePanel.xaml' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'ScaleBar.xaml' date is 3/7/2011 2:28:49 PM
[Debug]  Item's 'WindowPanel.xaml' date is 3/7/2011 2:28:49 PM
[Debug] Project 'WebEditor' is not modified
[Debug] Checking project 'WebEditor.Web'...
[Debug] File (E:\projects\dotnet\Geobase\Solution Files\WebEditor.Web\bin\WebEditor.Web.dll) date is read from file
[Debug]  Project's 'WebEditor.Web' date is 3/8/2011 8:59:27 AM
[Debug]  Item's 'WebEditor.xap' date is 3/8/2011 8:59:29 AM
[Debug] Project's ('WebEditor.Web') item 'ClientBin' is modified. Version will be updated.
[Debug] Solution/Folder 'Geobase' is not modified
[Debug] Checking solution item 'WebEditor'...
[Debug]  Cached result for 'WebEditor' is False
[Debug] Checking solution item 'WebEditor.Web'...
[Debug]  Cached result for 'WebEditor.Web' is True
[Debug] BuildEvents_OnBuildDone scope: vsBuildScopeSolution action vsBuildActionBuild
[Debug] Checking solution item 'Geobase'...
[Debug]  Cached result for 'Geobase' is True
[Debug] Checking solution item 'WebEditor'...
[Debug]  Cached result for 'WebEditor' is False
[Debug] Checking solution item 'WebEditor.Web'...
[Debug]  Cached result for 'WebEditor.Web' is True
[Debug] Items checked
[Debug]  Item: Project:WebEditor -> False
[Debug]  Item: Project:WebEditor.Web -> True
[Debug]  Item: Solution:Geobase -> True
[Debug] Clearing date and solution cache

The WebEditor.xap is probably copied to the web project when the Silverlight project is built, which causes the add-in to think the web project was modified every time the solution is rebuilt.

As for the suggestion, I would like a way to turn of leading zeros for the build numbers or specify a format.  For example, DeltaBaseDate can have a build number of '1', but is formatted as '001', I would prefer to be able to just have it as '1'.