Skip to content

Blank App (WinRT/C++) Can't add nuget package Microsoft.Toolkit.Uwp.UI.Controls #3704

@sudheer4596

Description

@sudheer4596

Describe the bug

When adding the nuget library Microsoft.Toolkit.Uwp.UI.Controls, the following error is displayed and the install fails:

Severity	Code	Description	Project	File	Line	Suppression State
Error		Could not install package 'Microsoft.Toolkit.Uwp.UI.Controls 6.1.1'. You are trying to install this package into a project that targets 'native,Version=v0.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Steps to Reproduce

In Visual Studio 2019 create a Blank App (C++/WinRT) project
Attempt to add the Microsoft.Toolkit.Uwp.Uwp.UI.Controls NuGet package. Add the latest 6.1.0 package.
Note Error message,

Expected behavior

The package should be added to the project without error.

Screenshots

image

Environment

NuGet Package(s): 
Microsoft.Toolkit.Uwp.UI.Controls

Package Version(s): 
6.1.1

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ x] May 2019 Update (18362)
- [ ] May 2020 Update (19041)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ x] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] May 2020 Update (19041)
- [ ] Insider Build (xxxxx)

Device form factor:
- [ x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [ x] 2019 (version: 16.8.3) 
- [ ] 2019 Preview (version: )

Additional context

Looks like this is related to the issue https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/3419

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions