Skip to content

UserControls are not found with the .NET 6 SDK if the AssemblyName is changed with $(MSBuildProjectName). #5700

Answered by Nefarion
loop8ack asked this question in Q&A
Discussion options

You must be logged in to vote

@loop8ack Had the exact same error!

What worked for me was to explicitly set
<IncludePackageReferencesDuringMarkupCompilation>false</IncludePackageReferencesDuringMarkupCompilation>
in the csproj of my wpf...

This was changed from Default = false to Default = true between net5 and net6

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by singhashish-wpf
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@loop8ack
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #5683 on November 17, 2021 06:23.