.net - Code Analysis fails when building with FinalBuilder -


update 3 have discovered appears old version of fxcop invoked when finalbuilder calling msbuild. using command line, when running vs2010 version of fxcop works fine, when use same command vs2008 error message switch /reference unknown switch.

i had visual studio 2008 solution built using finalbuilder 6.

i have converted solution visual studio 2010 , upgraded finalbuilder 7. solution builds fine using static code analysis within visual studio, build fails when running in finalbuilder 7, following error:

running code analysis...

switch '/reference' unknown switch.

msbuild : error : ca0059 : invalid settings passed codeanalysis task. see output window details.

what causing this, , how can resolve issue? can't find anywhere /reference switch means, or set. since works in visual studio thinking might have how finalbuilder calls upon msbuild, i'm guessing here.

any ideas appreciated.

update: code analysis settings located in .ruleset file part of solution items, , referenced in .csproj this:

<runcodeanalysis>true</runcodeanalysis> <codeanalysisrules> </codeanalysisrules> <platformtarget>x86</platformtarget> <codeanalysisruleset>..\myproduct.ruleset</codeanalysisruleset> 

update 2: when running build command finalbuilder using, command line, works. noticed fxcop called following paramters when calling command line:

c:\windows\microsoft.net\framework\v4.0.30319\msbuild.exe /t:rebuild /nr:false /p:configuration="release";platform="any cpu";targetframework="v2.0" /v:normal /m "c:\makempm\5.0.0.0\myproducttool.sln" 

which in turn calls upon fxcopcmd.exe this:

c:\program files\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\fxcopcmd.exe   /outputculture:1033  /out:"bin\release\myproduct.exe.codeanalysislog.xml"  file:"bin\release\myproduct.exe" /reference:"c:\makempm\5.0.0.0\mpcommon\bin\release\mpcommon.dll"  /reference:"c:\makempm\5.0.0.0\mpconfiguration\bin\release\mpconfiguration.dll" /reference:"c:\makempm\5.0.0.0\mpdownload\bin\release\mpdownload.dll"  /reference:"c:\makempm\5.0.0.0\mpstatus\bin\release\mpstatus.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll"  /reference:"c:\program files\reference assemblies\microsoft\framework\v3.5\system.core.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.data.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.deployment.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.design.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.drawing.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll"  /reference:"c:\windows\microsoft.net\framework\v2.0.50727\system.xml.dll"  /directory:"c:\makempm\5.0.0.0\mpconfiguration\bin\release"  /directory:"c:\makempm\5.0.0.0\mpdownload\bin\release"  /directory:"c:\program files\reference assemblies\microsoft\framework\v3.5"  /directory:"c:\windows\microsoft.net\framework\v2.0.50727"  /directory:"c:\makempm\5.0.0.0\mpstatus\bin\release"  /directory:"c:\makempm\5.0.0.0\mpcommon\bin\release"  /ruleset:"=c:\makempm\5.0.0.0\myproduct\..\myproduct.ruleset"  /rulesetdirectory:"c:\program files\microsoft visual studio 10.0\team tools\static analysis tools\\rule sets"  /rule:"-c:\program files\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\\rules"  /searchgac  /ignoreinvalidtargets  /forceoutput  /successfile  /ignoregeneratedcode  /savemessagestoreport:active  /targetframeworkversion:v3.5  /timeout:120 

and fine:

code analysis complete -- 0 error(s), 0 warning(s)


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -