Implements IBuildActivity and also builds the project through msbuild if it exists
Inheritance: IBuildActivity
        /// <summary>
        /// Sets the endpoint for the package instead of doing an upload
        /// </summary>
        IHostedServiceActivity IBuildActivity.SetCspkgEndpoint(string uriEndpoint, string cscfgFilePath)
        {
            if((uriEndpoint.StartsWith("http://") || uriEndpoint.StartsWith("https://")) && cscfgFilePath == null)
                throw new ApplicationException("please define a valid .cscfg file");
            if (BuildActivity == null)
                BuildActivity = new BuildActivity(this);
            ((IBuildActivity) BuildActivity).SetCspkgEndpoint(uriEndpoint, cscfgFilePath);

            return this;
        }
 public IHostedServiceActivity SetCspkgEndpoint(Uri uriEndpoint, XDocument configuration)
 {
     if (BuildActivity == null)
         BuildActivity = new BuildActivity(this);
     ((IBuildActivity)BuildActivity).SetCspkgEndpoint(uriEndpoint, configuration);
     return this;
 }
        /// <summary>
        /// Sets the root path to .ccproj 
        /// </summary>
        IDefinitionActivity IBuildActivity.SetBuildDirectoryRoot(string directoryName)
        {
            if (BuildActivity == null)
                BuildActivity = new BuildActivity(this);
            ((IBuildActivity) BuildActivity).SetBuildDirectoryRoot(directoryName);
            BuildActivity.Rebuild();

            return this;
        }