Mittwoch, 16. November 2011 09:20
Can I generate automated reports with MSOCAF ? (Without using the MSOCAF GUI)
Is there a way to control MSOCAF with PowerShell?
- Bearbeitet LaPhi Mittwoch, 16. November 2011 10:06
Mittwoch, 16. November 2011 15:47Moderator
From the looks of the MSOCAF program is designed to work with dedicated or on-premis installs of SharePoint. The MSOCAF program is not going to work if you are trying to use it with SharePoint online. This proram is used for uploading farm solutions, which is not possible to do with SharePoint online. If you have an on-premise install of SharePoint or a Microsoft dedicated hosting account, I would suggest posting your question at the link below.
Microsoft Online Services SharePoint Support
Montag, 21. November 2011 20:13Moderator
Were you able to post your question on the on-premise SharePoint forums to get an answer? Or do you require further assistance?
Please let me know.
Microsoft Online Services Technical Support
Mittwoch, 23. November 2011 10:43
Thanks for your answer!
MSOCAF is the tool to analysis custom code for SharePoint Online. So I think this question is here in the right forum.
Is there any documentation about MSOCAF? It is possible to control the program with the console and parameter?
Mittwoch, 14. Dezember 2011 20:02
MSOCAF is a stand alone code analysis tool and there are no APIs currently available to integrate it with TFS or command line. Additionally the tool is leveraged by SharePoint Online (Office 365) Dedicated customers to submit Fully Trusted code to Microsoft.
The documentation for the tool is in the help file that you can access after installing the tool in your local machine.
Dienstag, 20. März 2012 00:18It would be great to be able to include this MSOCAF tool rules (all of them including SPDispose Checker) into a build task so that we can automate the build and have regular warnings generated instead of having to manually RUN through the artifacts.
Samstag, 28. April 2012 10:10Any news about to add MSOCAF to a build task on TFS?
Samstag, 28. April 2012 10:20Or where I can get the "Microsoft Online custom rules" from MSOCAF? any Ideas?
Mittwoch, 9. Mai 2012 19:27still no idea?
Dienstag, 29. Mai 2012 17:34
Hi everyone, take a look at this link:http://blog.jessehouwing.nl/
Hope it helps, ;)
Mittwoch, 27. Juni 2012 11:20
Since most of msocaf just runs fxcop, cat.net and spdisposechecker, it's pretty simple to integrate these into Visual Studio and TFS. I went a step further and re-targetted the rules to the FxCop 10.0 binaries, that way you can achieve complete TFS and Visual Studio integration. I went the way of makign the rules compatible with FxCop 10, but you can also simply create a number of target files in msbuild that execute the fxcop, cat.net and spdisposechecker binaries on your project output. That will give you the same result as running the wizard.
To find the actual binaries run MSOCAF, and then from the task manager rightclick the process and pick Open File Location.
We try to make sure we're at 0 items found and with the Visual Studio integration you can simply add the proper SupressMessage attributes to suppress the warning in the actual MSOCAF tool.
Apart from my blog and my fxcopcontrib project, you might want to check out:
- MsBuild Community Tasks (fxcop task)
- CAT.NET msbuild task
- Community TFS Build Extensions (fxcop disposechecker, cat.net (even 2.0)). through build process template customization
Since the integration into FxCop gives the best integration in both Visual Studio and Team Build, I went in that way. If you need help or want to give feedback, please contact me through my google+ or twitter.
What these solutions don't do is create the actual MSOCAF report, but it makes it a lot easier to stay on a low number (or zero) of warnings.
My blog: blog.jessehouwing.nl
- Bearbeitet Jesse HouwingMicrosoft Community Contributor Mittwoch, 27. Juni 2012 11:22