We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b506c7 commit 3cee019Copy full SHA for 3cee019
2 files changed
Code/UsingMSBuildCopyOutputFileToFastDebug/Program.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.Linq;
3
using dotnetCampus.Cli;
4
using dotnetCampus.MSBuildUtils;
5
@@ -17,6 +18,17 @@ static void Main(string[] args)
17
18
}
19
#endif
20
21
+ if (args[0] == "--")
22
+ {
23
+ // 为了兼容旧版本,依然使用如下格式
24
+ // dotnet foo.dll -- --a 1 --b ab
25
+ // 在 .NET 6 将会让 -- 作为第一个参数,因此需要去掉
26
+ var list = args.ToList();
27
+ list.RemoveAt(0);
28
+ args = list.ToArray();
29
+ // 还好上面代码不在乎性能,让我试试这个逗比方法
30
+ }
31
+
32
CommandLine.Parse(args).AddHandler<CleanOptions>(c =>
33
{
34
Logger.Message($"Enter CleanOptions");
build/Version.props
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
- <Version>1.3.207</Version>
+ <Version>1.3.211</Version>
</PropertyGroup>
</Project>
0 commit comments