here is a very handy script that we can embed in the Post-build Event. the DLL will be automatically deployed to the GAC.
right click on the project and select properties from the popup menu.
clicked on the Edit Post Build Button and Paste the following lines into Post-build Event Command Line Windows.
"%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe"
/i
"$(TargetPath)"
then we just press F5 or select build command from the menu bar. we will see this message.
Assembly successfully added to the cache
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
No comments:
Post a Comment