I have a Library created as NuGet which in turn depends a COM component thru Interop, I am adding the Interop Assembly as part of my NuGet. When I use the NuGet in Client App. the tag <EmbedInteropTypes>True</EmbedInteropTypes> get automatically added to the client csproj file for the Interop assembly , But When I run the app, it complains the interop assembly could not found. Hence I converted to <EmbedInteropTypes>False</EmbedInteropTypes> so that the interop dll is available and it works fine . But whenever the new version of the NuGet is updated, it Visual studio update it back to <EmbedInteropTypes>True</EmbedInteropTypes>. Is there a settings where I can make it default false whenever the NuGet is added. Like as part of the NuGet or as part of the Client Project
Interop Assembly Embedd
23 Views Asked by jereesh thomas At
0
There are 0 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 COM
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- WinAPI - right mouse drag & drop and IContextMenu
- Function Returning Excel COM Objects Unexpectedly
- Windows ContextMenuHandler names - Document conflict?
- How to publish a console application with COM interop and trim unused code
- IContextMenu Handler - Should ShellExecute or CreateProcess be used to InvokeCommand?
- Windows Explorer Conditional Context Menu Item for Drive?
- How do I fix an error while trying to send email using Outlook with COM?
- ITypeLib2.GetLibStatistics() always throws AccessViolationException in C#
- Directwrite is not always able to query font
- How can I pass a C++ struct to a C# DLL method using COM interop
- VBA PowerPoint Run-time error '-2147467259' (80004005): Presentation.Close: Failed
- PHP using a dll with COM + dotnet
- d3d11 triangle rendering failure despite everything being properly initialized
- COM context menu InvokeCommand not being called
Related Questions in NUGET-PACKAGE
- Getting error "The located assembly's manifest definition does not match the assembly reference"
- How can I copy plug-in DLLs from a sub folder using NuGet
- How to add nuget package for offline tfs build task
- How to resolve NuGet Transitive Packages with vulnerabilities
- How install MathNet.Symbolics in ASP.NET 4.8
- NuGet package doesn't copy file to destination project
- Azure Devops pipeline to build .NET Framework Artifact multiple projects
- An error occurred while trying to restore packages. Unable to find version 'x.x.xxxx.xxx' of Moq
- Fail to load package dependency at runtime
- Compatibility Problem after Update from Xamarin.Forms to .Net MAUI
- Increasing the Lifespan of OTP Codes in C# Using PureOtp Library
- Project with referenced nuget package is not able to find files
- .net Unit Test Discovery through nuget package
- Could not load file or assembly 'System.Runtime, when creating nuget spec based on the assembly
- Install local NuGet package in Rider
Related Questions in COM-INTEROP
- Visual Studio write to Office 365 word
- How to publish a console application with COM interop and trim unused code
- How to obtain a COM object type of an array?
- Is this programming pattern the solution to Excel COM interop memory leaks?
- Connect to Running Program via COM - Marshal.GetIUnknownForObject
- .NET 6.0 comhost registration fails with error 0x80008083
- Cannot Scaffold Access Database after Office365 Upgrade - EFCore + Visual Studio 2019
- How can I expose c# classes and methods as <globals> in the COM interface?
- How to use FindAll() with the nuget package Interop.UIAutomationClient
- 2 projectname.comhost.dll in same build directory possible?
- Interop function call from Excel to PowerPoint much slower in C# compared to VB.net (when run for the first time)
- CS1545 error with specific COM object properties
- Interop Assembly Embedd
- Problem retrieving email sender in Outlook Interop
- Get value from System.__Object in C#
Related Questions in CSPROJ
- Use tabs instead of spaces in .csproj file in Visual Studio 2022
- Microsoft.Build.Evaluation.Project (Version 17.9.5) causes Exception
- .NET MAUI Hot Reload Not Working After Adding Custom Build Configurations
- MsBuild DefineConstants from .pubxml doesnt work correctly
- How do I suppress warnings for dependencies in sourcecode generators?
- Does Xunit use a source generator for test data?
- Nuget pack with nuspec includes all solution inside
- MSBuild Plugin projects build and copying in csproj
- Copy folder on publish ASP.NET Core
- PostBuild event stuck in infinite loop
- Cake.Build doesn't generate description for nuget and non-sdk projecs
- Multi-Targeting: Assets file 'project.assets.json' doesn't have a target for 'net6.0'
- Git command formatting characters in msbuild are interpreted incorrectly
- Using variable in library dependency path in .NET
- Visual studio 2022- incompatible installer project or doesn't support specific csproj file
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 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?