Re: Compile to GAC from VS
- From: "Michael Höhne" <michael.hoehne@xxxxxxxxxxxxx>
- Date: Fri, 24 Feb 2006 16:56:02 +0100
I ran into that problem several times. If you do not update the version
number of your assembly, the .NET framework uses a cached assembly in your
C:\Document and Settings\<username>\Lokale Settings\Application
Data\assembly folder. It will be stored somewhere beneath a DL2 or DL3
folder. I placed a simple batch into that folder, removing all assemblies in
there.
@echo off
@prompt $g
del *.dll /s /q
pause
Whenever I have the problems you mentioned, I click it and all assemblies
are gone and you're working with your current implementation. You can add
the batch file to a custom build script to automate this process.
--
Michael
http://www.stunnware.com/crm
----------------------------------------------------------
"Alexander Mueller" <millerax@xxxxxxxxxxx> schrieb im Newsbeitrag
news:uPT5qgVOGHA.428@xxxxxxxxxxxxxxxxxxxxxxx
Hi
we have Word-Template project in VSTO that will be used intensively
by the customer so we decided to put it to the GAC, because this also
solves privilege- and location-problems for doc-files that are saved
to an arbitary location.
I am not very familiar with NET-GAC concept, but found out
that creating a Strong Name with sn.exe and then putting the
assembly into the GAC using gacutil is all that seems to be done,
however once the assembly is registered to the GAC, i get trouble starting
a newer compiled versions of the VS-project from the REALESE-folder. The
dot-file then seems to favor the
old GAC-assembly rather then the new RELASE-assembly also it they both
share the same location; so code-changes are not executed under
these circumstances.
In order to fix this problem, i thought one might compile the assembly
to the GAC from Viual Studio directly, but i wonder how this can be
achieved/configured, without using tools like 'gacutil.exe' manually
after building. Hope the problem is reproducable.
Btw VS 2005 + VSTO 2005 + OFF 2003
Thanks for your help,
Alex
.
- Follow-Ups:
- Re: Compile to GAC from VS
- From: Alexander Mueller
- Re: Compile to GAC from VS
- References:
- Compile to GAC from VS
- From: Alexander Mueller
- Compile to GAC from VS
- Prev by Date: Compile to GAC from VS
- Next by Date: Re: VSTO Error
- Previous by thread: Compile to GAC from VS
- Next by thread: Re: Compile to GAC from VS
- Index(es):
Relevant Pages
|