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

Syntax error in Microsoft.WindowsAppSDK.targets #4790

Open
Davide244 opened this issue Oct 9, 2024 · 7 comments
Open

Syntax error in Microsoft.WindowsAppSDK.targets #4790

Davide244 opened this issue Oct 9, 2024 · 7 comments
Labels
area-DeveloperTools Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration needs-triage

Comments

@Davide244
Copy link

Davide244 commented Oct 9, 2024

Describe the bug

As of writing, 1.6.240923002 is the latest release. It is currently impossible to build new projects without editing the Microsoft.WindowsAppSDK.targets file directly, as it contains a syntax error. There is an inavlid extra "<" at Line 76.

It is possible that this is the same issue that #4784 roughly describes. Not sure about that though.

Steps to reproduce the bug

  1. Update any existing Windows App SDK project to 1.6.240923002; Alternatively, create a new project with that package version.
  2. Microsoft.WindowsAppSDK.targets fails to load.

Working workaround

  1. Go into the Microsoft.WindowsAppSDK.targets file
  2. Go to line 71
  3. Remove the extra '<' symbol. It should be marked as a syntax error.

Expected behavior

The syntax error should not exist.

Screenshots

Image

NuGet package version

Windows App SDK 1.6.1: 1.6.240923002

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

@manodasanW
Copy link
Member

Can you delete the restored winappsdk package in the nuget folder and see if you still see the extra < or not when it restores again. At least looking at the package on nuget.org (https://nuget.info/packages/Microsoft.WindowsAppSDK/1.6.240923002) and specifically at the target, I am not seeing the extra <.

Image

@Davide244
Copy link
Author

I do not know what causes it to appear. I have tested this on another, new development machine. It also appeared on that device. It is only there for the newest version of the package.

@RDMacLachlan RDMacLachlan added area-DeveloperTools Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration needs-author-feedback and removed needs-triage labels Oct 10, 2024
@RDMacLachlan
Copy link
Member

Have you tried the recommended steps outlined by @manodasanW ?

Can you delete the restored winappsdk package in the nuget folder and see if you still see the extra < or not when it restores again. At least looking at the package on nuget.org (https://nuget.info/packages/Microsoft.WindowsAppSDK/1.6.240923002) and specifically at the target, I am not seeing the extra <.

@Davide244
Copy link
Author

Yes, I have tried this. It did not make a difference. The extra symbol is always there. I recently installed the package on my laptop with no previous tooling. It was also there. It only exists when trying the mentioned version.

@RDMacLachlan
Copy link
Member

Did you clear your nuget cache, such as C:\Users\myacct.nuget\packages\microsoft.windowsappsdk?

@RDMacLachlan
Copy link
Member

If this is a C++ project, please also clear your solutions packages cache.

@Davide244
Copy link
Author

Clearing the NuGet cache seems to have fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DeveloperTools Issues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integration needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants