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
- Create a new .NET MAUI app
- Edit the project file
- Update
ApplicationTitle,ApplicationDisplayVersion,ColorofMauiSplashScreen
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
- [singleproject] fix changing $(ApplicationDisplayVersion) inside VS Fixes: https://github.com/dotnet/maui/issues/3690 Fixes: https://github.com/dotnet/maui/issues/6626 Changing `$(ApplicationDisplay... — committed to jonathanpeppers/maui by jonathanpeppers 2 years ago
- [singleproject] fix changing $(ApplicationDisplayVersion) inside VS (#6628) Fixes: https://github.com/dotnet/maui/issues/3690 Fixes: https://github.com/dotnet/maui/issues/6626 Changing `$(Applicatio... — committed to dotnet/maui by jonathanpeppers 2 years ago
@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.