<?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: Activating selected Features during the deployment of a package in Visual Studio 2010 SharePoint Developer Tools</title>
	<atom:link href="http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP &#124; ISSN 2210-9390</description>
	<lastBuildDate>Fri, 10 Feb 2012 18:00:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-120676</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Sat, 04 Feb 2012 14:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-120676</guid>
		<description>@Roland: You&#039;re welcome. The &#039;Menu Command&#039; thingy is a Visual Studio bug. Hope it will get fixed in 11.</description>
		<content:encoded><![CDATA[<p>@Roland: You&#039;re welcome. The &#039;Menu Command&#039; thingy is a Visual Studio bug. Hope it will get fixed in 11.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Oldengarm</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-120079</link>
		<dc:creator>Roland Oldengarm</dc:creator>
		<pubDate>Wed, 01 Feb 2012 12:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-120079</guid>
		<description>Thanks man, this really helped me out!!!
Only thing: In the Project context menu I see &quot;Menu Command&quot;  as title instead of the correct title :) Took me a second longer to find it :)</description>
		<content:encoded><![CDATA[<p>Thanks man, this really helped me out!!!<br />
Only thing: In the Project context menu I see &#034;Menu Command&#034;  as title instead of the correct title :) Took me a second longer to find it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Buus</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-61204</link>
		<dc:creator>Martin Buus</dc:creator>
		<pubDate>Thu, 25 Nov 2010 08:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-61204</guid>
		<description>Hi
Thanks for this awesome extension! It&#039;s a lifesaver when having features with featurereceivers which adds content on activation ;) Normally the content would be add x times the feature was activated...

BR
/Martin</description>
		<content:encoded><![CDATA[<p>Hi<br />
Thanks for this awesome extension! It&#039;s a lifesaver when having features with featurereceivers which adds content on activation ;) Normally the content would be add x times the feature was activated&#8230;</p>
<p>BR<br />
/Martin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mavention Activate Selected Features v1.1 - Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-59503</link>
		<dc:creator>Mavention Activate Selected Features v1.1 - Waldek Mastykarz</dc:creator>
		<pubDate>Fri, 05 Nov 2010 09:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-59503</guid>
		<description>[...] I’ve just published a new version of the Mavention Activate Selected Features extension with a bugfix for the issue that occurred while trying to open the dialog with new SharePoint projects. [...]</description>
		<content:encoded><![CDATA[<p>[...] I’ve just published a new version of the Mavention Activate Selected Features extension with a bugfix for the issue that occurred while trying to open the dialog with new SharePoint projects. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-59258</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Tue, 02 Nov 2010 06:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-59258</guid>
		<description>@El Topo: Thank you for sending the fix. I will try to add the fix as soon as possible and release a new version.</description>
		<content:encoded><![CDATA[<p>@El Topo: Thank you for sending the fix. I will try to add the fix as soon as possible and release a new version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: El Topo</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-59235</link>
		<dc:creator>El Topo</dc:creator>
		<pubDate>Mon, 01 Nov 2010 23:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-59235</guid>
		<description>Dear Waldek,

I took the liberty of analyzing your vsix package &#039;Activating Selected Features&#039;. It turns out there is a bug in method FillFeaturesPicker from class FeaturesPickerDialog. You miss checking selectedFeaturesIds for null before running Count(). This throws an exception when there is no Mavention_FeaturesSelectedForActivation project property specified. Here is a proposed version after the fix:

private void FillFeaturesPicker(IEnumerable featuresFromPackage, IEnumerable selectedFeaturesIds)
        {
            List source = new List(featuresFromPackage);
            List list2 = null;
            if (selectedFeaturesIds != null) 
            {
                list2 = new List(selectedFeaturesIds.Count());
                using (IEnumerator enumerator = selectedFeaturesIds.GetEnumerator())
                {
                    Func predicate = null;
                    Guid featureId;
                    while (enumerator.MoveNext())
                    {
                        featureId = enumerator.Current;
                        if (predicate == null)
                        {
                            predicate = delegate(SharePointProjectFeature f)
                            {
                                return f.Feature.Id.Equals(featureId);
                            };
                        }
                        SharePointProjectFeature item = source.Cast().Where(predicate).FirstOrDefault();
                        if (item != null)
                        {
                            list2.Add(item);
                            source.Remove(item);
                        }
                    }
                }
            }
            this.featuresPicker.SelectedItems = list2;
            this.featuresPicker.AvailableItems = source;
            this.featuresPicker.SelectedItemsLabel = &quot;Features to activate:&quot;;
            this.featuresPicker.AvailableItemsLabel = &quot;Features in the package:&quot;;
        }

It would be great, if you could fix the code and repost the package on code gallery, as the extension is highly useful.

Best Regards</description>
		<content:encoded><![CDATA[<p>Dear Waldek,</p>
<p>I took the liberty of analyzing your vsix package &#039;Activating Selected Features&#039;. It turns out there is a bug in method FillFeaturesPicker from class FeaturesPickerDialog. You miss checking selectedFeaturesIds for null before running Count(). This throws an exception when there is no Mavention_FeaturesSelectedForActivation project property specified. Here is a proposed version after the fix:</p>
<p>private void FillFeaturesPicker(IEnumerable featuresFromPackage, IEnumerable selectedFeaturesIds)<br />
        {<br />
            List source = new List(featuresFromPackage);<br />
            List list2 = null;<br />
            if (selectedFeaturesIds != null)<br />
            {<br />
                list2 = new List(selectedFeaturesIds.Count());<br />
                using (IEnumerator enumerator = selectedFeaturesIds.GetEnumerator())<br />
                {<br />
                    Func predicate = null;<br />
                    Guid featureId;<br />
                    while (enumerator.MoveNext())<br />
                    {<br />
                        featureId = enumerator.Current;<br />
                        if (predicate == null)<br />
                        {<br />
                            predicate = delegate(SharePointProjectFeature f)<br />
                            {<br />
                                return f.Feature.Id.Equals(featureId);<br />
                            };<br />
                        }<br />
                        SharePointProjectFeature item = source.Cast().Where(predicate).FirstOrDefault();<br />
                        if (item != null)<br />
                        {<br />
                            list2.Add(item);<br />
                            source.Remove(item);<br />
                        }<br />
                    }<br />
                }<br />
            }<br />
            this.featuresPicker.SelectedItems = list2;<br />
            this.featuresPicker.AvailableItems = source;<br />
            this.featuresPicker.SelectedItemsLabel = &#034;Features to activate:&#034;;<br />
            this.featuresPicker.AvailableItemsLabel = &#034;Features in the package:&#034;;<br />
        }</p>
<p>It would be great, if you could fix the code and repost the package on code gallery, as the extension is highly useful.</p>
<p>Best Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EL Topo</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-57854</link>
		<dc:creator>EL Topo</dc:creator>
		<pubDate>Fri, 15 Oct 2010 12:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-57854</guid>
		<description>Great idea for extension. Too bad it does not work :(
I am receiving the same exception as Michail and Sachin when clicking &#039;Select features to activate&#039;. Any chance that you could check and fix this problem? Or maybe you could just post the source code, so we could diagnose and fix the problem for ourselves?</description>
		<content:encoded><![CDATA[<p>Great idea for extension. Too bad it does not work :(<br />
I am receiving the same exception as Michail and Sachin when clicking &#039;Select features to activate&#039;. Any chance that you could check and fix this problem? Or maybe you could just post the source code, so we could diagnose and fix the problem for ourselves?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sachin Dekate</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-56013</link>
		<dc:creator>Sachin Dekate</dc:creator>
		<pubDate>Fri, 17 Sep 2010 17:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-56013</guid>
		<description>I am getting following error...

Unhandled exception occurred while calling method &#039;configureFeaturesActivationMenuItem_Click&#039; of type &#039;Mavention.VisualStudio.SharePoint.ActivateSelectedFeaturesProjectExtensions, MaventionActivateSelectedFeatures.Implementation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#039;. Exception: System.ArgumentNullException. Message: Value cannot be null.
Parameter name: source</description>
		<content:encoded><![CDATA[<p>I am getting following error&#8230;</p>
<p>Unhandled exception occurred while calling method &#039;configureFeaturesActivationMenuItem_Click&#039; of type &#039;Mavention.VisualStudio.SharePoint.ActivateSelectedFeaturesProjectExtensions, MaventionActivateSelectedFeatures.Implementation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#039;. Exception: System.ArgumentNullException. Message: Value cannot be null.<br />
Parameter name: source</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lluís</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-49804</link>
		<dc:creator>Lluís</dc:creator>
		<pubDate>Wed, 23 Jun 2010 10:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-49804</guid>
		<description>Hey Mihail, i am having same problem with this component, is complaining about the PublicKeyToken, so i checked my token value in the template.xml of the unique featurei have in the project, qich by the way was full O O, i will recheck everything, let&#039;s see if we can find the error. 

Cheers!!</description>
		<content:encoded><![CDATA[<p>Hey Mihail, i am having same problem with this component, is complaining about the PublicKeyToken, so i checked my token value in the template.xml of the unique featurei have in the project, qich by the way was full O O, i will recheck everything, let&#039;s see if we can find the error. </p>
<p>Cheers!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihail</title>
		<link>http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/comment-page-1/#comment-49612</link>
		<dc:creator>Mihail</dc:creator>
		<pubDate>Thu, 17 Jun 2010 14:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/activating-selected-features-deployment-package-visual-studio-2010-sharepoint-developer-tools/#comment-49612</guid>
		<description>I get this error by Clicking &quot;Select Features to activate…&quot; button:

Unhandled exception occurred while calling method &#039;configureFeaturesActivationMenuItem_Click&#039; of type &#039;Mavention.VisualStudio.SharePoint.ActivateSelectedFeaturesProjectExtensions, MaventionActivateSelectedFeatures.Implementation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#039;. Exception: System.ArgumentNullException. Message: Value cannot be null.
Parameter name: source</description>
		<content:encoded><![CDATA[<p>I get this error by Clicking &#034;Select Features to activate…&#034; button:</p>
<p>Unhandled exception occurred while calling method &#039;configureFeaturesActivationMenuItem_Click&#039; of type &#039;Mavention.VisualStudio.SharePoint.ActivateSelectedFeaturesProjectExtensions, MaventionActivateSelectedFeatures.Implementation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#039;. Exception: System.ArgumentNullException. Message: Value cannot be null.<br />
Parameter name: source</p>
]]></content:encoded>
	</item>
</channel>
</rss>

