<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peter Gerritsen&#039;s blog &#187; Visual Studio 2010</title>
	<atom:link href="http://blog.petergerritsen.nl/tag/visual-studio-2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.petergerritsen.nl</link>
	<description>about .Net and SharePoint development</description>
	<lastBuildDate>Wed, 28 Jul 2010 08:28:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Force Visual Studio 2010 to add a SafeControl Entry</title>
		<link>http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 19:44:00 +0000</pubDate>
		<dc:creator>Peter Gerritsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[#SP2010NL]]></category>
		<category><![CDATA[SP2010]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://blog.petergerritsen.nl/2010/01/21/force-visual-studio-2010-to-add-a-safecontrol-entry/</guid>
		<description><![CDATA[When you create a project in Visual Studio 2010 on one of the SharePoint project templates it will take care of all the packaging for you. But when I was working on a project with custom workflow actions, the SafeControl entry that is needed for making it work was not added to the generated manifest.xml [...]<p><a href="http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/">Force Visual Studio 2010 to add a SafeControl Entry</a> is a post from: <a href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>When you create a project in Visual Studio 2010 on one of the SharePoint project templates it will take care of all the packaging for you. </p>
<p>But when I was working on a project with custom workflow actions, the <a  href="http://blog.petergerritsen.nl/2010/01/11/getting-custom-workflow-activities-into-sharepoint-designer-2010/" target="_blank">SafeControl entry that is needed for making it work</a> was not added to the generated manifest.xml file. </p>
<p>Fortunately the package designer allows you to modify the template file it uses for generating this file. So open up the package designer, switch to the “Manifest” tab and add the assembly reference in the template yourself, but this time, include the SafeControl entry: </p>
<p><a  href="http://blog.petergerritsen.nl/wp-content/uploads/image_2.png" class="thickbox no_icon" rel="gallery-650" title="image"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.petergerritsen.nl/wp-content/uploads/image_thumb9.png" width="587" height="359" /></a> </p>
<p>You can safely use the SharePoint project tokens in there as well, but only for the SafeControl entry. When you put it into the Assembly entry, the package generator won’t understand it and will add another assembly reference for the project output:</p>
<p><a  href="http://blog.petergerritsen.nl/wp-content/uploads/image_4.png" class="thickbox no_icon" rel="gallery-650" title="image"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.petergerritsen.nl/wp-content/uploads/image_thumb_1.png" width="590" height="387" /></a></p>
<!-- RO Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Twitter"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/twitter.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Twitter" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Twitter" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Force+Visual+Studio+2010+to+add+a+SafeControl+Entry&#038;c=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to MySpace"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/myspace.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to MySpace" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to MySpace" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/&#038;title=Force+Visual+Studio+2010+to+add+a+SafeControl+Entry" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Del.icio.us"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/delicious.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Del.icio.us" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Del.icio.us" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&#038;url=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/&#038;title=Force+Visual+Studio+2010+to+add+a+SafeControl+Entry" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to digg"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/digg.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to digg" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to digg" /></a><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/&#038;t=Force+Visual+Studio+2010+to+add+a+SafeControl+Entry" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to FaceBook"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/facebook.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to FaceBook" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to FaceBook" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Technorati"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/technorati.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Technorati" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Technorati" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/&#038;title=Force+Visual+Studio+2010+to+add+a+SafeControl+Entry" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Stumble Upon"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/stumbleupon.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Stumble Upon" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Stumble Upon" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&#038;output=popup&#038;bkmk=http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/&#038;title=Force+Visual+Studio+2010+to+add+a+SafeControl+Entry" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Google Bookmarks"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/google.png" title="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Google Bookmarks" alt="Add 'Force Visual Studio 2010 to add a SafeControl Entry' to Google Bookmarks" /></a></div>
<!-- RO Social Bookmarks END --><p><a  href="http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/">Force Visual Studio 2010 to add a SafeControl Entry</a> is a post from: <a  href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
<div class="fblike" style="height:25px; height:25px; overflow:hidden;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.petergerritsen.nl%2F2010%2F01%2F11%2Fforce-visual-studio-2010-to-add-a-safecontrol-entry%2F&amp;layout=standard&amp;show_faces=false&amp;width=320&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allow Transparency="true" style="border:none; overflow:hidden; width:320px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://blog.petergerritsen.nl/2010/01/11/force-visual-studio-2010-to-add-a-safecontrol-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
