Pergunta

Every time I do an edit on my Library Class, I compile it for get the updated DLL. But for get the effective edit on the project which uses this Library, I have to do the command :

gacutil –I <assembly name >

and recycle the pool. Recycling the pool can be ok, but can I automate that process of gacutil?

Is there a way on VS or no solution? I need to do this every time?

Foi útil?

Solução

If you keep updating that project, In that case you can add build event to GAC automatically on that particular project using following post built event.Under Build Event in project properties just you can add the following post build event to GAC your modified dll.Just copy and past following line with zero modification

  "%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64\gacutil.exe" /i "$(TargetPath)"

But make sure that gacutil.exe in that path.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top