在我的提交消息中,我正在尝试使用指南:
1º线 - 总结<80char
2º线 - 空间
3º线 - 身体信息从这里开始
在控制台中,我这样做:
git commit
然后编辑器打开,我写了一条消息,我想遵循我保存的指导方针,然后关闭编辑器.
我返回控制台,它给我错误:
error: There was a problem with the editor '"C:/Program Files (x86)/GitExtensions/GitExtensions.exe" fileeditor'.
Please supply the message using either -m or -F option.
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用cmd或jenkins构建作业使用msbuild运行构建文件.
该项目的结构是

演示在这里:www.saramgsilva.com/wp7/sarasilvademo.rar
现在我有3种不同的方式来运行fxcop,但我总是有问题.
1)在cmd中转到根文件然后运行
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe .\SaraSilva.WP7.build /target:FxCop
Run Code Online (Sandbox Code Playgroud)
这显示错误:退出代码128
2)在cmd中转到根文件然后运行
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe .\SaraSilva.WP7C.build /target:FxCop
Run Code Online (Sandbox Code Playgroud)
这不会创建buildartifacts\FxCop\FxCopAnalysis.xml文件.
3)在cmd中转到根文件然后运行
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe .\SaraSilva.WP7.build /target:TestWithCoverage
Run Code Online (Sandbox Code Playgroud)
和
C:\SaraSilvaDemo\tools\FxCop-1.36\FxCopCmd.exe /file:C:\SaraSilvaDemo\buildartifacts /directory:C:\SaraSilvaDemo\buildartifacts\ /rule:C:\SaraSilvaDemo\tools\FxCop-1.36\Rules /out:C:\SaraSilvaDemo\buildartifacts\fxcop-result.xml
Run Code Online (Sandbox Code Playgroud)
结果是:
Microsoft(R)FxCop命令行工具,版本1.36(9.0.30729.1)版权所有(C)2007 Microsoft Corporation.版权所有.
加载DesignRules.dll ...加载GlobalizationRules.dll ...加载InteroperabilityRules.dll ...加载MobilityRules.dll ...加载NamingRules.dll ...加载PerformanceRules.dll ...加载PortabilityRules.dll ...加载SecurityRules.dll ...已加载UsageRules.dll ...无法加载Cimbalino.Phone.Toolkit.dll.无法加载GalaSoft.MvvmLight.Extras.WP71.dll.无法加载GalaSoft.MvvmLight.WP71.dll.无法加载Microsoft.Phone.Controls.dll.无法加载Microsoft.Practices.ServiceLocation.dll.无法加载mscorlib.Extensions.dll.无法加载NLog.dll.已加载nunit.framework.dll ...已加载SaraSilva.WP7.AllTests.dll ...无法加载SaraSilva.WP7.App.dll.无法加载SaraSilva.WP7.Model.dll.无法加载SaraSilva.WP7.SampleData.dll.无法加载SaraSilva.WP7.SchedTask.dll.无法加载SaraSilva.WP7.Service.dll.加载System.Core.dll ...无法加载System.dll.无法加载System.Windows.Browser.dll.加载System.Windows.dll ...无法加载System.Windows.Interactivity.dll.无法加载System.Xml.dll.无法加载TombstoneHelper.dll.初始化Introspection引擎...无法解析对System.Net的引用.分析完成.
注意:找不到一个或多个引用的程序集.使用'/ directory'开关指定其他程序集引用搜索路径.
- 没有进行分析; 必须至少指定一个有效的规则程序集和一个有效的目标文件.
- 2总分析引擎异常.将报告写入C:\ SaraSilvaDemo\buildartifacts\fxcop-result.xml ...完成.
我不知道该怎么办 :(
我正在使用新概念AppShell,并且我正在执行以下流程
App.MainPage = new AppShell();
Run Code Online (Sandbox Code Playgroud)
那我就做
protected async override void OnStart()
{
await Shell.Current.GoToAsync($"//{nameof(LoginPage)}");
}
Run Code Online (Sandbox Code Playgroud)
有了这个,我有一个 ForgetPasswordPage,来自 LoginViewModel 我做
await Shell.Current.GoToAsync($"//{nameof(ForgetPasswordPage)}");
Run Code Online (Sandbox Code Playgroud)
重点是如果我这样做
var color = new Color(33, 150, 243);
Xamarin.Essentials.Platform.CurrentActivity.Window.SetStatusBarColor(color);
Run Code Online (Sandbox Code Playgroud)
在 Android 的 Create 方法中,StatusBar 具有我定义的颜色。那么iOS的方法在哪里呢?
我尝试了这些解决方案
没有成功...
有人可以解释如何更改状态代码,但我想将其设置在我的 ContentPage 中,我可以使用样式或像这样的简单代码行
Xamarin.Essentials.Platform.CurrentActivity.Window.SetStatusBarColor(颜色);
Android项目中使用的。
我按照其他帖子中的步骤进行操作,得到:
Foundation.MonoTouchException: '抛出 Objective-C 异常。名称:NSInternalInconsistencyException 原因:应用程序在 UIApplication 上调用了 -statusBar 或 -statusBarWindow:必须更改此代码,因为不再有状态栏或状态栏窗口。请改用窗口场景上的 statusBarManager 对象。本机堆栈跟踪:0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
System.Reflection.TargetInitationException Message=调用目标已引发异常