Hongye,
To trace it, I've isolated it to a single file (AmazonLocation.resx) but this problem seems to occur for all of the WinForm/UserControl objects.
I traced it per your instructions, and here's what I found:
1. The date/time of the AmazonLocation.cs/AmazonLocation.Designer.cs/AmazonLocation.resx files are all 9/12 @ 12:28pm. The date/time of the EXE/PDB is 9/15 @ 9:45am, so this should not trigger the build.
2. The date/time of the obj/Release/AmazonLocation.resources is 9/15 @ 9:45am. The date/time of the EXE/PDB is 9/15 @ 9:45am. If I sort the directory by date/time, the EXE/PDB comes AFTER the resources file, so this should not trigger the build UNLESS the date/time compare is not looking at the FULL time (9:45.01034am).
3. The AmazonLocation.cs/resx are not updated by the build. The build log shows the following code where the resx is compiled into the resources file:
Target "CoreResGen: (TargetId:649)" in file "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets" from project "C:\Users\dougc\Documents\Programming\Backazon\v1.1\Backazon.Windows\Backazon.Windows.csproj": Task "GenerateResource" (TaskId:401) "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\Resgen.exe" /useSourcePath /r:C:\Users\dougc\Documents\Programming\Backazon\Artifacts\Reactor.Source\AmazonServices.dll /r:C:\Users\dougc\Documents\Programming\Backazon\Artifacts\Reactor.Source\Backazon.dll /r:C:\Users\dougc\Documents\Programming\Backazon\Artifacts\Reactor.Source\Backazon.Shared.dll /r:C:\Users\dougc\Documents\Programming\Backazon\Artifacts\Reactor.Source\DA.Common.dll /r:..\Tools\DevExpress.DLL\DevExpress.Data.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.Utils.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.Xpo.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraBars.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraEditors.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraGrid.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraNavBar.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraPrinting.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraReports.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraRichTextEdit.v7.3.dll /r:..\Tools\DevExpress.DLL\DevExpress.XtraTreeList.v7.3.dll /r:..\Tools\Reactor\License.dll /r:..\Tools\NUnit\nunit.framework.dll /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Security.dll /r:..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\System.ServiceProcess\2.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /r:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /r:..\Tools\TypeMock.NET\Typemock.ArrangeActAssert.Dll /r:..\Tools\TypeMock.NET\TypeMock.dll /compile AmazonLocation.resx,obj\Release\Backazon.Windows.AmazonLocation.resources BackupJobSpecs\JobFormError.resx,obj\Release\Backazon.Windows.BackupJobSpecs.JobFormError.resources AmazonCosts.resx,obj\Release\Backazon.Windows.AmazonCosts.resources CrateControls\AddCrateWizard.resx,obj\Release\Backazon.Windows.CrateControls.AddCrateWizard.resources CrateControls\BrowseAmazonFiles.resx,obj\Release\Backazon.Windows.CrateControls.BrowseAmazonFiles.resources CredentialsControls\AmazonCredentialsForm.resx,obj\Release\Backazon.Windows.CredentialsControls.AmazonCredentialsForm.resources CredentialsControls\CredentialsList.resx,obj\Release\Backazon.Windows.CredentialsControls.CredentialsList.resources CredentialsControls\CredentialsPanel.resx,obj\Release\Backazon.Windows.CredentialsControls.CredentialsPanel.resources CredentialsControls\CredentialsEdit.resx,obj\Release\Backazon.Windows.CredentialsControls.CredentialsEdit.resources CredentialsControls\WindowsCredentialsForm.resx,obj\Release\Backazon.Windows.CredentialsControls.WindowsCredentialsForm.resources HelpLink.resx,obj\Release\Backazon.Windows.HelpLink.resources InfoPopup\CrateInfoLink.resx,obj\Release\Backazon.Windows.InfoPopup.CrateInfoLink.resources CrateControls\ChangePassword.resx,obj\Release\Backazon.Windows.CrateControls.ChangePassword.resources EstimatedCosts.resx,obj\Release\Backazon.Windows.EstimatedCosts.resources Licensing\LicenseExpired.resx,obj\Release\Backazon.Windows.Licensing.LicenseExpired.resources Licensing\LicenseSuccess.resx,obj\Release\Backazon.Windows.Licensing.LicenseSuccess.resources InfoPopup\PasswordInfo.resx,obj\Release\Backazon.Windows.InfoPopup.PasswordInfo.resources BackupJobSpecs\QuickPicks.resx,obj\Release\Backazon.Windows.BackupJobSpecs.QuickPicks.resources Licensing\TrialLicense.resx,obj\Release\Backazon.Windows.Licensing.TrialLicense.resources Licensing\MissingLicense.resx,obj\Release\Backazon.Windows.Licensing.MissingLicense.resources CopyFiles.resx,obj\Release\Backazon.Windows.CopyFiles.resources Licensing\EnterSerialNumber.resx,obj\Release\Backazon.Windows.Licensing.EnterSerialNumber.resources CopyTo.resx,obj\Release\Backazon.Windows.CopyTo.resources BackupJobSpecs\JobSummary.resx,obj\Release\Backazon.Windows.BackupJobSpecs.JobSummary.resources Licensing\SubscriptionLicense.resx,obj\Release\Backazon.Windows.Licensing.SubscriptionLicense.resources LogListControl.resx,obj\Release\Backazon.Windows.LogListControl.resources Logs.resx,obj\Release\Backazon.Windows.Logs.resources LogViewer.resx,obj\Release\Backazon.Windows.LogViewer.resources Licensing\NoLicenseFile.resx,obj\Release\Backazon.Windows.Licensing.NoLicenseFile.resources CrateControls\RequestPassword.resx,obj\Release\Backazon.Windows.CrateControls.RequestPassword.resources RestoreWizard.resx,obj\Release\Backazon.Windows.RestoreWizard.resources SelectCrateCan.resx,obj\Release\Backazon.Windows.SelectCrateCan.resources CopyToForm.resx,obj\Release\Backazon.Windows.CopyToForm.resources InfoPopup\InfoLink.resx,obj\Release\Backazon.Windows.InfoPopup.InfoLink.resources CrateControls\CrateList.resx,obj\Release\Backazon.Windows.CrateControls.CrateList.resources CrateControls\Crates.resx,obj\Release\Backazon.Windows.CrateControls.Crates.resources ContentWithTitle.resx,obj\Release\Backazon.Windows.ContentWithTitle.resources BackupJobSpecs\DefineJob.resx,obj\Release\Backazon.Windows.BackupJobSpecs.DefineJob.resources ErrorMessage.resx,obj\Release\Backazon.Windows.ErrorMessage.resources BackupJobSpecs\JobForm.resx,obj\Release\Backazon.Windows.BackupJobSpecs.JobForm.resources BackupJobSpecs\JobList.resx,obj\Release\Backazon.Windows.BackupJobSpecs.JobList.resources BackupJobSpecs\Jobs.resx,obj\Release\Backazon.Windows.BackupJobSpecs.Jobs.resources BackupJobSpecs\JobSchedule.resx,obj\Release\Backazon.Windows.BackupJobSpecs.JobSchedule.resources BackupJobSpecs\JobStartNow.resx,obj\Release\Backazon.Windows.BackupJobSpecs.JobStartNow.resources MainForm.resx,obj\Release\Backazon.Windows.MainForm.resources InfoPopup\PopupInfo.resx,obj\Release\Backazon.Windows.InfoPopup.PopupInfo.resources Properties\Resources.resx,obj\Release\Backazon.Windows.Properties.Resources.resources BackupJobSpecs\QuickPickCheckbox.resx,obj\Release\Backazon.Windows.BackupJobSpecs.QuickPickCheckbox.resources Restore.resx,obj\Release\Backazon.Windows.Restore.resources InfoPopup\CanInfo.resx,obj\Release\Backazon.Windows.InfoPopup.CanInfo.resources BackupJobSpecs\SelectBackupSources.resx,obj\Release\Backazon.Windows.BackupJobSpecs.SelectBackupSources.resources BackupJobSpecs\SpecialFolderCheckbox.resx,obj\Release\Backazon.Windows.BackupJobSpecs.SpecialFolderCheckbox.resources Splash.resx,obj\Release\Backazon.Windows.Splash.resources StatusContents.resx,obj\Release\Backazon.Windows.StatusContents.resources Update.resx,obj\Release\Backazon.Windows.Update.resources CrateControls\ViewContents.resx,obj\Release\Backazon.Windows.CrateControls.ViewContents.resources WaitMessage.resx,obj\Release\Backazon.Windows.WaitMessage.resources Status.resx,obj\Release\Backazon.Windows.Status.resources (TaskId:401) Creating a separate AppDomain because "NeverLockTypeAssemblies" evaluated to 'true'. (TaskId:401) Processing resource file "AmazonLocation.resx" into "obj\Release\Backazon.Windows.AmazonLocation.resources". (TaskId:401) Processing 1 resources from file "AmazonLocation.resx". (TaskId:401)
So, the question remains, why is the AmazonLocation.resx being processed into the AmazonLocation.resources when it has not changed?
Best regards, Doug |