コード例 #1
0
ファイル: ResolvedFile.cs プロジェクト: weshaggard/sdk
        public override bool Equals(object obj)
        {
            ResolvedFile other = obj as ResolvedFile;

            return(other != null &&
                   other.SourcePath == SourcePath &&
                   other.DestinationSubDirectory == DestinationSubDirectory);
        }
コード例 #2
0
        private RuntimeFile CreateRuntimeFile(ResolvedFile resolvedFile)
        {
            string relativePath = resolvedFile.PathInPackage;

            if (string.IsNullOrEmpty(relativePath))
            {
                relativePath = resolvedFile.DestinationSubPath;
            }
            return(CreateRuntimeFile(relativePath, resolvedFile.SourcePath));
        }