Skip to content
New issue

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

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

Already on GitHub? # to your account

Namespace's bug #64

Closed
RomanSoloweow opened this issue Jul 21, 2021 · 5 comments
Closed

Namespace's bug #64

RomanSoloweow opened this issue Jul 21, 2021 · 5 comments

Comments

@RomanSoloweow
Copy link

Calling. Events() requires the ReactiveMarbles.ObservableEvents namespace, and the IDE swears when this space is connected:

Could not find type or namespace name "ReactiveMarbles" (possibly missing using directive or assembly reference).
image

Solution: generate the extensions in the same namespace as the element for which they are generated

@glennawatson
Copy link
Member

As designed and documented.

@database64128
Copy link

I also encountered this issue when migrating from ReactiveUI.Events.WPF. The VS2019 editor shows 0 errors, but the build fails with the same errors as OP had posted.

@database64128
Copy link

Update: A friend of mine just helped and fixed the issue by adding this property in csproj:

<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>

More info: database64128/youtube-dl-wpf#75

@glennawatson
Copy link
Member

The <IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation> came up with pharmacist too at times. I will add documentation about it.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants