~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-02-05 10:49:36 UTC
  • mto: (10.3.1)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20120205104936-4ujoylapu24cquuo
Tags: upstream-2.8.6.3+dfsg
ImportĀ upstreamĀ versionĀ 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
778
778
                        if (base.CheckNeedsBuild (configuration))
779
779
                                return true;
780
780
                        
 
781
                        // base.CheckNeedsBuild() checks Project references, but not Assembly, Package, or Custom.
 
782
                        DateTime mtime = GetLastBuildTime (configuration);
 
783
                        foreach (ProjectReference pref in References) {
 
784
                                switch (pref.ReferenceType) {
 
785
                                case ReferenceType.Assembly:
 
786
                                        foreach (var file in GetAssemblyRefsRec (pref.Reference, new HashSet<string> ())) {
 
787
                                                try {
 
788
                                                        if (File.GetLastWriteTime (file) > mtime)
 
789
                                                                return true;
 
790
                                                } catch (IOException) {
 
791
                                                        // Ignore.
 
792
                                                }
 
793
                                        }
 
794
                                        break;
 
795
                                case ReferenceType.Package:
 
796
                                        if (pref.Package == null) {
 
797
                                                break;
 
798
                                        }
 
799
                                        foreach (var assembly in pref.Package.Assemblies) {
 
800
                                                try {
 
801
                                                        if (File.GetLastWriteTime (assembly.Location) > mtime)
 
802
                                                                return true;
 
803
                                                } catch (IOException) {
 
804
                                                        // Ignore.
 
805
                                                }
 
806
                                        }
 
807
                                        break;
 
808
                                }
 
809
                        }
 
810
                        
781
811
                        return Files.Any (file => file.BuildAction == BuildAction.EmbeddedResource
782
812
                                        && String.Compare (Path.GetExtension (file.FilePath), ".resx", StringComparison.OrdinalIgnoreCase) == 0
783
813
                                        && MD1DotNetProjectHandler.IsResgenRequired (file.FilePath));