下载安装
1. Windows10_SDK_10.0.14393.795 StandaloneSDK 600M
2. vs_professional_us 20G
win7先安装Windows10_SDK离线包
安装时不选跨平台App会小很多
VS2017 IDE
- 启动速度大大加快
- 开启专案速度加快
- Build速度快
- Nuget 速度加快非常多
- Unit Test 非常棒
- 免费Source 管理 Git与vsts 很好
- 執行至所按處鍵 很实用
- 通过定位游标中间字符串并按 Enter 键,将一个长字符串拆分为多个串联字符串。
- …….
C#7.0 New 语法试用
● out variables:
StringOut(out string ddd);
Console.Write(ddd);
● Tuples nuget引用System.ValueTuple
private static (string a,string b,string c) GetFullName()
● Pattern Matching
switch(obj)
case int b: data=b++; break;
case string x: x+=” string”;break;
…
● Local Functions
● More expression-bodied members
public CaCheContext(string label) => this.Label = label;
~CaCheContext() => Console.Error.WriteLine(“Finalized!”);
● throw Expressions
return a ?? throw new Exception(“异常了!”);
● Generalized async return types nuGet System.Threading.Tasks.Extensions
public ValueTask CachedFunc()
引用类型/值類型???
● Numeric literal syntax improvements
int a = 123_456;