<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MPF for Projects - Visual Studio 2010</title><link>http://mpfproj10.codeplex.com/project/feeds/rss</link><description>This project contains sample code for creating a new Project System in Visual Studio 2010.   </description><item><title>New Post: VisualStudio Source Code (Text) editor cannot edit</title><link>http://mpfproj10.codeplex.com/discussions/440609</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
I've created standalone shell isolated based on VS 2010 SP1 and using MPF for project factory support.&lt;br /&gt;
&lt;br /&gt;
Now, when i open Code/Text editor i cannot change its content, i can Copy and Paste in another file outside of VS shell but not in the editor.&lt;br /&gt;
&lt;br /&gt;
Any thoughts?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>amerthebest</author><pubDate>Wed, 17 Apr 2013 13:52:57 GMT</pubDate><guid isPermaLink="false">New Post: VisualStudio Source Code (Text) editor cannot edit 20130417015257P</guid></item><item><title>New Post: DebugEngine  InvalidCastException.</title><link>http://mpfproj10.codeplex.com/discussions/433689</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I maintain a VS plugin, with associated debug engine written using the MPF.&lt;br /&gt;
&lt;br /&gt;
I have just implemented a disassembler module for it, but when selecting a disassembler window I get the following Exception:&lt;br /&gt;
&lt;br /&gt;
An unhandled exception is about to terminate the process.  Exception info:&lt;br /&gt;
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.InvalidCastException: Unable to cast object of type 'MyCoLtd.MyPackage.CodeContext' to type 'Microsoft.VisualStudio.Debugger.Interop.IDebugCodeContext2'.&lt;br /&gt;
   at System.StubHelpers.InterfaceMarshaler.ConvertToManaged(IntPtr pUnk, IntPtr itfMT, IntPtr classMT, Int32 flags)&lt;br /&gt;
   at Microsoft.VisualStudio.Debugger.Interop.Internal.IDebuggerInternal.get_CurrentCodeContext()&lt;br /&gt;
   at Microsoft.VisualStudio.Debugger.Utilities.Debugger.DebuggerProperties.get_CurrentCodeContext()&lt;br /&gt;
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.DisassemblyWindow.Control.OnVisibleChanged(Boolean value)&lt;br /&gt;
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.DisassemblyWindow.Control.set_Visible(Boolean value)&lt;br /&gt;
   at Microsoft.VisualStudio.Debugger.DebuggerToolWindows.DisassemblyWindow.ToolWindow.OnShow(Int32 fShow)&lt;br /&gt;
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.NotifyOnShow(Int32 frameShow)&lt;br /&gt;
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.OnContentShowing(View view)&lt;br /&gt;
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.OnViewContentShowing(Object sender, ViewEventArgs args)&lt;br /&gt;
&lt;br /&gt;
The C# code for the class that VS fails to cast is:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;    [ComVisible(true)]
    [Guid(GuidList.guidCodeContextString)]
    public class CodeContext : Microsoft.VisualStudio.Debugger.Interop.IDebugCodeContext2, MemoryContext
    {
        /* implementation */
    }&lt;/code&gt;&lt;/pre&gt;

Given that the CodeContext class is used elsewhere without problem and it's not even reaching the new disassembler code, I'm somewhat stuck as to what to do.&lt;br /&gt;
&lt;br /&gt;
Any suggestions where the problem might be?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Simon.&lt;br /&gt;
&lt;/div&gt;</description><author>SimonGates</author><pubDate>Tue, 19 Feb 2013 16:25:25 GMT</pubDate><guid isPermaLink="false">New Post: DebugEngine  InvalidCastException. 20130219042525P</guid></item><item><title>Reviewed: RTM Release (一月 26, 2013)</title><link>http://mpfproj10.codeplex.com/releases/view/48833#ReviewBy-twtkss</link><description>Rated 5 Stars &amp;#40;out of 5&amp;#41; - create il project template</description><author>twtkss</author><pubDate>Sun, 27 Jan 2013 06:28:34 GMT</pubDate><guid isPermaLink="false">Reviewed: RTM Release (一月 26, 2013) 20130127062834A</guid></item><item><title>Reviewed: RTM Release (dic 19, 2012)</title><link>http://mpfproj10.codeplex.com/releases/view/48833#ReviewBy-invencible</link><description>Rated 4 Stars &amp;#40;out of 5&amp;#41; - ok . . . .. . . . .. . </description><author>invencible</author><pubDate>Wed, 19 Dec 2012 19:33:08 GMT</pubDate><guid isPermaLink="false">Reviewed: RTM Release (dic 19, 2012) 20121219073308P</guid></item><item><title>Created Issue: Folder defined in project templates will not be created physically [12521]</title><link>http://mpfproj10.codeplex.com/workitem/12521</link><description>Folder &amp;#40;and their contents&amp;#41; will not get created, if they are defined in a vstemplate &amp;#40;project&amp;#41;. Instead i had to overwrite the CreateFolderNode method in class ProjectNode.&lt;br /&gt;&lt;br /&gt;But the FolderNotes appear in the Solution Explorer. In fact, they are degraded to some kind of solution folder.&lt;br /&gt;&lt;br /&gt;If an item got dragged or added to the FolderItem, the folder will be created ad hoc.&lt;br /&gt;&amp;#40;VS 2010 SP1&amp;#41;&lt;br /&gt;</description><author>humbrie</author><pubDate>Wed, 24 Oct 2012 11:05:23 GMT</pubDate><guid isPermaLink="false">Created Issue: Folder defined in project templates will not be created physically [12521] 20121024110523A</guid></item><item><title>Source code checked in, #81799</title><link>http://mpfproj10.codeplex.com/SourceControl/changeset/changes/81799</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:57:23 GMT</pubDate><guid isPermaLink="false">Source code checked in, #81799 20121001095723P</guid></item><item><title>Source code checked in, #81798</title><link>http://mpfproj10.codeplex.com/SourceControl/changeset/changes/81798</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:51:05 GMT</pubDate><guid isPermaLink="false">Source code checked in, #81798 20121001095105P</guid></item><item><title>Commented Issue: Project reference doesn't work correctly if referenced project is in a solution folder [10801]</title><link>http://mpfproj10.codeplex.com/workitem/10801</link><description>1. Create a Solution folder&lt;br /&gt;3. Create a C&amp;#35; project inside the just created folder.&lt;br /&gt;4. Create a whatever project using MPF &amp;#40;Visual T&amp;#35; in the attached Image&amp;#41;&lt;br /&gt;5. Make a reference from MPF project to C&amp;#35; project&amp;#58; an exclamation sign appears. Reference is not resolved and Intellisense does not work&amp;#33;&lt;br /&gt;&lt;br /&gt;See attached image.&lt;br /&gt;Comments: ** Comment from web user: ldubois ** &lt;p&gt;&amp;#64;kiquenet, this is a method provided by MPF that compare two paths and returns true iif they are equal.&lt;/p&gt;</description><author>ldubois</author><pubDate>Wed, 29 Aug 2012 00:31:12 GMT</pubDate><guid isPermaLink="false">Commented Issue: Project reference doesn't work correctly if referenced project is in a solution folder [10801] 20120829123112A</guid></item><item><title>Commented Issue: Project reference doesn't work correctly if referenced project is in a solution folder [10801]</title><link>http://mpfproj10.codeplex.com/workitem/10801</link><description>1. Create a Solution folder&lt;br /&gt;3. Create a C&amp;#35; project inside the just created folder.&lt;br /&gt;4. Create a whatever project using MPF &amp;#40;Visual T&amp;#35; in the attached Image&amp;#41;&lt;br /&gt;5. Make a reference from MPF project to C&amp;#35; project&amp;#58; an exclamation sign appears. Reference is not resolved and Intellisense does not work&amp;#33;&lt;br /&gt;&lt;br /&gt;See attached image.&lt;br /&gt;Comments: ** Comment from web user: kiquenet ** &lt;p&gt;&amp;#64;idubois, What is  NativeMethods.IsSamePath &amp;#63;&lt;/p&gt;</description><author>kiquenet</author><pubDate>Tue, 28 Aug 2012 12:13:43 GMT</pubDate><guid isPermaLink="false">Commented Issue: Project reference doesn't work correctly if referenced project is in a solution folder [10801] 20120828121343P</guid></item><item><title>Created Issue: Unhandled COMException in internal static method GetActiveConfigurationName(EnvDTE.Project automationObject) of Utilities [12424]</title><link>http://mpfproj10.codeplex.com/workitem/12424</link><description>When I provide my own project type with the following template, exception is thrown as I close projects of my own type.&lt;br /&gt;Exception is thrown in Line 404 of Utilities.cs.&lt;br /&gt;My project template is like this&amp;#58;&lt;br /&gt;&amp;#60;Project DefaultTargets&amp;#61;&amp;#34;Build&amp;#34; xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;developer&amp;#47;msbuild&amp;#47;2003&amp;#34;&amp;#62;&lt;br /&gt;  &amp;#60;PropertyGroup&amp;#62;&lt;br /&gt;    &amp;#60;Configuration Condition&amp;#61;&amp;#34; &amp;#39;&amp;#36;&amp;#40;Configuration&amp;#41;&amp;#39;&amp;#61;&amp;#61;&amp;#39;&amp;#39; &amp;#34;&amp;#62;Debug&amp;#60;&amp;#47;Configuration&amp;#62;&lt;br /&gt;    &amp;#60;ConfigurationName Condition&amp;#61;&amp;#34; &amp;#39;&amp;#36;&amp;#40;ConfigurationName&amp;#41;&amp;#39; &amp;#61;&amp;#61; &amp;#39;&amp;#39; &amp;#34;&amp;#62;&amp;#36;&amp;#40;Configuration&amp;#41;&amp;#60;&amp;#47;ConfigurationName&amp;#62;&lt;br /&gt;    &amp;#60;OutputPath Condition&amp;#61;&amp;#34; &amp;#39;&amp;#36;&amp;#40;OutputPath&amp;#41;&amp;#39;&amp;#61;&amp;#61;&amp;#39;&amp;#39; &amp;#34;&amp;#62;output&amp;#92;Debug&amp;#60;&amp;#47;OutputPath&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;PropertyGroup&amp;#62;&lt;br /&gt;  &amp;#60;Target Name&amp;#61;&amp;#34;Build&amp;#34;&amp;#62;&lt;br /&gt;    &amp;#60;Message Text&amp;#61;&amp;#34;It is an empty target.&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;  &amp;#60;&amp;#47;Target&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;Project&amp;#62;&lt;br /&gt;&lt;br /&gt;The code where unhandled COMException is thrown.&lt;br /&gt;&lt;br /&gt;internal static string GetActiveConfigurationName&amp;#40;EnvDTE.Project automationObject&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;    if&amp;#40;automationObject &amp;#61;&amp;#61; null&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw new ArgumentNullException&amp;#40;&amp;#34;automationObject&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;    string currentConfigName &amp;#61; string.Empty&amp;#59;&lt;br /&gt;    if&amp;#40;automationObject.ConfigurationManager &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62;&amp;#62;EnvDTE.Configuration activeConfig &amp;#61; automationObject.ConfigurationManager.ActiveConfiguration&amp;#59;&lt;br /&gt;        if&amp;#40;activeConfig &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;           currentConfigName &amp;#61; activeConfig.ConfigurationName&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;    &amp;#125;&lt;br /&gt;    return currentConfigName&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;</description><author>richarddzh</author><pubDate>Sun, 05 Aug 2012 04:39:53 GMT</pubDate><guid isPermaLink="false">Created Issue: Unhandled COMException in internal static method GetActiveConfigurationName(EnvDTE.Project automationObject) of Utilities [12424] 20120805043953A</guid></item><item><title>New Post: Build project created by CustomProject sample throws Microsoft.Build.Exceptions.InvalidProjectFileException - Cannot evaluate the item metadata "%(FullPath)" - ErrorCode=MSB4023</title><link>http://mpfproj10.codeplex.com/discussions/389271</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've trying to create a project based on template from CustomProject sample and I meet an InvalidProjectFileException&amp;nbsp;when trying to Build this project.&lt;/p&gt;
&lt;p&gt;Please help me on this problem. This issue happened on Visual 2010, 2011 Beta and 2012 RC.&lt;/p&gt;
&lt;p&gt;Here are my steps (run on Debug Mode):&lt;/p&gt;
&lt;p&gt;- Open CustomProject on Samples folder.&lt;/p&gt;
&lt;p&gt;- Build and Start Debug&lt;/p&gt;
&lt;p&gt;- On a new Visual Studio (debug extension), try to create a new project with My Custom Project template&lt;/p&gt;
&lt;p&gt;- After project created and load successful on Solution Explorer, try Build Project&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Exception is throwned:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Microsoft.Build.Exceptions.InvalidProjectFileException was unhandled by user code&amp;nbsp; HResult=-2146233088&amp;nbsp; Message=Cannot evaluate the item metadata &amp;quot;%(FullPath)&amp;quot;. The item metadata &amp;quot;%(FullPath)&amp;quot; cannot be applied to the path &amp;quot;obj\Debug|x86\MyApplication.exe&amp;quot;.
 Illegal characters in path. &amp;nbsp;C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets&amp;nbsp; Source=Microsoft.Build&amp;nbsp; BaseMessage=Cannot evaluate the item metadata &amp;quot;%(FullPath)&amp;quot;. The item metadata &amp;quot;%(FullPath)&amp;quot; cannot be applied to the
 path &amp;quot;obj\Debug|x86\MyApplication.exe&amp;quot;. Illegal characters in path.&amp;nbsp; ColumnNumber=39&amp;nbsp; EndColumnNumber=0&amp;nbsp; EndLineNumber=0&amp;nbsp; ErrorCode=MSB4023&amp;nbsp; HasBeenLogged=true&amp;nbsp; HelpKeyword=MSBuild.CannotEvaluateItemMetadata&amp;nbsp; LineNumber=4567&amp;nbsp;
 ProjectFile=C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets&amp;nbsp; StackTrace:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation,
 String resourceName, Object[] args)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Expander`2.ItemExpander.MetadataMatchEvaluator.GetMetadataValueFromMatch(Match match)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator
 evaluator, Regex regex, String input, Int32 count, Int32 startat)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator, Int32 count, Int32 startat)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Text.RegularExpressions.Regex.Replace(String
 input, MatchEvaluator evaluator)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Expander`2.ItemExpander.IntrinsicItemFunctions`1.&amp;lt;ExpandQuotedExpressionFunction&amp;gt;d__3f.MoveNext()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Expander`2.ItemExpander.&amp;lt;Transform&amp;gt;d__0`1.MoveNext()&amp;nbsp;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Expander`2.ItemExpander.&amp;lt;Transform&amp;gt;d__0`1.MoveNext()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Expander`2.ItemExpander.ExpandSingleItemVectorExpressionIntoItems[S,T](Expander`2 expander,
 String expression, IItemProvider`1 items, IItemFactory`2 itemFactory, ExpanderOptions options, Boolean includeNullEntries, Boolean&amp;amp; isTransformExpression, IElementLocation elementLocation)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Expander`2.ExpandSingleItemVectorExpressionIntoItems[T](String
 expression, IItemFactory`2 itemFactory, ExpanderOptions options, Boolean includeNullItems, Boolean&amp;amp; isTransformExpression, IElementLocation elementLocation)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Evaluator`4.CreateItemsFromInclude(String
 rootDirectory, ProjectItemElement itemElement, IItemFactory`2 itemFactory, String unevaluatedIncludeEscaped, Expander`2 expander)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Evaluator`4.EvaluateItemElement(Boolean itemGroupConditionResult, ProjectItemElement
 itemElement)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Evaluator`4.EvaluateItemGroupElement(ProjectItemGroupElement itemGroupElement)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Evaluator`4.Evaluate()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
 Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider
 toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService
 loggingServiceForEvaluation)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Project.CreateProjectInstance(ILoggingService loggingServiceForEvaluation, ProjectInstanceSettings settings)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.Build.Evaluation.Project.CreateProjectInstance()&amp;nbsp;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualStudio.Project.ProjectNode.SetConfiguration(String config) in d:\mpfproj10\Dev10\Src\CSharp\ProjectNode.cs:line 3577&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualStudio.Project.ProjectConfig.GetMsBuildProperty(String
 propertyName, Boolean resetCache) in d:\mpfproj10\Dev10\Src\CSharp\ProjectConfig.cs:line 688&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualStudio.Project.ProjectConfig.GetConfigurationProperty(String propertyName, Boolean resetCache) in d:\mpfproj10\Dev10\Src\CSharp\ProjectConfig.cs:line
 164&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualStudio.Project.ProjectNode.Microsoft.VisualStudio.Shell.Interop.IVsBuildPropertyStorage.GetPropertyValue(String propertyName, String configName, UInt32 storage, String&amp;amp; propertyValue) in d:\mpfproj10\Dev10\Src\CSharp\ProjectNode.cs:line
 5740&amp;nbsp; InnerException:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;/div&gt;</description><author>hieptang</author><pubDate>Fri, 27 Jul 2012 08:13:08 GMT</pubDate><guid isPermaLink="false">New Post: Build project created by CustomProject sample throws Microsoft.Build.Exceptions.InvalidProjectFileException - Cannot evaluate the item metadata "%(FullPath)" - ErrorCode=MSB4023 20120727081308A</guid></item><item><title>New Post: Exceptions debugging CustomProject Sample</title><link>http://mpfproj10.codeplex.com/discussions/273104</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It's unclear from your question whether this is actually presenting a problem to you, or if it's just something you're wondering if it's a problem. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is actually expected behavior. &amp;nbsp;The &lt;a href="http://msdn.microsoft.com/en-us/library/envdte.properties.item.aspx"&gt;MSDN documentation for this method&lt;/a&gt; prescribes that any unsupported property throw an ArgumentException. &amp;nbsp;So while it's not ideal that when the debugger is attached it can raise all these exceptions which look like errors when in fact they are not, it's by design, and you can ignore them.&lt;/p&gt;&lt;/div&gt;</description><author>AArnott</author><pubDate>Tue, 26 Jun 2012 20:41:08 GMT</pubDate><guid isPermaLink="false">New Post: Exceptions debugging CustomProject Sample 20120626084108P</guid></item><item><title>New Post: Exceptions debugging CustomProject Sample</title><link>http://mpfproj10.codeplex.com/discussions/273104</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Any resolution to this? &amp;nbsp;I am running into the same scenario.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</description><author>michaelolson</author><pubDate>Tue, 26 Jun 2012 19:44:12 GMT</pubDate><guid isPermaLink="false">New Post: Exceptions debugging CustomProject Sample 20120626074412P</guid></item><item><title>Commented Issue: ProjectConfig.get_CanonicalName returns display name instead of the canonical name [12178]</title><link>http://mpfproj10.codeplex.com/workitem/12178</link><description>DisplayName is documented as being in the form &amp;#34;&amp;#60;configname&amp;#62;&amp;#124;&amp;#60;platform name&amp;#62;&amp;#34; http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;bb139670&amp;#40;v&amp;#61;VS.80&amp;#41;.aspx&lt;br /&gt;&lt;br /&gt;CanonicalName is just the config name such as &amp;#34;Debug&amp;#34; or &amp;#34;Release&amp;#34; http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;microsoft.visualstudio.shell.interop.ivsprojectcfg.get_canonicalname&amp;#40;v&amp;#61;VS.80&amp;#41;.aspx&lt;br /&gt;&lt;br /&gt;In MPFProj get_CanonicalName just calls get_DisplayName, so a string such as &amp;#34;Debug&amp;#124;AnyCPU&amp;#34; is passed out when it should just be &amp;#34;Debug&amp;#34;.&lt;br /&gt;&lt;br /&gt;The fix is to make get_CanonicalName just to do&amp;#58;&lt;br /&gt;&lt;br /&gt;        public virtual int get_CanonicalName&amp;#40;out string name&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            name &amp;#61; configName&amp;#59;&lt;br /&gt;            return VSConstants.S_OK&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;If you are using MPFProj w&amp;#47; Dev11 and are getting an error about x64 and ARM targets not being supported in the WPF designer you might want this fix.&lt;/p&gt;</description><author>dinov</author><pubDate>Tue, 22 May 2012 22:55:34 GMT</pubDate><guid isPermaLink="false">Commented Issue: ProjectConfig.get_CanonicalName returns display name instead of the canonical name [12178] 20120522105534P</guid></item><item><title>Created Issue: ProjectConfig.get_CanonicalName returns display name instead of the canonical name [12178]</title><link>http://mpfproj10.codeplex.com/workitem/12178</link><description>DisplayName is documented as being in the form &amp;#34;&amp;#60;configname&amp;#62;&amp;#124;&amp;#60;platform name&amp;#62;&amp;#34; http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;bb139670&amp;#40;v&amp;#61;VS.80&amp;#41;.aspx&lt;br /&gt;&lt;br /&gt;CanonicalName is just the config name such as &amp;#34;Debug&amp;#34; or &amp;#34;Release&amp;#34; http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;en-us&amp;#47;library&amp;#47;microsoft.visualstudio.shell.interop.ivsprojectcfg.get_canonicalname&amp;#40;v&amp;#61;VS.80&amp;#41;.aspx&lt;br /&gt;&lt;br /&gt;In MPFProj get_CanonicalName just calls get_DisplayName, so a string such as &amp;#34;Debug&amp;#124;AnyCPU&amp;#34; is passed out when it should just be &amp;#34;Debug&amp;#34;.&lt;br /&gt;&lt;br /&gt;The fix is to make get_CanonicalName just to do&amp;#58;&lt;br /&gt;&lt;br /&gt;        public virtual int get_CanonicalName&amp;#40;out string name&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            name &amp;#61; configName&amp;#59;&lt;br /&gt;            return VSConstants.S_OK&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;</description><author>dinov</author><pubDate>Tue, 22 May 2012 21:28:58 GMT</pubDate><guid isPermaLink="false">Created Issue: ProjectConfig.get_CanonicalName returns display name instead of the canonical name [12178] 20120522092858P</guid></item><item><title>New Post: NDepend crashes the sample projects</title><link>http://mpfproj10.codeplex.com/discussions/297466</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm trying to create a custom project type (started from the CustomProject sample) and it appears that when NDepend is active right clicking a folder crashes Visual Studio. The exception is StackOverFlowException and what happens is that something is calling
 the Collection property of&amp;nbsp;OAFolderItem and then Caption of the folder endlessly.&lt;/p&gt;
&lt;p&gt;Any idea where to start from in order to prevent this?&lt;/p&gt;
&lt;/div&gt;</description><author>piliev</author><pubDate>Tue, 07 Feb 2012 17:32:37 GMT</pubDate><guid isPermaLink="false">New Post: NDepend crashes the sample projects 20120207053237P</guid></item><item><title>Commented Issue: Adding a folder when the folder already exists differs from C# [11519]</title><link>http://mpfproj10.codeplex.com/workitem/11519</link><description>Select a folder, Project-&amp;#62;New Folder, type in a folder name that exists on disk but not in the project system.&lt;br /&gt;&lt;br /&gt;In MPFProj this reports an error that the folder already exists.&lt;br /&gt;&lt;br /&gt;In C&amp;#35; this adds the existing folder.&lt;br /&gt;&lt;br /&gt;The difference here is that MPFProj always immediately adds the folder including attempting to create the directory.  The C&amp;#35; project system waits until the call to SetEditLabel to actually do the work of creating the directory and doesn&amp;#39;t care if it already exists.&lt;br /&gt;Comments: ** Comment from web user: KlausGuetter ** &lt;p&gt;The proposed fix has a problem with subordinate folders&amp;#58; the VirtualNodeName is set wrong in this case which leads to the problem that files added to the new subordinate folder A&amp;#92;B&amp;#92;C end up in projectdir&amp;#92;C.&lt;/p&gt;&lt;p&gt;To fix, replace the line &lt;br /&gt;this.VirtualFolderName &amp;#61; filename&amp;#59;&lt;br /&gt;by&lt;br /&gt;this.VirtualFolderName &amp;#61; Path.Combine&amp;#40;Parent.VirtualFolderName, filename&amp;#41;&amp;#59;&lt;br /&gt;in FinishFolderAdd&lt;/p&gt;</description><author>KlausGuetter</author><pubDate>Fri, 13 Jan 2012 07:57:48 GMT</pubDate><guid isPermaLink="false">Commented Issue: Adding a folder when the folder already exists differs from C# [11519] 20120113075748A</guid></item><item><title>Created Issue: Copy and pasting a folder with multiple items throws an exception (WalkSourceProjectAndAdd adds item to incorrect parent) [11618]</title><link>http://mpfproj10.codeplex.com/workitem/11618</link><description>ProjectNode.CopyPaste contains the following code to recursively add all of the siblings when copying a folder within a project&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47; Then look at siblings&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;currentItemID &amp;#61; itemId&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;while&amp;#40;currentItemID &amp;#33;&amp;#61; VSConstants.VSITEMID_NIL&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;variant &amp;#61; null&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;ErrorHandler.ThrowOnFailure&amp;#40;sourceHierarchy.GetProperty&amp;#40;itemId, &amp;#40;int&amp;#41;__VSHPROPID.VSHPROPID_NextVisibleSibling, out variant&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;currentItemID &amp;#61; &amp;#40;uint&amp;#41;&amp;#40;int&amp;#41;variant&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;WalkSourceProjectAndAdd&amp;#40;sourceHierarchy, currentItemID, targetNode, true&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But to properly walk the list of siblings it needs to pass currentItemId to sourceHierarchy.GetProperty instead of passing itemId.  By passing itemId it is repeatedly adding the same node multiple times.  Ultimately this results in AddItemWithSpecific returning ADDRESULT_Cancel because of this check&amp;#58;&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47; If the file to be added is an existing file part of the hierarchy then continue.&lt;br /&gt;                    if &amp;#40;NativeMethods.IsSamePath&amp;#40;file, newFileName&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        result&amp;#91;0&amp;#93; &amp;#61; VSADDRESULT.ADDRESULT_Cancel&amp;#59;&lt;br /&gt;                        continue&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;&lt;br /&gt;And then AddNodeIfTargetExistInStorage throws an Exception with no message which propagates out to the user.  &lt;br /&gt;&lt;br /&gt;Changing to itemId to currentItemId causes the copy and paste to succeed.&lt;br /&gt;</description><author>dinov</author><pubDate>Thu, 12 Jan 2012 21:05:56 GMT</pubDate><guid isPermaLink="false">Created Issue: Copy and pasting a folder with multiple items throws an exception (WalkSourceProjectAndAdd adds item to incorrect parent) [11618] 20120112090556P</guid></item><item><title>New Post: IProjectionBuffer usage</title><link>http://mpfproj10.codeplex.com/discussions/283911</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;we would like to make use of projection buffer, to mix several built-in languages within our file type.&lt;/p&gt;
&lt;p&gt;MSDN documentation is very pure for any tutorials, and we can't figure out how to use it. We have an integration built on MPF10.&lt;/p&gt;
&lt;p&gt;Can we get any hint or code sample? would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Jakub Misek&lt;/p&gt;
&lt;/div&gt;</description><author>jakub</author><pubDate>Thu, 22 Dec 2011 15:50:23 GMT</pubDate><guid isPermaLink="false">New Post: IProjectionBuffer usage 20111222035023P</guid></item><item><title>Commented Issue: Adding a folder when the folder already exists differs from C# [11519]</title><link>http://mpfproj10.codeplex.com/workitem/11519</link><description>Select a folder, Project-&amp;#62;New Folder, type in a folder name that exists on disk but not in the project system.&lt;br /&gt;&lt;br /&gt;In MPFProj this reports an error that the folder already exists.&lt;br /&gt;&lt;br /&gt;In C&amp;#35; this adds the existing folder.&lt;br /&gt;&lt;br /&gt;The difference here is that MPFProj always immediately adds the folder including attempting to create the directory.  The C&amp;#35; project system waits until the call to SetEditLabel to actually do the work of creating the directory and doesn&amp;#39;t care if it already exists.&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;This change set includes my fix for this&amp;#58; http&amp;#58;&amp;#47;&amp;#47;pytools.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;changes&amp;#47;a24a50158934&lt;br /&gt;&lt;/p&gt;</description><author>dinov</author><pubDate>Thu, 08 Dec 2011 00:14:19 GMT</pubDate><guid isPermaLink="false">Commented Issue: Adding a folder when the folder already exists differs from C# [11519] 20111208121419A</guid></item></channel></rss>