We observed this issue in Send Email inline attachment sample.
This sample expected .Net 3.1 to be installed as this is the target framework for the sample. This is not mentioned in the Readme file as well.
https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/SendEmailAdvanced/SendEmailWithInlineAttachments
Below is the error when I was trying to run the VS code using .Net 9.0 and .Net 6.0.
