在团队资源管理器中它提示我安装第三方git工具,我不打算使用Git命令行,只是Visual Studio的本机GUI来克隆,拉取,提交,同步,合并并可能发出拉取请求.
那么我需要安装第三方Git命令提示工具(或Github扩展)吗?因为我已经安装了2.10.1并没有注意到任何不同.如果我这样做,我会得到什么,如果不这样做,我会失去什么,因为我想要一个干净的最小安装,所有的教程和文档假设我必须安装它们.
这是我的XML代码:
<Button
android:text="Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/MyButton"
android:id="@+id/button1"
android:onClick="sayHellow" /> //RELEVANT PART
Run Code Online (Sandbox Code Playgroud)
这是我的主要活动:
[Activity(Label = "FFFF", MainLauncher = true, Icon = "@drawable/icon", Theme = "@style/Theme.AppCompat.Light")]
public class MainActivity : AppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
}
public void sayHellow(View v) //CALLBACK FUNCTION
{
Snackbar.Make(v, "My text", Snackbar.LengthLong)
.Show();
}
}
Run Code Online (Sandbox Code Playgroud)
问题是我遇到运行时错误,调试窗口抱怨Button找不到“ sayHellow”函数,但是如您所见,我根据文档声明了所有内容。