How can I reference a .NET assembly deployed in c:\windows\microsoft.net\assembly from Visual Studio IDE? If i do right click on References/Add Reference, it only shows the c:\windows\assembly content. How do I add a reference to new GAC path (c:\windows\microsoft.net\assembly)?
How to add a reference to C:\Windows\Microsoft.NET\assembly
874 Views Asked by Carlos Russo At
2
There are 2 best solutions below
Related Questions in VISUAL-STUDIO
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Dotnet Run is not working but the application is running in Visual Studio
- Is there a way to support Tailwind @apply in Visual Studio?
- How can I eliminate compile warnings using ZLib in Visual Studio
- C++(or Visual Studio) saving the file will not preserve the original file contents
- VS Community 2022 cannot install dotnet-ef when i try to publish
- Visual Studio 2022 convert spaces to tabs on checkout and back to spaces on checkin
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- Command line error D8036 - not allowed with multiple source files with node-gyp and VS2022
- Migrate Old VS 2015 .suo file to the New VS 2022 DocumentLayout.json
- How to make one executable visual studio, that users can run?
- Use tabs instead of spaces in .csproj file in Visual Studio 2022
- Unity - scrollview/dragging breaks after specific scene inactivity
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
- Why is 'EDITBIN /STACK:2097152 w3wp.exe' cmd is giving me an LNK1342 error?
Related Questions in ASSEMBLIES
- Details on how to handle AppDomain.AssemblyResolve event properly upon updating the needed assembly
- Right way to generate shared code in source generators
- How do I use assemblies with PowerShell JEA?
- .Net Framework 4 site compilation error due to loading too many assembly (dll) files. "CS1647: An expression is too long or complex to compile"
- "FileNotFoundException: Could not find System.Private.CoreLib.dll" in Release-mode MAUI application
- NAudio - Could not load an assembly or one of its dependencies: Naudio.Core
- How to force visual studio to automatically increase the build number?
- Difference between PowerShell 5.1 and 7 when working with certificates
- Get class that implements an interface across multiple .NET assemblies
- C# Where are these assembly references coming from?
- .Net Core looking for a lower version of referenced assembly
- Can I use asm() in C instead of asm?
- Codebase lists wrong path for referenced assemblies
- Can digital signing of 3rd party DLLs in nuget packages have potential negative effects?
- Issue Publishing Power BI Paginated Report with Custom Assembly for QR Code Generation
Related Questions in .NET-ASSEMBLY
- .Net App has reference but is not being recognized in class
- Sharing runtime assembly in C# Roslyn script
- C# application crashes while using Matlab .Net Assembly
- Prevent copying of package reference using Visual Studio Publish
- Right way to generate shared code in source generators
- SSIS: FileLoadException for System.Runtime Version 6.0.0.0 in .NET Framework Project
- Wrong version loaded of "System.Servicemodel" when using a service reference
- Update .NET project dependency
- C# Assembly is deactivated and cannot run any code error
- Assembly Cannot be installed because of Existing Policy CLR
- .Net Program sometimes installs, sometimes fails at different places
- Type.GetType("ClassName") returns null
- Mixed mode .NET 4.0 assembly refuses to load in Windows 10 Pro but loads fine in Windows 10 Home
- How to extend an assembly from other assemblies in C#
- NuGet package updates are causing assembly loading issues
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?
It's working by adding a reference to: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\\
I don't know if it is the better way to do it but it seems to do the job.
For registering the DLL in another environment, I used the following sentence:
"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\gacutil.exe" /i /f
Hope it helps.