-
Notifications
You must be signed in to change notification settings - Fork 229
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
Issue with nuget restore (Unable to load the service index for source ...Reunion.nuget.internal/nuget/v3/index.json) #385
Comments
Looks like someone left a reference to the internal Microsoft Nuget packages (not the public packages). As soon as I opened one of the solutions, it popped a credential dialog to log in to |
Are these packages available from another source? How would I go about changing it? |
Is there a workaround? Is there a known-good commit? This is a terrible first experience with the Windows App SDK. |
I find getting started with development for win very confusing. are these the samples that are up to date? or am i looking at something that's been deprecated? and there are a million different entry points, win32, forms, wpf, uwp, app sdk, winui, maui, blazor, webview2 / react native for windows, windows-rs, oh and by the way here's I was looking at PowerToys, but it kind of seems like a hodgepodge of different project setups... no clue what style I should be working towards. Still getting the same error when trying to restore packages for the latest updated sample (👋 @SreejaBhattacharya-MSFT) PS C:\dev\!tmp\WindowsAppSDK-Samples\Samples\Input\cs-winui> dotnet restore
C:\dev\!tmp\WindowsAppSDK-Samples\Samples\Input\cs-winui\Input.csproj : error NU1301: Unable to load the service index for source https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json.
Restore failed with 1 error(s) in 8.5s |
The project can be easily run by removing this line in "WindowsAppSDK-Samples/Samples/nuget.config". --<add key="ProjectReunion internal" value="https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json" /> |
Ok, so I removed the line, tried to build and received this: Pressing 04:15:33 ~\Downloads
7ms & '.\windowsappruntimeinstall-x64 (1).exe'
INFO: Provisioning of WindowsAppSDK packages will be skipped as it requires elevation.
Installing license: MSIX_MAINPACKAGE_LICENSE
Install License result : 0x0
Installing license: MSIX_SINGLETONPACKAGE_LICENSE
Install License result : 0x0
All install operations successful. Ahhok, I have no goddamn clue what it means, but I rerun it in an elevated shell... Right, let's build that sample, everything's good to go, right? Ofc, same error 🥲 I mean sure, the dialog mentions v1.5, but don't link me to v1.6 then? So off I go and download Ok, after googling, nuke Receive same Windows App SDK Runtime error... proceed to download and install every goddamn runtime I can find from v1.4 -> v1.6. Same error. Notice an option to Ok thanks for upgrading to a version that's not supported? I mean I understand that it's a skill issue but come one... does it have to be like this? Edit <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.26100</TargetFramework>
<WindowsSdkPackageVersion>10.0.26100.45</WindowsSdkPackageVersion>
<UseWindowsForms>true</UseWindowsForms>
<Platforms>x86;x64;ARM64</Platforms>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<WindowsPackageType>None</WindowsPackageType>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<EnableMsixTooling>true</EnableMsixTooling>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240829007" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />
</ItemGroup>
</Project> Managed to find the TargetFramework version to use by checking >MrtCore.PriGen.targets(914,5): Error MSB4062 : The "Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent" task could not be loaded from the assembly C:\Program Files\dotnet\sdk\9.0.100-rc.1.24452.12\Microsoft\VisualStudio\v17.0\AppxPackage\\Microsoft.Build.Packaging.Pri.Tasks.dll. Could not load file or assembly 'C:\Program Files\dotnet\sdk\9.0.100-rc.1.24452.12\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.Build.Packaging.Pri.Tasks.dll'. The system cannot find the path specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
0>------- Finished building project: winforms_unpackaged_app. Succeeded: False. Errors: 1. Warnings: 15 and without Severity Code Description Project File Line Suppression State Details
Error (active) This version of the Windows App SDK requires Microsoft.Windows.SDK.NET.Ref 10.0.26100.38 or later.
Please update to .NET SDK 6.0.134, 6.0.426, 8.0.109, 8.0.305 or 8.0.402 (or later).
Or add a temporary Microsoft.Windows.SDK.NET.Ref reference which can be added with:
<PropertyGroup>
<WindowsSdkPackageVersion>10.0.26100.38</WindowsSdkPackageVersion>
</PropertyGroup>
winforms_unpackaged_app C:\Users\marpe\.nuget\packages\microsoft.windowsappsdk\1.6.240829007\buildTransitive\Microsoft.WindowsAppSDK.targets 76 Don't know what impact adding these properties have but ok, got the project to build. Click 1 button and poof, crashed without breaking on an exception or anything.
Making progress though 🎉 I guess this issue can be closed, but imho the |
@marpe You just needed to uncomment the line above see b73d7ba WindowsAppSDK-Samples/Samples/nuget.config Lines 12 to 16 in 9ffb709
|
I am receiving these errors when I try to build anything, and I don't know how to fix it.
The text was updated successfully, but these errors were encountered: