Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF build failed #41

Closed
cpa-coder opened this issue Apr 27, 2021 · 2 comments
Closed

WPF build failed #41

cpa-coder opened this issue Apr 27, 2021 · 2 comments

Comments

@cpa-coder
Copy link

Hi,

I have been testing this project for wpf application but failed to build the app with an error "The type or namespace name 'SingletonAttribute' could not be found (are you missing a using directive or an assembly reference?)" even though roslyn analyzer found no error before building the project.

Maybe I have wrong configuration or something. This is a sample project I've created sample project. Hoping for someone who can enlighten me :)

Thanks a lot!

@cpa-coder cpa-coder changed the title Wpf build failed WPF build failed Apr 27, 2021
@pakrym
Copy link
Owner

pakrym commented Apr 27, 2021

Hey @debitexpress-business, it seems you are hitting dotnet/wpf#3404

The workaround would be adding

    <IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>

In your project settings.

I tested on your sample and and fixes the compilation.

@pakrym pakrym pinned this issue Apr 27, 2021
@cpa-coder
Copy link
Author

Hi @pakrym, thank you for the work around.

Tried and it worked!

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants