maui: [BUG] Error NETSDK1005 after changes in .csproj file

Description

I’ve created a new .NET MAUI app using the latest RC1 version. I’m opening the project file of the project and do some changes like chaing the ApplicationTitle or the ApplicationDisplayVersion. If I’m now also updating the Color of the MauiSplashScreen the app won’t build with the error NETSDK1005. Also undo the latest changes won’t fix the issue.

Steps to Reproduce

  1. Create a new .NET MAUI app
  2. Edit the project file
  3. Update ApplicationTitle, ApplicationDisplayVersion, Color of MauiSplashScreen

Version with bug

Release Candidate 1

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows, I was not able test on other platforms

Affected platform versions

Android 11, Windows 10.0.19041

Did you find any workaround?

Relevant log output

error NETSDK1005: Assets file '\obj\project.assets.json' doesn't have a target for 'net6.0-windows10.0.19041'. Ensure that restore has run and that you have included 'net6.0-windows10.0.19041' in the TargetFrameworks for your project.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@KiristonK did you already try setting $(ApplicationDisplayVersion) and $(Version) to the same value? I don’t see that in your screenshots.

The fix for this is not released yet.