Replies: 4 comments 5 replies
-
What do things look like under your VS > Options > NuGet Package Manager > General & Package Sources settings? What does your .csproj look like? Is logging into Windows and/or VS causing some settings and/or roaming files to be reinstated after the 'clean builds'? Are you able to automatically download other packages fine or could there be a firewall issue? Have you tried the single project option? https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/single-project-msix?tabs=csharp |
Beta Was this translation helpful? Give feedback.
-
@kmgallahan , I'm just running the wizard that gets installed as part of the WindowsAppSDK.Cs.Extension.Dev17.Standalone.vsix. There doesn't seem to be a version with no install package project included. I can share by project if that would help (GitHub or zip if you prefer). Here is a document of screenshots the wizard and my .csproj file. I'm doing nothing more than running the wizard and trying to build, run, or debug. Nothing else. I've done no other config. Just whatever that wizard does. I'm sure there is some roaming profile going on, but I also tried it in a VM that is not on a corp net. Happens no matter the machine or VM config. Even a bare bones VM with Win 11 and VS 2022. |
Beta Was this translation helpful? Give feedback.
-
same to me. see in dependencies , you'lll be find a warning that windowsappsdk can't find by default path . I just try add nuget source, and install windowsappsdk again, every things sees well. |
Beta Was this translation helpful? Give feedback.
-
Are these machines behind a firewall/proxy/country that could be blocking access to https://api.nuget.org/v3/index.json? I tested this scenario in a brand new VM and it seems to work fine. I recorded a video that shows start to finish as well. See below. start_to_finish.mp4/rafael |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried this on multiple Windows 11 machines, and I can't seem to get it to work. I install the stable SDK from the docs site. That seems to go well. I create a new WinUI C# app in Visual Studio 2022 after that and it creates the project simply fine. But I cannot run, debug, or build the app. I've added nothing so far. Just what the wizard did.
I've tried this on my Surface Laptop, my custom-built desktop (Ryzen 9 based), and various VMs configs. Nothing seems to work, and I just can't find any help online.
Attaching a screenshot of what I see. I'm able to create other C# Windows apps fine (WinForms, UWP). When I try a WinUI app it always just generates a ton of offline package messages (including Microsoft.WIndowsAppSDK, Microsoft.NETCore.app.Runtime.win-x64, etc.).
I pretty much did a full install of VS2022 Enterprise of latest versions of things (newer, not older SDKs and such). Again, I've searched and searched and can't find any help. I've done multiple clean builds of my machines and VMs to test things and nothing seems to help. I've tried ensuring the NuGet packages are all there and OK, and they are.
Beta Was this translation helpful? Give feedback.
All reactions