I try to create a project for UWP but I get this error:
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- gactions CLI crashes on Windows when uploading goo
- 'System.Threading.ThreadAbortException' in
相关文章
- How to show location of errors, references to memb
- Windows - Android SDK manager not listing any plat
- How to create a MediaClip from RenderTargetBitmap
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Show flyout using BottomAppBar
- Copy different file to output directory for releas
Weirdly this error occurred for me when trying to create a new solution using a class library for the initial project. The library had the same name as the project. After deleting the two empty directories it managed to leave behind I changed the project type to a console app and it created the solution and console project just fine. I was then able to add the class library project with no issues.
It's always something!
Part of the problem can be solved by choosing an older sdk. Choose the second newest from here: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
I had to install Windows SDK 10.0.10586. (control panel -> visual studio -> modify -> sdk)
Installing newer versions of the SDK would just give the same error.
I install windows development kit and it worked. Thanks
Installing the latest SDK didn't help me either. The installer wouldn't complete, kept getting to 97% and then rolling back.
I had a whole load of MDMERGE errors like:
MDMERGE : error MDM2009: Duplicate type Windows.Networking.NetworkOperators.TetheringOperationalState found processing metadata file C:\Users\blah\AppData\Local\Temp\UnionWinmdWorkingFolder\26178\WinMDs\Windows.Networking.NetworkOperators.NetworkOperatorsTetheringContract.winmd, type already exists in file C:\Users\blah\AppData\Local\Temp\UnionWinmdWorkingFolder\26178\WinMDs\Windows.Foundation.UniversalApiContract.winmd.
To resolve this I deleted References in
C:\Program Files (x86)\Windows Kits\10
..and reinstalled. Seems like older kit installs are interfering with new kit installs.
I am using Visual Studio 2015, and have had the same error. Answers in this post gave me the idea to create console application.
I created a C++ Console application. While doing that, I was prompted with a dialog that allowed me to switch from console application to DLL. In addition, I chose a blank project. Once I performed those steps, the blank DLL project was created, and I did not get the Could not find a suitable SDK to target error.