<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a K2 Deployment Package from code</title>
	<atom:link href="http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/</link>
	<description>Bloggin' my world....</description>
	<lastBuildDate>Sat, 21 Jan 2012 08:24:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Natrajk</title>
		<link>http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/comment-page-1/#comment-14750</link>
		<dc:creator>Natrajk</dc:creator>
		<pubDate>Thu, 06 Oct 2011 08:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://cyclops.nettrends.nl/blog/?p=37#comment-14750</guid>
		<description>Hehe, sorry about that Ruben, and thank you for the quick response!

That is essentially the same as my code now. Since the InfoPath templates (.xsn) does not have content of type IProjectFileContent, they are not compiled, but they are opened. As far as I can tell all the fields are there in the package, so maybe there is something missing in the InfoPath forms? I will have to dig a bit deeper.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hehe, sorry about that Ruben, and thank you for the quick response!</p>
<p>That is essentially the same as my code now. Since the InfoPath templates (.xsn) does not have content of type IProjectFileContent, they are not compiled, but they are opened. As far as I can tell all the fields are there in the package, so maybe there is something missing in the InfoPath forms? I will have to dig a bit deeper.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/comment-page-1/#comment-14742</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Wed, 05 Oct 2011 10:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://cyclops.nettrends.nl/blog/?p=37#comment-14742</guid>
		<description>I&#039;m not david, but thanks anyway :-)

The code here is a bit old. this newer code might work better:
        Project k2Proj = new Project();
        k2Proj.Load(@&quot;c:\testing\k2MsBuild\K2WorkflowProject1\K2WorkflowProject1\K2WorkflowProject1.k2proj&quot;);
        
 
        foreach (ProjectFile pf in k2Proj.GetAllFiles(true))
        {
                 if (!pf.Excluded)
                {
                        pf.Open();
                        IProjectFileContent so = (IProjectFileContent)pf.Content;
 
                        so.Compile();
                }
        }
 
 
        LogLine(&quot;Creating deployment package and adding environment.&quot;);
        DeploymentPackage depPackage = k2Proj.CreateDeploymentPackage();
        AddEnvironment(depPackage); // Add the environment fields to the deployment package.
 
        LogLine(&quot;Saving deployment package&quot;);
        depPackage.Save(@&quot;c:\testing\deploymentpackage\&quot;, &quot;runme&quot;);


Please check if the adding of the deployment package is correct. You can also look in the msbuild file (it&#039;s XML) to see if everything is added correctly.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not david, but thanks anyway :-)</p>
<p>The code here is a bit old. this newer code might work better:<br />
        Project k2Proj = new Project();<br />
        k2Proj.Load(@&#8221;c:\testing\k2MsBuild\K2WorkflowProject1\K2WorkflowProject1\K2WorkflowProject1.k2proj&#8221;);</p>
<p>        foreach (ProjectFile pf in k2Proj.GetAllFiles(true))<br />
        {<br />
                 if (!pf.Excluded)<br />
                {<br />
                        pf.Open();<br />
                        IProjectFileContent so = (IProjectFileContent)pf.Content;</p>
<p>                        so.Compile();<br />
                }<br />
        }</p>
<p>        LogLine(&#8220;Creating deployment package and adding environment.&#8221;);<br />
        DeploymentPackage depPackage = k2Proj.CreateDeploymentPackage();<br />
        AddEnvironment(depPackage); // Add the environment fields to the deployment package.</p>
<p>        LogLine(&#8220;Saving deployment package&#8221;);<br />
        depPackage.Save(@&#8221;c:\testing\deploymentpackage\&#8221;, &#8220;runme&#8221;);</p>
<p>Please check if the adding of the deployment package is correct. You can also look in the msbuild file (it&#8217;s XML) to see if everything is added correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natrajk</title>
		<link>http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/comment-page-1/#comment-14740</link>
		<dc:creator>Natrajk</dc:creator>
		<pubDate>Wed, 05 Oct 2011 09:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://cyclops.nettrends.nl/blog/?p=37#comment-14740</guid>
		<description>Hi David, thanks for the article.

I have built a TFS 2010 build Task which uses some of the code from your article. However, I have a problem with InfoPath forms (.xsn) files in the package. When I try to deploy them I get an error messge: &quot;The SharePoint site URL is null&quot;
This happens during the step:&quot;Checking if Forms Services is installed&quot;


Do you have any idea what could cause this?

regards,
Natrajk</description>
		<content:encoded><![CDATA[<p>Hi David, thanks for the article.</p>
<p>I have built a TFS 2010 build Task which uses some of the code from your article. However, I have a problem with InfoPath forms (.xsn) files in the package. When I try to deploy them I get an error messge: &#8220;The SharePoint site URL is null&#8221;<br />
This happens during the step:&#8221;Checking if Forms Services is installed&#8221;</p>
<p>Do you have any idea what could cause this?</p>
<p>regards,<br />
Natrajk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/comment-page-1/#comment-13526</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Sun, 05 Jun 2011 07:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://cyclops.nettrends.nl/blog/?p=37#comment-13526</guid>
		<description>Hi David,

We did not automate the deployment of the package. In our TFS2008 environment, that would require some batch of powershell scripting. We did not automate it because it wasn&#039;t needed anymore, but should be pretty easy.
As for TFS2010, everything (especially the build process) is different and I don&#039;t know how that works :(

regards,
    Ruben</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>We did not automate the deployment of the package. In our TFS2008 environment, that would require some batch of powershell scripting. We did not automate it because it wasn&#8217;t needed anymore, but should be pretty easy.<br />
As for TFS2010, everything (especially the build process) is different and I don&#8217;t know how that works :(</p>
<p>regards,<br />
    Ruben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DestructoDave</title>
		<link>http://cyclops.nettrends.nl/blog/2008/05/creating-a-k2-deployment-package-from-code/comment-page-1/#comment-13462</link>
		<dc:creator>DestructoDave</dc:creator>
		<pubDate>Mon, 30 May 2011 22:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://cyclops.nettrends.nl/blog/?p=37#comment-13462</guid>
		<description>Hi, Did you ever get this tool completed?  I&#039;m trying teh same withing with VS2010 and TFS2010 and trying to auto build the deploy package.</description>
		<content:encoded><![CDATA[<p>Hi, Did you ever get this tool completed?  I&#8217;m trying teh same withing with VS2010 and TFS2010 and trying to auto build the deploy package.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

