3

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?

4

1 回答 1

1

如果您继续更新该项目,在这种情况下,您可以使用以下构建后事件在该特定项目上自动将构建事件添加到 GAC。在项目属性中的构建事件下,您可以将以下构建后事件添加到 GAC 修改后的 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)"

但请确保gacutil.exe在该路径中。

于 2013-10-02T11:25:33.990 回答