dotnet / dotnet/msbuild

ProjectReference does not copy referenced project dll in the output path

Open
#1,723 1 comment 5 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

Hey,

I tried to make a simple c++ clr console project(A) and make a reference on a native dll project(B).
I set the output path to another folder in Visual Studio. Instead of
$(SolutionDir) ...
tool
$(ProjectDir) ...

The Project B Dll is not getting copied to the output path.
https://github.com/JackGrinningCat/TestReferenceNativeDLL

It is documented that the private tag stands for the "CopyLocal" and the definition on the visual studio description points out, that it is copying the output from the references project to the output path of the referencing project.

This seems to be around for long but actually i don't understand why there is no solution besides "Add an xcopy command in the post build task"? Can somebody help me to understand the issue. Maybe I have to set something specific.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.