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 11using System ;
2+ using System . IO ;
23using System . Linq ;
34using dotnetCampus . Cli ;
45using dotnetCampus . MSBuildUtils ;
@@ -36,12 +37,42 @@ static void Main(string[] args)
3637 . AddHandler < CopyOutputFileOptions > ( c =>
3738 {
3839 Logger . Message ( $ "Enter CopyOutputFileOptions") ;
39- } ) ;
40+ CopyOutputFile ( c ) ;
41+ } )
42+ . Run ( ) ;
43+ }
44+
45+ private static void CopyOutputFile ( CopyOutputFileOptions copyOutputFileOptions )
46+ {
47+
48+ }
49+
50+ /// <summary>
51+ /// 获取准备输出的文件夹
52+ /// </summary>
53+ /// <param name="copyOutputFileOptions"></param>
54+ /// <returns></returns>
55+ private static DirectoryInfo GetTargetFolder ( CopyOutputFileOptions copyOutputFileOptions )
56+ {
57+ var mainProjectPath = copyOutputFileOptions . MainProjectPath ;
58+ // 如果用户有设置此文件夹,那就期望是输出到此文件夹
59+ if ( ! string . IsNullOrEmpty ( mainProjectPath ) )
60+ {
61+ return new DirectoryInfo ( mainProjectPath ) ;
62+ }
63+
64+ return null ;
4065 }
4166
4267 private static IMSBuildLogger Logger { get ; } = new MSBuildConsoleLogger ( ) ;
4368 }
4469
70+
71+ public static class TargetFrameworkChecker
72+ {
73+
74+ }
75+
4576 [ Verb ( "CopyOutputFile" ) ]
4677 public class CopyOutputFileOptions
4778 {
You can’t perform that action at this time.
0 commit comments