RE: Executing gacutil in post-build event
- From: v-wywang@xxxxxxxxxxxxxxxxxxxx (WenYuan Wang [MSFT])
- Date: Tue, 29 Jan 2008 03:37:09 GMT
Hello mustang,
It seems you want to gac the dll using gacutil command in post build event.
This method works on VS 2005 and Windows XP, but failed on VS 2005 and
Windows Vista. If I misunderstood anything here, please don't hesitate to
correct me.
I suggest you may check the following steps:
1. How did you start VS 2005 on Vista Machine?
You will have to right click on devenv.exe, and then select "Run as
Administrator" on context menu. Otherwise, devenv.exe process doesn't run
as administrator permission.
2. When you open the Visual Studio command prompt it will add that location
to the path. But when using the pre/post build event this is not the case.
Did you specify the path in post build event?
For example:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /i
$(TargetPath)
3. At last, I suspect this is caused by UAC in Vista. I suggest you may
disable UAC and try your post event again.
http://www.vista4beginners.com/How-to-disable-UAC
[How to disable UAC]
Hope this helps. Please try the above method and let me know if this works
on your side. We are glad to assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- RE: Executing gacutil in post-build event
- From: mustang
- RE: Executing gacutil in post-build event
- Prev by Date: Re: Create Plug-In for Visual Studio IDE
- Next by Date: RE: Executing gacutil in post-build event
- Previous by thread: Re: Create Plug-In for Visual Studio IDE
- Next by thread: RE: Executing gacutil in post-build event
- Index(es):
Loading