- For a client, we were developing SharePoint 2019 Web API. For that we were following below post:
- In that we needed to set up strong assembly name. The link was dead. So I thought I should write this blog.
This tip will make it easy for you to get that assembly name right within Visual Studio.
- In Visual Studio, Go to Tools –> External Tools.
- Click on “Add” to add a tool, and put in the following values:
- Title: Strong 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 -
- Right Click on your solution and Clean Your Project solution.
- Now, Right Click on your solution and build Your Project solution.
- That’s it, now in your project, Visit Tools –> Strong Name, and in the output window, it will give you the assembly name like this –>
ProjectName, Version=188.8.131.52, Culture=neutral, PublicKeyToken=e3d610b32dbba675
Please let me know if you face any issues.