You can try adding the following SQL script to the post-deployment script for your database project:
EXEC sys.sp_addextendedproperty
@name=N'MS_Description',
@value=N'Your database description goes here' ,
@level0type=N'SCHEMA',
@level0name=N'dbo',
@level1type=N'DATABASE',
@level1name=N'YourDatabaseName'
This script will add the MS_Description property to your database after each deployment. Make sure to replace "YourDatabaseName" with the actual name of your database.
By adding the script to the post-deployment script, you can ensure that the MS_Description property is set after each deployment and that it is not removed by the build script.
Please refer to this document:
https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes
You can post this issue to their feedback site. A fix may be available afterwards.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".