CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.87k stars 1.37k forks source link

I cannot build the latest release version of UWP community toolkit #2341

Closed xiedongweo closed 6 years ago

xiedongweo commented 6 years ago

I'm submitting a...

Regression (a behavior that used to work and stopped working in a new release) -->

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

Environment

Nuget Package(s): 

Package Version(s): 

Windows 10 Build Number:
- [ ] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [ x] April 2018 Update (17134)
- [ ] Insider Build (build number: )

App min and target version:
- [ x] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] Insider Build (xxxxx)

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

Visual Studio 
- [x ] 2017 (version: enterprise, 15.7.1)
- [ ] 2017 Preview (version: )

When I build the whole solution, I got the errors:

Severity Code Description Project File Line Suppression State Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid is not compatible with net452 (.NETFramework,Version=v4.5.2) / win-x86. Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls is not compatible with net452 (.NETFramework,Version=v4.5.2) / win-x64. Project Microsoft.Toolkit.Uwp.UI.Controls supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid is not compatible with net452 (.NETFramework,Version=v4.5.2) / win. Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls is not compatible with net452 (.NETFramework,Version=v4.5.2). Project Microsoft.Toolkit.Uwp.UI.Controls supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid is not compatible with net452 (.NETFramework,Version=v4.5.2) / win-x64. Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid is not compatible with net452 (.NETFramework,Version=v4.5.2). Project Microsoft.Toolkit.Uwp.UI.Controls.DataGrid supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls is not compatible with net452 (.NETFramework,Version=v4.5.2) / win-x86. Project Microsoft.Toolkit.Uwp.UI.Controls supports: uap10.0 (UAP,Version=v10.0)
Error NU1201 Project Microsoft.Toolkit.Uwp.UI.Controls is not compatible with net452 (.NETFramework,Version=v4.5.2) / win. Project Microsoft.Toolkit.Uwp.UI.Controls supports: uap10.0 (UAP,Version=v10.0)

You could build the 'Microsoft.Toolkit.Uwp.SampleApp.csproj' to reproduce this issue.

kbrons commented 6 years ago

Hi @xiedongweo.

As detailed on #2047, this is a known issue in MSBuild and shouldn't affect successful building of the projects/solution and debugging the sample app. If you can't run the sample app or the build fails, make sure to update VS, have all the required dependencies installed and clean your local copy by running git clean -xfd (with VS closed).

Closing the issue.

xiedongweo commented 6 years ago

@kbrons Thank you.