Skip to content

Building WinUIGallery.DesktopWap gives NETSDK1005 error #1147

Answered by marcelwgn
rcohn asked this question in Q&A
Discussion options

You must be logged in to vote

Solution found by @rcohn:

However, since my last comment, it seems I have found a solution. There were some suggestions in: https://stackoverflow.com/questions/56558843/local-source-of-nuget-packages-doesnt-exist, one of which helped:
dotnet new nugetconfig
followed by:
dotnet restore WinUIGallery.DesktopWap.csproj

So now I am able to build WinUIGallery.DesktopWap and publish it. The dotnet restore, by itself, did not work until I did the dotnet new command. For some reason project.assets.json had an empty "targets" field before the nuget commands. Now, "targets" is filled in and targeted to net6.0-windows10.0.18362.


Did you install the Windows App SDK extension? I also ran into an issue…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@marcelwgn
Comment options

@rcohn
Comment options

@marcelwgn
Comment options

@rcohn
Comment options

@marcelwgn
Comment options

Answer selected by rcohn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants