Have you checked the value of $ (TargetName) with the Message task?
You may need to specify a property in the build.proj file:
<PropertyGroup> <AssemblyPath></AssemblyPath> </PropertyGroup> <Target Name="AfterBuild"> <GacUtil Assemblies="$(AssemblyPath)" /> </Target>
Then pass the property value from the post-build event of Visual Studio:
msbuild /t:AfterBuild /verbosity:diagnostic /p:AssemblyPath="$(TargetPath)"
source share