SubMain - CodeIt.Right The First Time!

/Community

A Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials Downloads
Welcome to SubMain Community Sign in | Join | Help

Can't get custom profile to work with command line tool

Last post 02-15-2009, 10:41 PM by Serge B.. 3 replies.
Sort Posts: Previous Next
  •  02-10-2009, 6:21 AM 707

    Can't get custom profile to work with command line tool

    I'm trying to use the SubMain.CodeItRight.Cmd.exe command line tool, and I cannot get it to use my custom profile. My command line is:

        SubMain.CodeItRight.Cmd.exe /Project:"C:\example\example.csproj" /Profile:"My Profile" /Out:"C:\result.xml"

    This doesn't pick up any of my custom rules - it falls back to the built-in profile. Also, if I change the profile name to a name that doesn't exist:

       SubMain.CodeItRight.Cmd.exe /Project:"C:\example\example.csproj" /Profile:"BogusProfileName" /Out:"C:\result.xml"

    there is no error and it falls back on the built-in profile.  I'm using Version 1.2.08357 as the 30-day demo.

    Thanks in advance

  •  02-14-2009, 1:00 AM 708 in reply to 707

    Re: Can't get custom profile to work with command line tool

    Hello,

    Sorry about the delay - we were trying to find a way to reproduce this.

    Do you by any chance have both VS2008 and VS2005 installed on your computer?

    We found a glitch where CodeIt.Right.Cmd incorrectly determines version of the project and falls back the the default VS2008.

    As a temporary workaround, if you copy your Profiles directory content ("<My Documents>\SubMain\CodeIt.Right for VS2005\Profiles") to "<My Documents>\SubMain\CodeIt.Right for VS2008\Profiles" the command line version will pick up the correct profile.

    The glitch is resolved and will be available in the next update.

    Thanks!


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft VB MVP  |  http://vbcity.com - VB Developer Community
    » » (Static Code Analysis + Automatic Refactoring) / Painless Coding Guidelines = CodeIt.Right - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
  •  02-15-2009, 2:15 PM 709 in reply to 708

    Re: Can't get custom profile to work with command line tool

    Thanks for the reply - copying the profiles to the VS2008 directory fixed it.

  •  02-15-2009, 10:41 PM 710 in reply to 709

    Re: Can't get custom profile to work with command line tool

    Thank you for confirming this worked.

    The fix is included into the next product update.

    Thanks!


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft VB MVP  |  http://vbcity.com - VB Developer Community
    » » (Static Code Analysis + Automatic Refactoring) / Painless Coding Guidelines = CodeIt.Right - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |