You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Need to do an msbuild restore in order to be able to build the WindowsCommunityToolkit solution #3012
Clone the latest version of the repo and try to build the solution.
A lot of restore errors in the output. (NuGet Warning NU1503)
Use dotnet restore and it's still the same.
Expected behavior
The solution is building without restore errors.
Workaround
To build the target, use msbuild to restore :
Open the Command Window a.k.a Developer Command Prompt for VS.
(Windows 10) In the search box on the taskbar, start typing the name of the tool, such as dev or developer command prompt.
Navigate to the root folder of your solution.
Use the >msbuild /restore command
Launch your solution
Environment
Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [x] May 2019 Update (18362)
- [ ] Insider Build (build number: )
App min and target version:
- [x] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)
Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [x] 2017 (version: 15.9.8)
- [ ] 2019 (version: )
- [x] 2019 Preview (version: 16.0.0.0 Preview 4.3)
@agneszitte-nventive did you have success building the project?
Because i'm in a similar situation, W10 1903, all VSinstaller packages installed (lol), i cloned the repo and, before reading this post, i opened it in visual studio and strange errors like this appear.
After i tried to restore with msbuild /restore andseveral errors have appeared
stuck at this point, i want to try out this sample app. It seems a good strarting point for every type of windows uwp
@dj-fiorex we've had success with these instructions. Can you provide more details on the steps you took starting from cloning the repo? And what VS version do you have installed?
@dj-fiorex@chan18 sorry for the delay on this, the NuGet team was able to help us find a workaround to NuGet/Home#8388. Can you try re-cloning and running from just in VS 2019 and see if you're able to build now? If not, please let us know. Thanks!
Activity
agneszitte commentedon Sep 19, 2019
@michael-hawker
michael-hawker commentedon Sep 19, 2019
Thanks @agneszitte-nventive!
@onovotny did we hear back from VS on this? Is there another item we can attach this to in a GitHub repo somewhere atm?
dj-fiorex commentedon Oct 2, 2019
@agneszitte-nventive did you have success building the project?

Because i'm in a similar situation, W10 1903, all VSinstaller packages installed (lol), i cloned the repo and, before reading this post, i opened it in visual studio and strange errors like this appear.
After i tried to restore with msbuild /restore andseveral errors have appeared
stuck at this point, i want to try out this sample app. It seems a good strarting point for every type of windows uwp
Thanks
michael-hawker commentedon Oct 7, 2019
@dj-fiorex we've had success with these instructions. Can you provide more details on the steps you took starting from cloning the repo? And what VS version do you have installed?
chan18 commentedon Oct 29, 2019
@michael-hawker, I got the same errors has @dj-fiorex ,
>msbuild /restore commandin Developer Command Prompt for VSmsbuild /restore
Errors
WindowsCommunityToolKitMsbuildRestoreLog.txt
michael-hawker commentedon Oct 29, 2019
@azchohfi @onovotny looks like it's complaining on some build command in a few places, E.g.:
Any ideas?
@dj-fiorex @chan18 to confirm do you have the release build .NET Core 3 installed?
chan18 commentedon Oct 29, 2019
michael-hawker commentedon Nov 18, 2019
Tagging to NuGet/Home#8388
Fixes #3012 working around NuGet/Home#8388
Merge pull request #3084 from windows-toolkit/mhawker/fix-vs2019-build
michael-hawker commentedon Dec 24, 2019
@dj-fiorex @chan18 sorry for the delay on this, the NuGet team was able to help us find a workaround to NuGet/Home#8388. Can you try re-cloning and running from just in VS 2019 and see if you're able to build now? If not, please let us know. Thanks!