teched 2006 BOF SharePoint demonstration, there are many developers' tips to improve the efficiency of daily development. At that time, I wanted to come back and improve my development environment. In MS Article related to ">, I finally got the expected result. These skills also apply to situations in moss 2007 .
Tip 1: Put two shortcuts in the Quick Start bar of the system:IIS. I am afraid to understand the causeSharePointDevelopers all know. It is easy to implement and callIisresetThe other is recycling.SharePointApplicationProgramPool shortcut. In most cases, we do not have to restartIIS, Only the application pool to which the recycle bin belongs. You need to know that this operation is much faster, and it is almost a matter of blinking. The implementation method is to enter a command similar to this in the shortcut call box:
% Windir % \ system32 \ cscript.exe c: \ windows \ system32 \ iisapp. vbs/a "[application pool name]"/R
Generally, we only need to input the following:
Iisapp/A mssharepointapppool/R
However, if you useWindows2003The system does notSP1Package, the execution will not pass. Tell you that no"R. But don't worry. You only need to find one.SP1The correspondingIisapp. vbsCopy the file to run it.
Some other tips are as follows:GoogleAnd are recorded.
Tip 2: How do I know which one to use during debugging?W3wpI want to attach it? You can also useIisapp. This time, you only need to enterIisapp, The following information is displayed:
W3wp.exe PID: 3292 apppoolid: ms1_pointportalapppool
SoPIDIs3292IsSharePointThe corresponding site. (Original address:Http://www.nickgrattan.net/PermaLink.aspx? Guid = 617509d2-64c9-4679-be34-e7152fc74a7c)
Tip 3: CreateSharePointFolder menu. Is to create a toolbar pointing
"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60", Of course, this is2003.Moss2007That is,"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12".
This makes it easy to view.
At the same time, we can register this path to the environment variable. SetVSThe command line environment is also recent, so that you can run a similarGacutil.exe,Sn.exe, You can also quickly change the directorySharePointDirectory. In2007In:
1,Create a new file named:Sharepointcommandprompt. cmd, UseNotepadOpen edit. The file content is as follows:
@ Echo off
Echo setting 12fd environment variable.
Set 12fd = "C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12"
"C: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ vcvarsall. Bat" x86
2, Create a desktop shortcut pointing to the file you just created. The input format is as follows:
% Comspec %/K "C :\[File Path] \ Sharepointcommandprompt. cmd ""
Corresponds2003Is:
1, Create a new file named:Sharepointcommandprompt. cmd, UseNotepadOpen edit. The file content is as follows:
@ Echo off
Echo setting 60fd environment variable.
Set 60fd = "C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60"
"C: \ Program Files \ Microsoft Visual Studio. NET 2003 \ common7 \ tools \ vsvars32.bat" x86
2, Same2007.
Drag the shortcut to the Quick Start area of the taskbar, and click "open" to enter the following information:
Cd % 60fd %
GoC: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 60. Of course,12fdThe usage is the same. (Original address:Http://www.andrewconnell.com/blog/archive/2006/08/21/3882.aspx)