Question regarding depending on the `DllExported` dlls on another project
See original GitHub issueSo, currently, I have a .NET Core project on my solution called Hooks
where I export some methods to deal with Windows Hooks. And I need to depend on that project from another project on the same solution.
Is it possible to, without using the Post build
actions, make the project copy the DLLs in the x86
and x64
folders to the output directory of the projects that depend on it?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Export function in a dll but still use it in other files within the ...
The issue is that function1 above needs to still be exported but also needs to be used in another file within the DLL...
Read more >Dynamic link library (DLL) - Windows Client
In describing what a DLL is, this article describes dynamic linking methods, DLL dependencies, DLL entry points, exporting DLL functions, ...
Read more >Dlls and ABI
3 - Create factory functions and a DEF file to export the function (export by ordinal / assigning a number to each function)....
Read more >Is it possible to use the DLL file without its LIB file?
Open depends.exe and look at your dll. The list of exports is found on the lower right pane. Go to the VS command...
Read more >DllNotFoundException when depend on another dll
In Unity4, I fixed this problem by placing plugin.dll in the appropriate plugins folder, and dependency.dll in the root folder of the project...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think we can try to review this suggestion as optional Post-Processing feature “as is” like for a new #146 where built Pre-Processing.
But as I mentioned:
ResolveAssemblyReferences
+ReferenceCopyLocalPaths
(and related) will be really difficult for anything to base on it.ResolveAssemblyReferences
was initially designed.MvsSln, however, already implements the dependency graph in analyzed solution (I know, because I was personally implementing this in the past). But as I voiced this task is complicated by the user context where both visualstudio and msbuild can provide only a separate project-or-like environment.
And if we’re talking about a normal implementation from outside, then we also need to control the build state for the whole solution scope from a restricted project scope. Otherwise we cannot be sure of anything since modules or even paths can be also modified later for some reason from other tools, and so on.
But we can do it easier if we’ll try only to copy our artifacts by paths from evaluated properties at the moment of processing DllExport, again, without guarantees of anything.
This is most simple solution for this issue, but it cannot be safe for all user cases as you can see. However, this is perfectly fits for some additional option for Post-Processing feature.
I’ll try to review this for 1.7.1.
By the way, the use of the mentioned graph is currently complicated by this issue: https://github.com/3F/MvsSln/issues/25 Let me know if anyone knows something about related changes in Visual Studio 16.x !