./sdkmanager --list > tmp.txt 给我一个像这样的.txt文件:
Installed packages:
Path | Version | Description | Location
------- | ------- | ------- | -------
tools | 25.2.3 | Android SDK Tools 25.2.3 | tools/
Available Packages:
Path | Version | Description
------- | ------- | -------
add-ons;addon-g..._apis-google-15 | 3 | Google APIs
add-ons;addon-g..._apis-google-16 | 4 | Google APIs
add-ons;addon-g..._apis-google-17 | 4 | Google APIs
add-ons;addon-g..._apis-google-18 | 4 | Google APIs
add-ons;addon-g..._apis-google-19 | 20 | Google APIs
add-ons;addon-g..._apis-google-21 | 1 | Google APIs
add-ons;addon-g..._apis-google-22 …Run Code Online (Sandbox Code Playgroud) 我想在F#中代表标准扑克牌.我的目标是实现一个微软纸牌(Windows附带的一个)的克隆,一个卡片套装,面部和颜色很重要的游戏.这个练习主要是为了学习一些F#.
我考虑过使用歧视的工会:
type Suit =
| Diamonds
| Hearts
| Clubs
| Spades
type Color =
| Red
| Black
type Face =
Two | Three | Four | Five | Six | Seven |
Eight | Nine | Ten | Jack | Queen | King | Ace
Run Code Online (Sandbox Code Playgroud)
卡的记录类型:
type Card = {
suit: Suit;
face: Face;
color: Color;
}
Run Code Online (Sandbox Code Playgroud)
但是,卡片的颜色可以从它的套装中推断出来 - 所有钻石和红心都是红色的,所有的俱乐部和黑桃都是黑色的.不能仅从Color确定套装.也许这样的事情是合适的:
type Suit =
| Diamonds of Color //should always be red
| Hearts …Run Code Online (Sandbox Code Playgroud) 我安装了Visual Studio 2013 Premium和2012 Premium。我在TFS中收到有关代码审查的电子邮件通知。这些通知包括一个打开评论的链接,显示文本为“在Visual Studio中打开更改和评论”。链接位置以
vstfs://codereview/...
Run Code Online (Sandbox Code Playgroud)
当我单击链接时,将在Visual Studio 2012中打开代码审阅。
如何使Visual Studio 2013代替Visual Studio 2012处理代码审阅电子邮件链接?我希望它们可以在Visual Studio 2013中打开。
我有一个向Raygun报告崩溃的Xamarin.Android应用程序。从Release版本报告给Raygun的堆栈跟踪不包括行号。如果我为Release构建配置提供与.csproj文件中的Debug配置相同的设置:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
...
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)
那么我仍然看不到发送给Raygun的堆栈跟踪中的行号。但是,如果我在运行带有附加的Visual Studio调试器的应用程序时,则发送到Raygun的堆栈跟踪信息确实包含行号。请注意,无论如何,所有堆栈跟踪都包括类和方法的名称。这个问题只与行号有关。
如果引发异常时附加了调试器,为什么堆栈跟踪仅包含行号?更重要的是,如何在没有附加调试器的情况下,在Release版本的报告堆栈跟踪中获取行号?