-
Notifications
You must be signed in to change notification settings - Fork 80
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
Unable to Add CameraPreview to XAML WinUI3 #527
Comments
@corykroll Have you updated your TFM and |
I've gotten it to work - thank you for the links!
I had to right-click the Project, select Properties, and click the
Application > General menu option and select 10.0.26100.0 from the Target
OS version dropdown.
Once that was done, I compiled the project and got another error:
A referenced assembly was compiled using a newer version of
Microsoft.Windows.SDK.NET.dll. Please update to a newer .NET SDK in order
to reference this assembly.
I closed Visual Studio, opened Visual Studio Installer, Modified by
existing install, selected the Individual Components tab at the tab,
searched for Windows SDK, and check the box for Windows 11 SDK
(10.0.26100.0)
I then clicked the Modify button and let Visual Studio installer add this
assembly.
Upon reopening my project and building it, it works.
I'm somewhat new to WinUI3 development, so I appreciate the nudge in the
right direction!
…On Wed, Oct 9, 2024 at 6:38 PM Arlo ***@***.***> wrote:
@corykroll <https://github.com/corykroll> Have you updated your TFM and
WindowsSdkPackageVersion to use v8.1 of the Community Toolkit? See Important
Changes
<https://devblogs.microsoft.com/ifdef-windows/announcing-windows-community-toolkit-v8-1/#important-changes>
in our release notes and this issue thread
<#489 (comment)>
for details.
—
Reply to this email directly, view it on GitHub
<#527 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5N7QJNAMXNTEICTMZFDPLZ2W5A3AVCNFSM6AAAAABPQY4FE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGYZDGMZYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I've downloaded NuGet package
CommunityToolkit.WinUI.Controls.CameraPreview 8.1.240916
I then go into my XAML and try to add
xmlns:winuicontrols="using:CommunityToolkit.WinUI.Controls"
and it says undefined namespace
Reverting back to NuGet version 8.0.240109 fixes the issue.
Steps to reproduce
Expected behavior
The namespace would be accepted and I can add the CameraPreview widget into my XAML
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.11.4
Device form factor
Desktop
Additional context
No response
Help us help you
No, I'm unable to contribute a solution.
The text was updated successfully, but these errors were encountered: