{"id":422,"date":"2015-04-26T01:25:24","date_gmt":"2015-04-25T23:25:24","guid":{"rendered":"http:\/\/dev.flauschig.ch\/wordpress\/?p=422"},"modified":"2015-04-26T01:25:24","modified_gmt":"2015-04-25T23:25:24","slug":"convert-assembly-to-a-wpfassembly","status":"publish","type":"post","link":"http:\/\/dev.flauschig.ch\/wordpress\/?p=422","title":{"rendered":"&#8220;Convert&#8221; Assembly to a WPFAssembly"},"content":{"rendered":"<p>If there is an assembly which was not created as a WCF assembly you cannot add for example a new WPF Window with the &#8220;Add new Item&#8221;. To solve this, the assembly need to be marked as a &#8220;WPF&#8221;-assembly.<\/p>\n<p>Follow the following steps to complete this:<\/p>\n<ol>\n<li>Edit the .proj file<\/li>\n<li>Add <code>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}<\/code> into the first property group<\/li>\n<\/ol>\n<p>So the final .proj file looks someting like:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;Project ToolsVersion=\"12.0\" DefaultTargets=\"Build\" xmlns=\"http:\/\/schemas.microsoft.com\/developer\/msbuild\/2003\"&gt;\r\n  &lt;Import Project=\"$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props\" Condition=\"Exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.props')\" \/&gt;\r\n  &lt;PropertyGroup&gt;\r\n    &lt;Configuration Condition=\" '$(Configuration)' == '' \"&gt;Debug&lt;\/Configuration&gt;\r\n    &lt;Platform Condition=\" '$(Platform)' == '' \"&gt;AnyCPU&lt;\/Platform&gt;\r\n    &lt;ProjectGuid&gt;{2842585C-0E4F-4A4A-92D6-FCC062A3C0F8}&lt;\/ProjectGuid&gt;\r\n    &lt;OutputType&gt;WinExe&lt;\/OutputType&gt;\r\n    &lt;AppDesignerFolder&gt;Properties&lt;\/AppDesignerFolder&gt;\r\n    &lt;RootNamespace&gt;ArxWidgetManager&lt;\/RootNamespace&gt;\r\n    &lt;AssemblyName&gt;ArxWidgetManager&lt;\/AssemblyName&gt;\r\n    &lt;TargetFrameworkVersion&gt;v4.5.1&lt;\/TargetFrameworkVersion&gt;\r\n    &lt;FileAlignment&gt;512&lt;\/FileAlignment&gt;\r\n    &lt;ProjectTypeGuids&gt;{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;\/ProjectTypeGuids&gt;\r\n    &lt;WarningLevel&gt;4&lt;\/WarningLevel&gt;\r\n    &lt;AutoGenerateBindingRedirects&gt;true&lt;\/AutoGenerateBindingRedirects&gt;\r\n  &lt;\/PropertyGroup&gt;\r\n  &lt;PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \"&gt;\r\n    &lt;PlatformTarget&gt;AnyCPU&lt;\/PlatformTarget&gt;\r\n    ...<\/pre>\n<p>For completeness sake, here&#8217;s a list of some other project types:<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"319\">ASP.NET MVC 1.0<\/td>\n<td width=\"284\">{603C0E0B-DB56-11DC-BE95-000D561079B0}<\/td>\n<\/tr>\n<tr>\n<td>ASP.NET MVC 2.0<\/td>\n<td>{F85E285D-A4E0-4152-9332-AB1D724D3325}<\/td>\n<\/tr>\n<tr>\n<td>ASP.NET MVC 3.0<\/td>\n<td>{E53F8FEA-EAE0-44A6-8774-FFD645390401}<\/td>\n<\/tr>\n<tr>\n<td>ASP.NET MVC 4.0<\/td>\n<td>{E3E379DF-F4C6-4180-9B81-6769533ABE47}<\/td>\n<\/tr>\n<tr>\n<td>C#<\/td>\n<td>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}<\/td>\n<\/tr>\n<tr>\n<td>C++<\/td>\n<td>{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}<\/td>\n<\/tr>\n<tr>\n<td>Database<\/td>\n<td>{A9ACE9BB-CECE-4E62-9AA4-C7E7C5BD2124}<\/td>\n<\/tr>\n<tr>\n<td>Database (other project types)<\/td>\n<td>{4F174C21-8C12-11D0-8340-0000F80270F8}<\/td>\n<\/tr>\n<tr>\n<td>Deployment Cab<\/td>\n<td>{3EA9E505-35AC-4774-B492-AD1749C4943A}<\/td>\n<\/tr>\n<tr>\n<td>Deployment Merge Module<\/td>\n<td>{06A35CCD-C46D-44D5-987B-CF40FF872267}<\/td>\n<\/tr>\n<tr>\n<td>Deployment Setup<\/td>\n<td>{978C614F-708E-4E1A-B201-565925725DBA}<\/td>\n<\/tr>\n<tr>\n<td>Deployment Smart Device Cab<\/td>\n<td>{AB322303-2255-48EF-A496-5904EB18DA55}<\/td>\n<\/tr>\n<tr>\n<td>Distributed System<\/td>\n<td>{F135691A-BF7E-435D-8960-F99683D2D49C}<\/td>\n<\/tr>\n<tr>\n<td>Dynamics 2012 AX C# in AOT<\/td>\n<td>{BF6F8E12-879D-49E7-ADF0-5503146B24B8}<\/td>\n<\/tr>\n<tr>\n<td>F#<\/td>\n<td>{F2A71F9B-5D33-465A-A702-920D77279786}<\/td>\n<\/tr>\n<tr>\n<td>J#<\/td>\n<td>{E6FDF86B-F3D1-11D4-8576-0002A516ECE8}<\/td>\n<\/tr>\n<tr>\n<td>Legacy (2003) Smart Device (C#)<\/td>\n<td>{20D4826A-C6FA-45DB-90F4-C717570B9F32}<\/td>\n<\/tr>\n<tr>\n<td>Legacy (2003) Smart Device (VB.NET)<\/td>\n<td>{CB4CE8C6-1BDB-4DC7-A4D3-65A1999772F8}<\/td>\n<\/tr>\n<tr>\n<td>Model-View-Controller v2 (MVC2)<\/td>\n<td>{F85E285D-A4E0-4152-9332-AB1D724D3325}<\/td>\n<\/tr>\n<tr>\n<td>Model-View-Controller v3 (MVC3)<\/td>\n<td>{E53F8FEA-EAE0-44A6-8774-FFD645390401}<\/td>\n<\/tr>\n<tr>\n<td>Model-View-Controller v4 (MVC4)<\/td>\n<td>{E3E379DF-F4C6-4180-9B81-6769533ABE47}<\/td>\n<\/tr>\n<tr>\n<td>Mono for Android<\/td>\n<td>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF}<\/td>\n<\/tr>\n<tr>\n<td>MonoTouch<\/td>\n<td>{6BC8ED88-2882-458C-8E55-DFD12B67127B}<\/td>\n<\/tr>\n<tr>\n<td>MonoTouch Binding<\/td>\n<td>{F5B4F3BC-B597-4E2B-B552-EF5D8A32436F}<\/td>\n<\/tr>\n<tr>\n<td>Portable Class Library<\/td>\n<td>{786C830F-07A1-408B-BD7F-6EE04809D6DB}<\/td>\n<\/tr>\n<tr>\n<td>SharePoint (C#)<\/td>\n<td>{593B0543-81F6-4436-BA1E-4747859CAAE2}<\/td>\n<\/tr>\n<tr>\n<td>SharePoint (VB.NET)<\/td>\n<td>{EC05E597-79D4-47f3-ADA0-324C4F7C7484}<\/td>\n<\/tr>\n<tr>\n<td>SharePoint Workflow<\/td>\n<td>{F8810EC1-6754-47FC-A15F-DFABD2E3FA90}<\/td>\n<\/tr>\n<tr>\n<td>Silverlight<\/td>\n<td>{A1591282-1198-4647-A2B1-27E5FF5F6F3B}<\/td>\n<\/tr>\n<tr>\n<td>Smart Device (C#)<\/td>\n<td>{4D628B5B-2FBC-4AA6-8C16-197242AEB884}<\/td>\n<\/tr>\n<tr>\n<td>Smart Device (VB.NET)<\/td>\n<td>{68B1623D-7FB9-47D8-8664-7ECEA3297D4F}<\/td>\n<\/tr>\n<tr>\n<td>Solution Folder<\/td>\n<td>{2150E333-8FDC-42A3-9474-1A3956D46DE8}<\/td>\n<\/tr>\n<tr>\n<td>Test<\/td>\n<td>{3AC096D0-A1C2-E12C-1390-A8335801FDAB}<\/td>\n<\/tr>\n<tr>\n<td>VB.NET<\/td>\n<td>{F184B08F-C81C-45F6-A57F-5ABD9991F28F}<\/td>\n<\/tr>\n<tr>\n<td>Visual Database Tools<\/td>\n<td>{C252FEB5-A946-4202-B1D4-9916A0590387}<\/td>\n<\/tr>\n<tr>\n<td>Visual Studio Tools for Applications (VSTA)<\/td>\n<td>{A860303F-1F3F-4691-B57E-529FC101A107}<\/td>\n<\/tr>\n<tr>\n<td>Visual Studio Tools for Office (VSTO)<\/td>\n<td>{BAA0C2D2-18E2-41B9-852F-F413020CAA33}<\/td>\n<\/tr>\n<tr>\n<td>Web Application<\/td>\n<td>{349C5851-65DF-11DA-9384-00065B846F21}<\/td>\n<\/tr>\n<tr>\n<td>Web Site<\/td>\n<td>{E24C65DC-7377-472B-9ABA-BC803B73C61A}<\/td>\n<\/tr>\n<tr>\n<td>Windows (C#)<\/td>\n<td>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}<\/td>\n<\/tr>\n<tr>\n<td>Windows (VB.NET)<\/td>\n<td>{F184B08F-C81C-45F6-A57F-5ABD9991F28F}<\/td>\n<\/tr>\n<tr>\n<td>Windows (Visual C++)<\/td>\n<td>{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}<\/td>\n<\/tr>\n<tr>\n<td>Windows Communication Foundation (WCF)<\/td>\n<td>{3D9AD99F-2412-4246-B90B-4EAA41C64699}<\/td>\n<\/tr>\n<tr>\n<td>Windows Phone 8\/8.1 Blank\/Hub\/Webview App<\/td>\n<td>{76F1466A-8B6D-4E39-A767-685A06062A39}<\/td>\n<\/tr>\n<tr>\n<td>Windows Phone 8\/8.1 App (C#)<\/td>\n<td>{C089C8C0-30E0-4E22-80C0-CE093F111A43}<\/td>\n<\/tr>\n<tr>\n<td>Windows Phone 8\/8.1 App (VB.NET)<\/td>\n<td>{DB03555F-0C8B-43BE-9FF9-57896B3C5E56}<\/td>\n<\/tr>\n<tr>\n<td>Windows Presentation Foundation (WPF)<\/td>\n<td>{60DC8134-EBA5-43B8-BCC9-BB4BC16C2548}<\/td>\n<\/tr>\n<tr>\n<td>Windows Store (Metro) Apps &amp; Components<\/td>\n<td>{BC8A1FFA-BEE3-4634-8014-F334798102B3}<\/td>\n<\/tr>\n<tr>\n<td>Workflow (C#)<\/td>\n<td>{14822709-B5A1-4724-98CA-57A101D1B079}<\/td>\n<\/tr>\n<tr>\n<td>Workflow (VB.NET)<\/td>\n<td>{D59BE175-2ED0-4C54-BE3D-CDAA9F3214C8}<\/td>\n<\/tr>\n<tr>\n<td>Workflow Foundation<\/td>\n<td>{32F31D43-81CC-4C15-9DE6-3FC5453562B6}<\/td>\n<\/tr>\n<tr>\n<td>Xamarin.Android<\/td>\n<td>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF}<\/td>\n<\/tr>\n<tr>\n<td>Xamarin.iOS<\/td>\n<td>{6BC8ED88-2882-458C-8E55-DFD12B67127B}<\/td>\n<\/tr>\n<tr>\n<td>XNA (Windows)<\/td>\n<td>{6D335F3A-9D43-41b4-9D22-F6F17C4BE596}<\/td>\n<\/tr>\n<tr>\n<td>XNA (XBox)<\/td>\n<td>{2DF5C3F4-5A5F-47a9-8E94-23B4456F55E2}<\/td>\n<\/tr>\n<tr>\n<td>XNA (Zune)<\/td>\n<td>{D399B71A-8929-442a-A9AC-8BEC78BB2433}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>(<a href=\"http:\/\/www.codeproject.com\/Reference\/720512\/List-of-Visual-Studio-Project-Type-GUIDs\">Source<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If there is an assembly which was not created as a WCF assembly you cannot add for example a new WPF Window with the &#8220;Add new Item&#8221;. To solve this, the assembly need to be marked as a &#8220;WPF&#8221;-assembly. Follow the following steps to complete this: Edit the .proj file Add {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} into the first &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-roemer","4":"post-422","6":"format-standard","7":"category-programming"},"acf":[],"views":2095,"_links":{"self":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/422"}],"collection":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=422"}],"version-history":[{"count":0,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}