File tree Expand file tree Collapse file tree
Code/UsingMSBuildCopyOutputFileToFastDebug Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ static int Main(string[] args)
5454 private static void CopyOutputFile ( CopyOutputFileOptions copyOutputFileOptions )
5555 {
5656 var targetFolder = GetTargetFolder ( copyOutputFileOptions ) ;
57+ if ( TargetFrameworkChecker . CheckCanCopy ( targetFolder , copyOutputFileOptions ) is false )
58+ {
59+ // 如果当前的框架是兼容的,那就进行拷贝,否则不做任何拷贝逻辑
60+ return ;
61+ }
62+
5763 var outputFileList = GetOutputFileList ( copyOutputFileOptions . OutputFileToCopyList ) ;
5864 }
5965
@@ -110,7 +116,11 @@ private static DirectoryInfo GetTargetFolder(CopyOutputFileOptions copyOutputFil
110116
111117 public static class TargetFrameworkChecker
112118 {
119+ public static bool CheckCanCopy ( DirectoryInfo targetFolder , CopyOutputFileOptions copyOutputFileOptions )
120+ {
113121
122+ return true ;
123+ }
114124 }
115125
116126 [ Verb ( "CopyOutputFile" ) ]
You can’t perform that action at this time.
0 commit comments