で起動ヒットすることはできません。OpenNetCF.IoC私は<a href="http://ioc.codeplex.com" rel="nofollow">OpenNetCF's IoC framework</a>を使用していますし、私のプログラムのクラスのコードがどのように見えるSmartClientApplication
public class Program : SmartClientApplication<Container>
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
if (!string.Equals(RegionInfo.CurrentRegion.EnglishName, "New Zealand") ||
!string.Equals(TimeZone.CurrentTimeZone.StandardName, "New Zealand Standard Time"))
{
MessageBox.Show("Please set your regional and time zone settings to New Zealand.");
return;
}
AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
new Program().Start();
}
static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
{
if (Debugger.IsAttached)
{
Debugger.Break();
}
}
}
私は私の解決策にOpenNETCFをコピーしたとするとき、プログラム()私は期待していました.Start()私はそれにブレークポイントを設定して、それがここでstartメソッドにジャンプしますと呼ばれていました:それはブレークポイントを打つことはありません
public abstract class SmartClientApplication<TShell>
where TShell : Form
{
/// <summary>
/// This method loads the Profile Catalog Modules by calling GetModuleInfoStore which, unless overridden, uses a DefaultModuleInfoStore instance.
/// It then creates an instance of TShell and calls Application.Run with that instance.
/// </summary>
public void Start()
{
// load up the profile catalog here
IModuleInfoStore store = GetModuleInfoStore();
Start(store);
}
不思議。
私はこれが奇妙だと思ったので、プログラムでクリックして、SmartClientApplicationへの継承参照の定義に移動しました。
は、これは私が期待していたものに完全に別のファイルを開いて、次のようになります。using OpenNETCF.IoC;
using System;
using System.Windows.Forms;
namespace OpenNETCF.IoC.UI
{
public abstract class SmartClientApplication<TShell> where TShell : System.Windows.Forms.Form
{
protected SmartClientApplication();
public virtual void AddServices();
protected virtual void AfterShellCreated();
public virtual IModuleInfoStore GetModuleInfoStore();
public virtual void OnApplicationRun(Form form);
public virtual void OnModuleLoadComplete(string moduleName);
public void Start();
public void Start(string profileCatalog);
}
}
同じ名前が、内容はどのような実装が含まれていないように見えます。その場所がどこにあるかは、
C:\ Users \ myusername \ AppData \ Local \ Temp \ 7212 $ OpenNETCF.IoC.UI.dll $ v2.0.50727 \ OpenNETCF.IoC.UI.SmartClientApplicationのようなものです。 cs
なぜそれがブレークポイントに当たっていないのかを説明しますが、私が知りたいのは、なぜこの狂ったファイルを見ているのでしょうか。