gac

.NET: with respect to AssemblyVersion, what defines binary compatibility?

喜夏-厌秋 提交于 2019-12-13 11:42:26
问题 What changes to a strong-named assembly necessitate a change in AssemblyVersionAttribute? Clearly, changing the public api in a way that could require a client to have to make a code change requires an increase in AssemblyVersion. But what about changes to the public API that don't require code changes in the client? For instance: the addition of a public class or interface? the addition of a public member to a public class or interface? (EDIT: drscroogemcduck correctly points out below that

Do I need to force the GAC to reload an assembly? Is this possible?

ぐ巨炮叔叔 提交于 2019-12-13 04:12:50
问题 I've added types to my .NET classes that I'm using for COM interop. To get it to work with my VB6 application, I unregistered the DLL and re-registered it (using regasm ). I then uninstalled and reinstalled it to the GAC (using gacutil ). The types are showing up in the VB6 object explorer, but when I run the application in the VB6 IDE, it breaks on the line that instantiates the new types with the error: Automation Errror - The System cannot find the file specified . I thought this odd since

Error adding policy file to GAC

这一生的挚爱 提交于 2019-12-13 03:49:44
问题 I'm trying to add a publisher policy file to the gac as per this thread but I'm having problems when I try and add the file on my test server. I get "A module specified in the manifest of assembly 'policy.3.0.assemblyname.dll' could not be found" My policy file looks like this: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="*assemblyname*" publicKeyToken="7a19eec6f55e2f84" culture="neutral" /> <bindingRedirect

Force MSI to overwrite assemblies on installation

一曲冷凌霜 提交于 2019-12-13 00:45:40
问题 Merry Christmas, StackOverflowians! I started out distributing my .NET GAC-located program using Inno Setup, but due to its various shortcomings, I want to switch over to MSI for the next version. Unfortunately, it seems like this is going to be a major hassle for my existing users... Of course, I'm going to have to insist that my users manually uninstall the previous version before installing the new one. But it seems like even if the previous version is completely uninstalled, it's still

Where does VS 2010 Tools' gacutil.exe install assemblies?

て烟熏妆下的殇ゞ 提交于 2019-12-12 17:40:48
问题 I used the Visual Studio 2010 Command Prompt's gacutil.exe to install an assembly. I expected the assembly to be added to C:\WINDOWS\assemblies , but it was instead added to C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL and is not showing up in C:\WINDOWS\assemblies . Is this a problem and should I be concerned that it's not showing up there? 回答1: The GAC location was changed in .Net 4. Check .NET 4.0 has a new GAC, why? for details. 来源: https://stackoverflow.com/questions/3055880/where-does-vs

Debugging a custom timer job in SharePoint

江枫思渺然 提交于 2019-12-12 16:40:29
问题 To debug a custom timer job in visual studio, I wasn't able to hit the debugger. Is it necessary to add the .PDB file to GAC? I tried doing the above, but it's not allowing to drag and drop this particular file. Why do we need to add this file? 回答1: Drag and drop does not work in the assembly folder because of the shell windows explorer attaches to it. You can do 3 things to bypass this shell - Copy the .pdb file via cmd in C:\windows\assemblyGAC_MSIL\yourassembly\yourassemblyversion\ Use

is it better to register dll's to GAC or reference them from bin folder in ASP.NET

流过昼夜 提交于 2019-12-12 09:57:04
问题 and if the answer is "it depends", could you provide a short explanation why ? 回答1: GAC is meant to contain assemblies that are shared across multiple applications . If that is the case, you should strong-name the assembly and register it with the GAC. If not, keep the assembly as a private assembly and reference it as a project/dll reference. PS: Didn't really get the reference from bin folder part of your question - which bin folder is this? 回答2: At the risk of drawing downvotes I'm going

How to register a dll into GAC with Installshield

拜拜、爱过 提交于 2019-12-12 05:35:08
问题 I have installshield 2016 premier and I have a .Net dll that uses a com dll. My application is a plugin so the main exe (its not my exe), is looking mydll in windows even myplugin is in program files. Manually when I use "gacutil.exe -i mydll.dll" it works. Then the dll is not need to be in windows folder. So I tried also regasm but it did not work. So i have to register mydll into gac somehow. The target machine has not gacutil.exe so i cannot call basically from command. I looked at how

Is Sharepoint local bin deployment possible?

我与影子孤独终老i 提交于 2019-12-12 01:35:31
问题 I’ve inherited a SharePoint solution where all the projects have strong names and are deployed to the GAC. I find that its difficult working with projects that are signed, it slows down development, testing and makes debugging difficult. So, is it possible that SharePoint projects, WebParts, Codebehinds etc be deployed to the local bin instead of the GAC? Is it considered bad practice to deploy to the local bin? 回答1: It is always recommanded to use the Bin directory over to GAC, for all the

How do I add a modified dll to the Global Assembly Cache?

女生的网名这么多〃 提交于 2019-12-12 01:17:10
问题 I have the MySQL Connector/NET installed on my PC. I modified the source code and recompiled one of the dlls (MySQL.Data.dll). With the program already installed, how can add this dll to the Global Assembly Cache? If your answer involves using gacutil.exe, please tell me where I can find it on my PC or where I might download it. Thanks! 回答1: You can put it in the GAC but unless you have access to the private key with which it was originally signed, the installed program(s) will not recognize