dotnet / dotnet/wpf

References referred in WPF XAML only not copied to main project output

Open
#3,802 0 comments 0 reactions 0 assignees View on GitHub
.NET Framework
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity2.visualstudio.com/t/References-referred-in-WPF-XAML-only-not/850184)._

---
I noted that references which is used only in the XAML files are not copied to the main project output.

Example of dependency layout.

1) `Project_WPF_Converters`
- Contains only converters
2) `Project_WPF_Pages`
- Includes `Project_WPF_Converters`
- References to (1) are all inside the .xaml files via
`xmlns:c="clr-namespace:My.Converters;assembly=My.Converters"`
3) `Project_Main`
- Includes `Project_WPF_Pages`

After build,
- in `Project_WPF_Pages` output folder, `Project_WPF_Converters.dll` is copied.
- in `Project_Main` output folder, only `Project_WPF_Pages.dll` is copied. `Project_WPF_Converters.dll` is not.

---
### Original Comments

#### Feedback Bot on 12/10/2019, 03:01 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

#### Feedback Bot on 1/17/2020, 07:15 AM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.
#### Mila Zhou[MSFT] on 10/13/2020, 02:11 PM:

Thank you for taking the time to log this issue! Did you still reproduce this issue in the latest stable version of Visual Studio installed from https://visualstudio.microsoft.com/downloads ?

#### Nicholas Poh on 10/13/2020, 02:52 PM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.