I'm trying to index the GAC and use the ResolveAssemblyReferences target. However, some assemblies (such as Unity application block) seem to be missing from the GAC and yet VS happily shows them in the Add Reference dialog. My question: how can this be? I always thought that only GAC-registered assemblies appear there. Am I missing something?
If Unity is not in the GAC, how does VS know to show it in Add References?
508 Views Asked by Dmitri Nesteruk At
2
There are 2 best solutions below
0
ckramer
On
There is actually a registry setting which allows you to add directories to the list of locations where Visual Studio will search for assemblies to display in the "Add References" dialog.
Here is a quick overview of where it is and how to add your own paths to it.
Related Questions in .NET
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in VISUAL-STUDIO-2010
- how do i stop system stack overflow in visual basic?
- How to remove shortcut/alias to a .cpp and .h file from another project in Visual Studio 2019?
- VS2010 Macro/Environment issue causing a HResult: 0x80070057 (E_INVALIDARG) exception
- DevOps 2022 Server not connecting on VS 2012 and VS 2010
- How can i make a prefab instantiate another prefab?
- VS2010 Installer Project Custom Action to run an EXE is failing
- I commit from my Microsoft Visual Studio, however, I am now seeing that i now have two versions of two files
- Is there a way to make AfxMessageBox() take focus from another program?
- in visual studio 2017 was use a model i made but i get the error Read_POLS_Chunk(): Error reading a polygon not 1-3 vertices
- C++ vector subscript out of range : Monotone Interpolation
- c language, When decimal digit of %g in printf equal to 0.5, and length is more than 6, it is not upper ceil, why?
- IloEnv env ; don't work in the dbug and it can access to it
- Create a kml for a Google Earth tree view item through vb-net
- Error in RDLC REPORT in vs2010- An error occurred during local report processing, Object reference not set to an object instance
- This AVD's configuration is missing a kernel file! Visual Studio Code
Related Questions in REFERENCE
- Call by reference confusion
- Would event listeners prevent garbage collecting objects referenced in outer function scopes?
- What is correct way to copy struct instance with fields in Go?
- Filling multiple blanks among texts in a cell using values from other cells
- How are reference to objects handled in javascript when returning object and modifying them in their original functions
- Return struct containing borrowed value in rust
- Why do different delivery methods have different results when applying PHP's global keyword?
- I have about 200 cells with an equation like [=B6] can you use a MACRO (VBA) to make each cell contain $ in front of column & row characters eg [$B$6]
- strange behavior : How elements are inserted in vba arrays?
- Can someone explain to me why after this function is called a becomes 2 instead of 3 or 4?
- Copy/Paste APA-style Text References into Word as Dynamic Citations for Automatic Bibliography
- Having trouble populating an array of UUID's into their referenced type
- Any downsides to returning a reference to struct variable in Rust?
- Need documentation or API reference to create job posts on Hirist platform
- .Net App has reference but is not being recognized in class
Related Questions in GAC
- Exception System.Web.HttpCompileException (0x80004005) error CS0234: The type or namespace name 'Services' does not exist in the namespace 'Cnbp.Cbk'
- In .NET, Microsoft.Extensions.Logging.Abstractions.dll, Version=8.0.0.0 requires System.Runtime.dll Version 8.0.0.0, but no such version exists
- How can I access the summary information of a dll file installed in the GAC directory?
- Why is Assembly.LoadFrom loading a previously unloaded strongly named assembly from the GAC instead of loading from the specified path?
- SSIS Script task with WinSCP fails on server but works locally even though the WinSCP assembly is registered in GAC
- How can I restore System.Data and other files missing from Windows\Microsoft.NET Folder, not restored by repair tool or turning features off and on?
- Cannot redirect my application to use PDB file in bin folder
- Assembly binding redirect does not work for Microsoft.SharePoint.Client - loading two versions into same context
- Visual Studio C# can not see Dll in GAC
- Different releases of Microsoft.Build.* assemblies have the same 15.1 version leading to issues
- Why have to add to GAC. DLL already given in exe folder
- Resolving .NET assembly name collision
- Running in VS2019 Admin Cmd window -- gacutil.exe error: "Failure adding assembly to the cache. The system cannot find the file specified."
- Does GAC conflict with the Registry for Assembly Loading?
- Is it ever possible to use an unsigned DLL in place of a signed one?
Related Questions in ADD-REFERENCES-DIALOG
- Dotnet command adds reference path instead of reference name
- AddReference doesn't display on pycharm
- Adding Reference on ASP.NET
- Why I cannot see "Add Reference"
- Can't find 'References' tab to add System.Windows.Forms
- Visual Studio 2017 SSDT add reference to script
- How to add MS Visual Studio 2017 C# missing Excel Reference after download?
- NuGet Package Manager installing System dlls
- IronPython fails to load dependency possibly due to name conflict
- Visual Studio Unit Test From Existing ASP Web Site
- Why dialog box not open after click add reference in visual studio
- Visual Studio Solution DLL error
- Get windows.storage.fileproperties namespace in visual studio pro 2012
- Unable to add the reference of the Microsoft.Online.Administration.Automation.PSModule dll to my project in Visual Studio 2010
- How do you reference monetdb odbc driver for .net
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In addition to the registry setting ckramer mentioned, there is also
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersExandHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx.Tip: if you download the VS 2010 Pro Power Tools extension, the updated "Add Reference" dialog clearly distinguishes between Framework assemblies and Framework Extension assemblies.