-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Windows] Upgrade Microsoft.Graphics.Win2D
from 1.2.0
to 1.3.2
to fix a build warning
#28885
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
base: main
Are you sure you want to change the base?
[Windows] Upgrade Microsoft.Graphics.Win2D
from 1.2.0
to 1.3.2
to fix a build warning
#28885
Conversation
Hey there @@MartyIX! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Ah. My bad. Thank you. Will change in a couple of hours. |
48a505a
to
7369a06
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@Sergio0694 Does the PR look OK to you please? |
@@ -38,6 +38,7 @@ | |||
<ItemGroup Condition=" $(TargetFramework.Contains('-windows')) "> | |||
<Compile Include="**\*.uwp.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> | |||
<Compile Include="**\*.uwp.*.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> | |||
<PackageReference Include="Microsoft.Web.WebView2" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need the webview2 here?
Is the webview required to update? Can we do it in a different PR to get better history.
Also, check all projects for references to win2d just in case the is a rogue explicit version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the webview required to update? Can we do it in a different PR to get better history.
It is not1 needed (AFAIK). So I reverted it.
Why do you need the webview2 here?
Well, a simple answer is that "without it, the compilation fails" with: src\Screenshot\Screenshot.uwp.cs(34,19): error CS0012: The type 'CoreWebView2' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Web.WebView2.Core.Projection, Version=1.0.2651.64, Culture=neutral, PublicKeyToken=2a8ab48044d2601e'.
So I added the WebView2 reference. I'm not sure if there is a better way to fix it.
Also, check all projects for references to win2d just in case the is a rogue explicit version.
I have just done it and I couldn't find anything wrong.
Footnotes
-
The original idea was that having two up-to-date dependencies feels like they might work together better. Just an idea. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just +1 to Matt's comment, why that new WebView2
package reference?
22eda3e
to
3312ca7
Compare
Without it, the |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
These warnings appear when one builds
Essentials.DeviceTests.csproj
(and other projects):(Full CI output)
Notice that the warnings mention WinAppSDK version
1.5
and not1.6
that is used by MAUI right now.It appears to be caused by using older version of
Microsoft.Graphics.Win2D
(i.e. 1.2.0 instead of the latest 1.3.2) -- see dependencies of 1.2.0. Version 1.3.2 requires WinAppSDK 1.6..Changelog for the library is available here: https://github.com/microsoft/Win2D/blob/winappsdk/main/CHANGELOG.md.