NAnt.Core.FrameworkInfo.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        private void Init()
        {
            if (_status != InitStatus.Uninitialized) {
                return;
            }

            // the framework node is not available when working with a
            // deserialized FrameworkInfo, and as such it's no use
            // attempting to initialize it when the status is invalid
            // since it will not get us the actual reason anyway
            AssertNotInvalid();

            try {
                PerformInit();
            } catch (Exception ex) {
                throw new BuildException(string.Format(CultureInfo.InvariantCulture,
                    "Failed to initialize the '{0}' ({1}) target framework.",
                    Description, Name), Location.UnknownLocation, ex);
            }
        }