문제

I've used SPDisposeCheck for SP2007/2010 and find it very useful for finding undisposed sp objects, but from this blog post, it's mentioned that it's no longer working for 2013.

Is there any alternatives available?

도움이 되었습니까?

해결책

SPCop, the free tool of the SPCAF framework, will do the trick and even more. Have a look here: http://blogs.msdn.com/b/torstenmandelkow/archive/2013/10/08/free-sharepoint-code-analysis-tool-available.aspx

다른 팁

You can use the SPDisposechecker. In this tool, what you have to do is give the path of dll and the file where you want the output file. Example,

Perform SPDisposeChecker on dlls using command line

C:\Program Files\Microsoft\SharePoint Dispose Check>SPDisposeCheck C:\CODE\DisposeCheckDllfolder >Log100DII.xml

where 1) C:\Program Files\Microsoft\SharePoint Dispose Check --> path of dispose checker exe

2) SPDisposeCheck --> command(Keyword)

3) C:\CODE\DisposeCheckDllfolder --> where the dll of your solution is kept.

4) Log100DII.xml --> output file name will generate in the same folder of dll

https://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a3811c6-72d7-4948-ae34-dd7cf5bca099/sharepoint-dispose-checker-tool-and-sharepoint-2013?forum=sharepointdevelopment

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top