原文地址:http://blah.winsmarts.com/2009-12-sharepoint_productivity_tip_of_the_day.aspx
先把原文贴下来,有时间再翻译
This tip will make it easy for you to get that assembly name right within Visual Studio.
This applies to both SP2010 and SP2007.
- In Visual Studio, Go to Tools –> External Tools.
- Click on “Add” to add a tool, and put in the following values:
- Title: S&trong Name
- Command: Powershell.exe
- Arguments: -command "[System.Reflection.AssemblyName]::GetAssemblyName(\"$(TargetPath)\").FullName"
- Check “Use Output Window”
- Uncheck everything else – here’s how it should look -
3. That’s it, now in your project, Visit Tools –> Strong Name, and in the output window, itwill give you the assembly name like this –>
SandBoxWebPartWithProxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=64b818b3ff69ccfa