<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>sourceanalysis Work Item Rss Feed</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/List.aspx</link><description>sourceanalysis Work Item Rss Description</description><item><title>COMMENTED ISSUE: Visual Studio 2010 Beta 1 support</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=213</link><description>Is possible to use StyleCop using VS2010 B1&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Matteo.&lt;br /&gt;Comments: Work is currently underway on a version of StyleCop that will integrate into the Visual Studio 2010 shell.</description><author>jasonall</author><pubDate>Thu, 19 Nov 2009 18:23:09 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Visual Studio 2010 Beta 1 support 20091119P</guid></item><item><title>COMMENTED ISSUE: Visual Studio 2010 Beta 1 support</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=213</link><description>Is possible to use StyleCop using VS2010 B1&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Matteo.&lt;br /&gt;Comments: What about working with VS2010 Beta 2&amp;#63;</description><author>TATWORTH</author><pubDate>Thu, 19 Nov 2009 15:34:38 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Visual Studio 2010 Beta 1 support 20091119P</guid></item><item><title>COMMENTED ISSUE: SA1636:  Copyright character not matched in GlobalSuppressions.cs file.</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=260</link><description>I have defined a copyright string in Settings.StyleCop using the copyright symbol &amp;#34;&amp;#169;&amp;#34;.  In every other C&amp;#35; file, the text is matched OK and I don&amp;#39;t get a warning.  In the GlobalSuppressions.cs file, StyleCop says the exact string is not found even though I cut and paste the text from files where there is no problem.&lt;br /&gt;&lt;br /&gt;Then I looked at the Settings.StyleCop file itself.  The copyright symbol is displayed as &amp;#34;&amp;#194;&amp;#169;&amp;#34;.  When I put these 2 characters in place of the normal copyright symbol in the GlobalSuppressions.cs file, the warning does not appear.  And it is only for the GlobalSuppressions.cs file that I have to use &amp;#34;&amp;#194;&amp;#169;&amp;#34;.  All the other C&amp;#35; files pass with just the normal copyright symbol.&lt;br /&gt;Comments: Yes, I saw that--maybe I should have added on to that one.  Anyway, I thought I&amp;#39;d provide a little more information about the problem and the workaround I discovered.  Thanks.</description><author>rbratton</author><pubDate>Thu, 12 Nov 2009 16:19:35 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: SA1636:  Copyright character not matched in GlobalSuppressions.cs file. 20091112P</guid></item><item><title>COMMENTED ISSUE: SA1636:  Copyright character not matched in GlobalSuppressions.cs file.</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=260</link><description>I have defined a copyright string in Settings.StyleCop using the copyright symbol &amp;#34;&amp;#169;&amp;#34;.  In every other C&amp;#35; file, the text is matched OK and I don&amp;#39;t get a warning.  In the GlobalSuppressions.cs file, StyleCop says the exact string is not found even though I cut and paste the text from files where there is no problem.&lt;br /&gt;&lt;br /&gt;Then I looked at the Settings.StyleCop file itself.  The copyright symbol is displayed as &amp;#34;&amp;#194;&amp;#169;&amp;#34;.  When I put these 2 characters in place of the normal copyright symbol in the GlobalSuppressions.cs file, the warning does not appear.  And it is only for the GlobalSuppressions.cs file that I have to use &amp;#34;&amp;#194;&amp;#169;&amp;#34;.  All the other C&amp;#35; files pass with just the normal copyright symbol.&lt;br /&gt;Comments: Problem about the copyright char was asked before in this post &amp;#40;http&amp;#58;&amp;#47;&amp;#47;code.msdn.microsoft.com&amp;#47;sourceanalysis&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;394&amp;#41; but not responded...</description><author>olivier34</author><pubDate>Thu, 12 Nov 2009 12:47:36 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: SA1636:  Copyright character not matched in GlobalSuppressions.cs file. 20091112P</guid></item><item><title>CREATED ISSUE: SA1636:  Copyright character not matched in GlobalSuppressions.cs file.</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=260</link><description>I have defined a copyright string in Settings.StyleCop using the copyright symbol &amp;#34;&amp;#169;&amp;#34;.  In every other C&amp;#35; file, the text is matched OK and I don&amp;#39;t get a warning.  In the GlobalSuppressions.cs file, StyleCop says the exact string is not found even though I cut and paste the text from files where there is no problem.&lt;br /&gt;&lt;br /&gt;Then I looked at the Settings.StyleCop file itself.  The copyright symbol is displayed as &amp;#34;&amp;#194;&amp;#169;&amp;#34;.  When I put these 2 characters in place of the normal copyright symbol in the GlobalSuppressions.cs file, the warning does not appear.  And it is only for the GlobalSuppressions.cs file that I have to use &amp;#34;&amp;#194;&amp;#169;&amp;#34;.  All the other C&amp;#35; files pass with just the normal copyright symbol.&lt;br /&gt;</description><author>rbratton</author><pubDate>Wed, 11 Nov 2009 23:52:01 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: SA1636:  Copyright character not matched in GlobalSuppressions.cs file. 20091111P</guid></item><item><title>CREATED ISSUE: Rule suggestion: File contains unused usings</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=259</link><description>If implemented, the rule should allow exclusion of certain namespace &amp;#40;e.g.&amp;#58; System&amp;#41; via configuration.&lt;br /&gt;</description><author>ncalinoiu</author><pubDate>Mon, 09 Nov 2009 16:07:37 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Rule suggestion: File contains unused usings 20091109P</guid></item><item><title>COMMENTED ISSUE: SA1600: explicit interface implementation do not need documentation</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=239</link><description>For explicit implementation, the comments will not be shown anyway.&lt;br /&gt;&lt;br /&gt;You won&amp;#39;t see it in the class, and when cast to specified interface, the interface&amp;#39;s comment will be shown.&lt;br /&gt;Comments: I can see the logic behind this rule&amp;#59; as an interface could be implemented be several classes, each of which does something slightly different with each method - however in cases where the implementation logic is exactly as described by your interface documentation, you just end up having to mainting everything in two places.  It would be very useful to perhaps have a sub-option of SA1600 to allow it to ignore explicit interface implementations.</description><author>barriemcguire</author><pubDate>Mon, 09 Nov 2009 15:34:39 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: SA1600: explicit interface implementation do not need documentation 20091109P</guid></item><item><title>COMMENTED ISSUE: SA1636 firing inappropriately</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=258</link><description>We are using Resharper 4.5 and StyleCop 4.3.&lt;br /&gt;&lt;br /&gt;We have a project with many .CS files in it.  All files were processed using Clean Code from Resharper.  All files were modified to include an appropriate header as defined by StyleCop settings.  Four of the many files consistently get an SA1636 on them.  We cannot figure out why, and what the difference is between a file that receives no warning, and a file that does. &lt;br /&gt;Comments: This appears to be caused by inclusion of the &amp;#39;&amp;#169;&amp;#39; symbol.  If I replace it with &amp;#39;&amp;#40;c&amp;#41;&amp;#39; everything is fine.</description><author>dnorthut</author><pubDate>Fri, 06 Nov 2009 18:04:06 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: SA1636 firing inappropriately 20091106P</guid></item><item><title>CREATED ISSUE: SA1636 firing inappropriately</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=258</link><description>We are using Resharper 4.5 and StyleCop 4.3.&lt;br /&gt;&lt;br /&gt;We have a project with many .CS files in it.  All files were processed using Clean Code from Resharper.  All files were modified to include an appropriate header as defined by StyleCop settings.  Four of the many files consistently get an SA1636 on them.  We cannot figure out why, and what the difference is between a file that receives no warning, and a file that does. &lt;br /&gt;</description><author>dnorthut</author><pubDate>Fri, 06 Nov 2009 17:45:39 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: SA1636 firing inappropriately 20091106P</guid></item><item><title>COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=71</link><description>After installing StyleCop 4.3, Visual Studio 2005 will consume 99&amp;#37; CPU &amp;#40;according to the Task Manager&amp;#41; when opening a large &amp;#40;&amp;#126;41 projects&amp;#41; solution containing mostly unmanaged C&amp;#47;C&amp;#43;&amp;#43; code. The CPU usage will occasionally drop to as low as 80&amp;#37;, but even after waiting several minutes while doing nothing, it did not drop down to an acceptable level.&lt;br /&gt;This behaviour does not occur when opening a solution that consists of one C&amp;#35; project.&lt;br /&gt;The CPU usage is so high it is almost impossible to select text in a source file, select menu items etc.&lt;br /&gt;Uninstalling StyleCop resolves the issue with no other changes required.&lt;br /&gt;Visual Studio is running in a standard user account &amp;#40;i.e. not an administrator account&amp;#41;.&lt;br /&gt;This issue is quite reproducible - I have installed and uninstalled StyleCop 4.3 several times to test this.&lt;br /&gt;Comments: I have come up with a better workaround for this problem.&amp;#10;&amp;#10;Enable MSBuild integration, as described here http&amp;#58;&amp;#47;&amp;#47;blogs.msdn.com&amp;#47;sourceanalysis&amp;#47;pages&amp;#47;source-analysis-msbuild-integration.aspx, then disable the StyleCop VS package by setting the registry key&amp;#58;&amp;#10;&amp;#10;&amp;#91;HKCU&amp;#92;Software&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;9.0&amp;#92;Packages&amp;#92;&amp;#123;629EB7CC-69C2-43AC-9BC9-482B0F810C4E&amp;#125;&amp;#93;&amp;#64;SkipLoading &amp;#61; 0x1&amp;#10;&amp;#10;This will prevent you running StyleCop on demand, but it will still run as part of the build. The menu entries will remain but could probably be removed with a bit more registry hacking. If you want to edit the settings, you need to locate the StyleCop.Settings file in Explorer and open it, or you can add it to your project&amp;#47;solution and choose Open With&amp;#47;StyleCopSettingsEditor.&amp;#10;&amp;#10;If you have StyleCop For Resharper installed, you&amp;#39;ll even get squiggly lines on most errors even with the package disabled</description><author>phildevaney</author><pubDate>Fri, 06 Nov 2009 08:59:35 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3 20091106A</guid></item><item><title>COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=71</link><description>After installing StyleCop 4.3, Visual Studio 2005 will consume 99&amp;#37; CPU &amp;#40;according to the Task Manager&amp;#41; when opening a large &amp;#40;&amp;#126;41 projects&amp;#41; solution containing mostly unmanaged C&amp;#47;C&amp;#43;&amp;#43; code. The CPU usage will occasionally drop to as low as 80&amp;#37;, but even after waiting several minutes while doing nothing, it did not drop down to an acceptable level.&lt;br /&gt;This behaviour does not occur when opening a solution that consists of one C&amp;#35; project.&lt;br /&gt;The CPU usage is so high it is almost impossible to select text in a source file, select menu items etc.&lt;br /&gt;Uninstalling StyleCop resolves the issue with no other changes required.&lt;br /&gt;Visual Studio is running in a standard user account &amp;#40;i.e. not an administrator account&amp;#41;.&lt;br /&gt;This issue is quite reproducible - I have installed and uninstalled StyleCop 4.3 several times to test this.&lt;br /&gt;Comments: If this problem is still being looked into, here is a call stack on the main thread of devenv.exe. Hopefully, this will make more sense to you than it does to me&amp;#58;&amp;#13;&amp;#10;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.GetProjectItemPath&amp;#40;EnvDTE.ProjectItem item &amp;#61; &amp;#123;System.__ComObject&amp;#125;&amp;#41; &amp;#43; 0x63 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.EnumerateProjectItem&amp;#40;EnvDTE.ProjectItem item &amp;#61; &amp;#123;System.__ComObject&amp;#125;, string name &amp;#61; &amp;#34;nameofaprojectinalargesolution&amp;#34;, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectInvoker projectCallback &amp;#61; &amp;#123;Method &amp;#61; Cannot evaluate expression because a native frame is on top of the call stack.&amp;#125;, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectItemInvoker projectItemCallback &amp;#61; &amp;#123;Method &amp;#61; Cannot evaluate expression because a native frame is on top of the call stack.&amp;#125;, object projectContext, object fileContext&amp;#41; &amp;#43; 0x100 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.EnumerateProjectItems&amp;#40;EnvDTE.ProjectItems items, string name &amp;#61; &amp;#34;nameofaprojectinalargesolution&amp;#34;, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectInvoker projectCallback &amp;#61; &amp;#123;Method &amp;#61; Cannot evaluate expression because a native frame is on top of the call stack.&amp;#125;, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectItemInvoker projectItemCallback &amp;#61; &amp;#123;Method &amp;#61; Cannot evaluate expression because a native frame is on top of the call stack.&amp;#125;, object projectContext &amp;#61; &amp;#123;Microsoft.StyleCop.VisualStudio.AnalysisHelper&amp;#125;, object fileContext &amp;#61; null&amp;#41; &amp;#43; 0x63 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.EnumerateProjectItem&amp;#40;EnvDTE.ProjectItem item, string name, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectInvoker projectCallback, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectItemInvoker projectItemCallback, object projectContext, object fileContext&amp;#41; &amp;#43; 0xcf bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.EnumerateProjectItems&amp;#40;EnvDTE.ProjectItems items, string name &amp;#61; &amp;#34;nameofaprojectinalargesolution&amp;#34;, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectInvoker projectCallback &amp;#61; &amp;#123;Method &amp;#61; Cannot evaluate expression because a native frame is on top of the call stack.&amp;#125;, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectItemInvoker projectItemCallback &amp;#61; &amp;#123;Method &amp;#61; Cannot evaluate expression because a native frame is on top of the call stack.&amp;#125;, object projectContext &amp;#61; &amp;#123;Microsoft.StyleCop.VisualStudio.AnalysisHelper&amp;#125;, object fileContext &amp;#61; null&amp;#41; &amp;#43; 0x63 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.EnumerateProject&amp;#40;EnvDTE.Project project, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectInvoker projectCallback, Microsoft.StyleCop.VisualStudio.ProjectUtilities.ProjectItemInvoker projectItemCallback, object projectContext, object fileContext&amp;#41; &amp;#43; 0x149 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.ProjectUtilities.SupportsStyleCop&amp;#40;Microsoft.StyleCop.VisualStudio.AnalysisHelper helper &amp;#61; &amp;#123;Microsoft.StyleCop.VisualStudio.AnalysisHelper&amp;#125;, Microsoft.StyleCop.VisualStudio.AnalysisType type&amp;#41; &amp;#43; 0x10f bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.StyleCop.VSPackage.dll&amp;#33;Microsoft.StyleCop.VisualStudio.PackageCommandSet.StatusAnalyzeSolution&amp;#40;object sender &amp;#61; &amp;#123;Microsoft.VisualStudio.Shell.OleMenuCommand&amp;#125;, System.EventArgs eventArgs&amp;#41; &amp;#43; 0x15 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.VisualStudio.Shell.dll&amp;#33;Microsoft.VisualStudio.Shell.OleMenuCommand.OleStatus.get&amp;#40;&amp;#41; &amp;#43; 0x29 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.VisualStudio.Shell.dll&amp;#33;Microsoft.VisualStudio.Shell.OleMenuCommandService.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus&amp;#40;ref System.Guid guidGroup &amp;#61; &amp;#123;System.Guid&amp;#125;, uint nCmdId, Microsoft.VisualStudio.OLE.Interop.OLECMD&amp;#91;&amp;#93; oleCmd &amp;#61; &amp;#123;Microsoft.VisualStudio.OLE.Interop.OLECMD&amp;#91;1&amp;#93;&amp;#125;, System.IntPtr oleText &amp;#61; 45349544&amp;#41; &amp;#43; 0x166 bytes&amp;#9;&amp;#13;&amp;#10;Microsoft.VisualStudio.Shell.dll&amp;#33;Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus&amp;#40;ref System.Guid guidGroup, uint nCmdId, Microsoft.VisualStudio.OLE.Interop.OLECMD&amp;#91;&amp;#93; oleCmd, System.IntPtr oleText&amp;#41; &amp;#43; 0x47 bytes&amp;#9;&amp;#13;&amp;#10;&amp;#13;&amp;#10;I&amp;#39;d really like to be able to use StyleCop again. Unfortunately, my company&amp;#39;s main product is a large game composed of C&amp;#43;&amp;#43; projects so having nicely formatted source code files for the little tools I write isn&amp;#39;t worth the suffering.</description><author>parky37</author><pubDate>Thu, 05 Nov 2009 07:24:16 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3 20091105A</guid></item><item><title>COMMENTED ISSUE: Syntax error warning calling methods on integer literals</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=249</link><description>Hi,&lt;br /&gt;&lt;br /&gt;StyleCop is giving me the error&amp;#58; &amp;#34;SA0102&amp;#58; A syntax error has been discovered in file...&amp;#34; for lines of code  where i use an extension method on an integer literal or a string literal such as&amp;#58;&lt;br /&gt;&lt;br /&gt;100.Times&amp;#40; i &amp;#61;&amp;#62; doSomething&amp;#40;i&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#47; or&lt;br /&gt;&amp;#34;hello&amp;#34;.Length&lt;br /&gt;Comments: I also have this issue for extension methods on integer literals&amp;#58;&amp;#10;&amp;#10;10.PercentOf&amp;#40;20&amp;#41;&amp;#59; &amp;#47;&amp;#47; which would return 2</description><author>bhazzard</author><pubDate>Wed, 04 Nov 2009 19:58:09 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Syntax error warning calling methods on integer literals 20091104P</guid></item><item><title>COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=71</link><description>After installing StyleCop 4.3, Visual Studio 2005 will consume 99&amp;#37; CPU &amp;#40;according to the Task Manager&amp;#41; when opening a large &amp;#40;&amp;#126;41 projects&amp;#41; solution containing mostly unmanaged C&amp;#47;C&amp;#43;&amp;#43; code. The CPU usage will occasionally drop to as low as 80&amp;#37;, but even after waiting several minutes while doing nothing, it did not drop down to an acceptable level.&lt;br /&gt;This behaviour does not occur when opening a solution that consists of one C&amp;#35; project.&lt;br /&gt;The CPU usage is so high it is almost impossible to select text in a source file, select menu items etc.&lt;br /&gt;Uninstalling StyleCop resolves the issue with no other changes required.&lt;br /&gt;Visual Studio is running in a standard user account &amp;#40;i.e. not an administrator account&amp;#41;.&lt;br /&gt;This issue is quite reproducible - I have installed and uninstalled StyleCop 4.3 several times to test this.&lt;br /&gt;Comments: This definitely does happen in 2008, and I provided the team with a solution that demonstrates the problem. The problem does seem to have improved somewhat with the latest build, but it is still noticeably slower for unmanaged solutions than without StyleCop installed. However, I have come up with a workaround, which is to run VS from a batch file that first disables the StyleCop package, e.g.&amp;#58;&amp;#10;&amp;#10;&amp;#64;echo off&amp;#10;&amp;#10;reg add HKCU&amp;#92;Software&amp;#92;Microsoft&amp;#92;VisualStudio&amp;#92;9.0&amp;#92;Packages&amp;#92;&amp;#123;629EB7CC-69C2-43AC-9BC9-482B0F810C4E&amp;#125; &amp;#47;v SkipLoading &amp;#47;t REG_DWORD &amp;#47;d 1 &amp;#47;f&amp;#10;cd &amp;#47;d &amp;#34;&amp;#37;ProgramFiles&amp;#40;x86&amp;#41;&amp;#37;&amp;#92;Microsoft Visual Studio 9.0&amp;#92;Common7&amp;#92;ide&amp;#92;&amp;#34;&amp;#10;start devenv.exe&amp;#10;exit&amp;#10;&amp;#10;Plus a similar batch file to enable the package again &amp;#40;&amp;#47;d 0&amp;#41;. Then I start VS with the appropriate batch file depending on whether I want to open a managed or unmanaged solution.</description><author>phildevaney</author><pubDate>Wed, 04 Nov 2009 08:45:17 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3 20091104A</guid></item><item><title>CREATED ISSUE: Syntax error on unsafe code</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=257</link><description>We have a block of unsafe code, and StyleCop is issuing a syntax error when attempting to parse that file.&lt;br /&gt;&lt;br /&gt;namespace TestWPF&lt;br /&gt;&amp;#123;&lt;br /&gt;    class Test&lt;br /&gt;    &amp;#123;&lt;br /&gt;        void testError&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            unsafe&lt;br /&gt;            &amp;#123;&lt;br /&gt;                int&amp;#42;&amp;#91;&amp;#93; ptrArray &amp;#61; new int&amp;#42;&amp;#91;10&amp;#93;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;SA0102&amp;#58; A syntax error has been discovered in file Test.cs on line 9.&lt;br /&gt;&lt;br /&gt;I have attempted to do the things listed here &amp;#40;http&amp;#58;&amp;#47;&amp;#47;sergeyshishkin.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;9F19E53BA9C1D63F&amp;#33;253.entry&amp;#41; to get StyleCop to ignore that file or function, but none of them worked.  I still get the syntax error.&lt;br /&gt;&lt;br /&gt;</description><author>lynnnoton</author><pubDate>Fri, 30 Oct 2009 03:20:17 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Syntax error on unsafe code 20091030A</guid></item><item><title>COMMENTED ISSUE: excluded Hungarian prefixes not obeyed in console MSbuild build</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=136</link><description>Have configured csproj files to include the StyleCop targets by adding an import element to the project xml.&lt;br /&gt;&lt;br /&gt;However, if the solution is compiled in the console using msbuild.exe, warnings are being raised in the console against valiable names like isValid, toCopy etc, where this does not occur in the IDE. &lt;br /&gt;&lt;br /&gt;This is using StyleCop 4.3&lt;br /&gt;Comments: I am seeing the same issue. When I click on the Hungarian tab in the settings editor, I see &amp;#34;is&amp;#34; listed as one of the 11 excluded prefixes. But when I build my code I still get a SA1305 warnings for variable names. My configuration file is in D&amp;#58;&amp;#92;a&amp;#92;b&amp;#92;, the solution is in D&amp;#58;&amp;#92;a&amp;#92;b&amp;#92;c&amp;#92;d&amp;#92;, the project in D&amp;#58;&amp;#92;a&amp;#92;b&amp;#92;c&amp;#92;d&amp;#92;e&amp;#92; and the offending source file is in D&amp;#58;&amp;#92;a&amp;#92;b&amp;#92;c&amp;#92;d&amp;#92;e&amp;#92;f&amp;#92;. All other settings options are being honored.&amp;#10;&amp;#10;I am using Stylecop 4.3.2.1. I have also ensured that there are no additional settings files in the path.&amp;#10;&amp;#10;I have discovered a workaround which indicates that Stylecop is not using the defaults properly, but will respect Hungarian prefix settings if explicitly added to the settings file.&amp;#10;&amp;#10;WORKAROUND&amp;#58;&amp;#10;By adding the following to my Stylecop.Settings file, the Hungarian prefix settings are honored.&amp;#10;    &amp;#60;Analyzer AnalyzerId&amp;#61;&amp;#34;Microsoft.StyleCop.CSharp.NamingRules&amp;#34;&amp;#62;&amp;#10;      &amp;#60;AnalyzerSettings&amp;#62;&amp;#10;        &amp;#60;CollectionProperty Name&amp;#61;&amp;#34;Hungarian&amp;#34;&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;as&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;do&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;id&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;if&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;in&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;is&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;my&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;no&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;on&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;to&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;          &amp;#60;Value&amp;#62;ui&amp;#60;&amp;#47;Value&amp;#62;&amp;#10;        &amp;#60;&amp;#47;CollectionProperty&amp;#62;&amp;#10;      &amp;#60;&amp;#47;AnalyzerSettings&amp;#62;&amp;#10;    &amp;#60;&amp;#47;Analyzer&amp;#62;</description><author>nathanfunk</author><pubDate>Thu, 29 Oct 2009 17:37:33 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: excluded Hungarian prefixes not obeyed in console MSbuild build 20091029P</guid></item><item><title>CREATED ISSUE: Unnamed syntax error</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=256</link><description>When I have an abstract class like this&amp;#58; public abstract DataSet ListMenuCategories&amp;#40;string id&amp;#41;&lt;br /&gt;&lt;br /&gt;and I try to implement it like this&amp;#58;&lt;br /&gt;   public abstract DataSet ListMenuCategories&amp;#40;string id&amp;#41;&lt;br /&gt;instead of&lt;br /&gt;   public override DataSet ListMenuCategories&amp;#40;string id&amp;#41;&lt;br /&gt;&lt;br /&gt;Stylecop doesn&amp;#39;t name the error. Simply states that there is an error which is still fine, but I thought maybe you&amp;#39;d like to improve.&lt;br /&gt;&lt;br /&gt;Warning&amp;#9;1&amp;#9;SA0102&amp;#58; A syntax error has been discovered in file F&amp;#58;.......cs on line 117.&amp;#9;F&amp;#58;...........cs&amp;#9;117&amp;#9;1&amp;#9;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you, this is an EXCELLENT tool&amp;#33;&lt;br /&gt;</description><author>fabiomilheiro</author><pubDate>Mon, 26 Oct 2009 23:09:50 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Unnamed syntax error 20091026P</guid></item><item><title>CREATED ISSUE: doesn't handle pointers (or is there a way to enable /unsafe+?)</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=255</link><description> See original thread for more details&amp;#58; https&amp;#58;&amp;#47;&amp;#47;code.msdn.microsoft.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ProjectName&amp;#61;sourceanalysis&amp;#38;ThreadId&amp;#61;397&amp;#38;wa&amp;#61;wsignin1.0&lt;br /&gt; &lt;br /&gt;sgraham wrote&amp;#58;&lt;br /&gt; &lt;br /&gt;Will you please let us know whether this statement is located within an unsafe block&amp;#63;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Ah, I see. The whole assembly is unsafe, I guess &amp;#40;as in csc.exe is invoked with &amp;#47;unsafe&amp;#43;&amp;#41;, but that typeof isn&amp;#39;t inside of an unsafe block. I don&amp;#39;t think that&amp;#39;s an error &amp;#40;just taking the type of a pointer, rather than actually using a pointer&amp;#41;, but I&amp;#39;m not especially sure. Anyway, csc doesn&amp;#39;t report a syntax error&amp;#47;warning, but then StyleCop says there&amp;#39;s a syntax error, which is why I mentioned it.&lt;br /&gt; &lt;br /&gt;scott&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;This is probably a limitation in the tool. Your whole assembly is unsafe, but currently Source Analysis only operates on C&amp;#35; files and doesn&amp;#39;t have knowledge about special settings in the project or attributes defined in other source files.&lt;br /&gt;&lt;br /&gt;</description><author>jasonall</author><pubDate>Thu, 22 Oct 2009 21:06:57 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: doesn't handle pointers (or is there a way to enable /unsafe+?) 20091022P</guid></item><item><title>COMMENTED ISSUE: SA1603 checks XML within comments that are in Quotations</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=207</link><description>SA1603 should ignore any XML that is in comments in quotations.&lt;br /&gt;&lt;br /&gt;Ie, it is complaining about the &amp;#60;Ect&amp;#62; below even though it is in quotes from the cref&amp;#58;  &lt;br /&gt;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#47; &amp;#60;summary&amp;#62;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#47; Implements &amp;#60;see cref&amp;#61;&amp;#34;ICts.Receive&amp;#40;ICollection&amp;#60;Ect&amp;#62; eTr&amp;#41;&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#47; &amp;#60;&amp;#47;summary&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: This also appears when StyleCop encounters XML in my &amp;#42;code&amp;#42;. It thinks the XML marker symbols &amp;#40;&amp;#34;&amp;#60;&amp;#34; and &amp;#34;&amp;#62;&amp;#34;&amp;#41; are comment headers, and tells me they are invalid. &amp;#13;&amp;#10;&amp;#13;&amp;#10;For example, the following lines generate SA 1603&amp;#58;&amp;#13;&amp;#10;&amp;#13;&amp;#10;        public bool IsLesssThanEqualTo &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#60;&amp;#61;&amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;        public bool IsLessThan &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#60; &amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;        public bool IsNotEqual &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#60;&amp;#62; &amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;        public bool IsConcatenate &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#38;&amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;        public bool IsLesssThanEqualTo &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#60;&amp;#61;&amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;        public bool IsLessThan &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#60; &amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;        public bool IsNotEqual &amp;#123; get &amp;#123; return Is&amp;#40;&amp;#34;&amp;#60;&amp;#62;&amp;#34;&amp;#41;&amp;#59; &amp;#125; &amp;#125;&amp;#13;&amp;#10;&amp;#13;&amp;#10;These are clearly method calls, and not documentation comments. In the short term, I&amp;#39;m disabling the rule check, but this needs to be fixed.</description><author>MikeHofer</author><pubDate>Thu, 22 Oct 2009 15:42:13 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: SA1603 checks XML within comments that are in Quotations 20091022P</guid></item><item><title>COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3</title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=71</link><description>After installing StyleCop 4.3, Visual Studio 2005 will consume 99&amp;#37; CPU &amp;#40;according to the Task Manager&amp;#41; when opening a large &amp;#40;&amp;#126;41 projects&amp;#41; solution containing mostly unmanaged C&amp;#47;C&amp;#43;&amp;#43; code. The CPU usage will occasionally drop to as low as 80&amp;#37;, but even after waiting several minutes while doing nothing, it did not drop down to an acceptable level.&lt;br /&gt;This behaviour does not occur when opening a solution that consists of one C&amp;#35; project.&lt;br /&gt;The CPU usage is so high it is almost impossible to select text in a source file, select menu items etc.&lt;br /&gt;Uninstalling StyleCop resolves the issue with no other changes required.&lt;br /&gt;Visual Studio is running in a standard user account &amp;#40;i.e. not an administrator account&amp;#41;.&lt;br /&gt;This issue is quite reproducible - I have installed and uninstalled StyleCop 4.3 several times to test this.&lt;br /&gt;Comments: Contrary to the last comment, this IS verified by many to occur in VS2008 &amp;#40;as well as VS2005&amp;#41;.  As for the supposed deficiencies, this isn&amp;#39;t the forum to discuss why both points are false.</description><author>DRieman</author><pubDate>Wed, 21 Oct 2009 22:59:56 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: VS 2005 IDE consumes 99% CPU when opening large unmanaged solution after installing StyleCop 4.3 20091021P</guid></item><item><title>COMMENTED ISSUE: Package 'Visual Studio Explorers and Designers Package' has failed to load </title><link>http://code.msdn.microsoft.com/sourceanalysis/WorkItem/View.aspx?WorkItemId=39</link><description>I installed Source Code Analysis for C&amp;#35; &amp;#40;SCA&amp;#41; today.&lt;br /&gt;Now when I open a solution in VS 2008 TS I get the following message 3 time the output window.&lt;br /&gt; &lt;br /&gt;VSIP&amp;#58; Package &amp;#39;Visual Studio Explorers and Designers Package&amp;#39; has failed to load &amp;#40; GUID &amp;#61; &amp;#123;8D8529D3-625D-4496-8354-3DAD630ECC1B&amp;#125; &amp;#41;.&lt;br /&gt;     Please contact package vendor for assistance.&lt;br /&gt; &lt;br /&gt;Is this due to SCA or is there something else going on&amp;#63;&lt;br /&gt;&lt;br /&gt;Comments: This issue still exists in 4.3.2.  Uninstalling StyleCop fixed the issue.</description><author>kjbartel</author><pubDate>Wed, 21 Oct 2009 00:56:02 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Package 'Visual Studio Explorers and Designers Package' has failed to load  20091021A</guid></item></channel></rss>