开发者

64 bit VS2008 Post Build Event Command Line

I'm trying to use the post build command line to get my class library in the GAC. It is:

"%programfiles%\Microsoft SDKs\Windows\v6.0A\Bin\x64\gacutil.exe" -if $(TargetPath)

I do not see any errors, but my DLL is not getting into the G开发者_JAVA百科AC. However, I can run this from a DOS prompt and it works. Anything special I need to do to make this command work in VS like this?


The answer is that on a 64 bit system, %programfiles% needs to be replaced with

%ProgramW6432% or %ProgramFiles(x86)%

Thanks for all of the help.


Are you running under Vista, Win7 or Win 2008 and UAC is making Visual Studio run in a non-admin context ? And you are launching the command prompt with admin privileges ?


You might need double quotes around the target: "$(TargetPath)"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜