Hello @Michał 1064 ,
Thank you for taking time to post this issue in Microsoft Q&A forum.
I tested on my side, but I failed to reproduce your issue(Visual Studio 2019 Community). The .NET Core Console project worked well. I think this is an issue which is related to environment, extensions or VS IDE(under certain conditions).
There is a similar thread: Prevent VS from adding explicit compile tags to csproj and this issue has been reported in our Developer Community, please check this thread: Compile elements added to project file when EnableDefaultCompileItems was not set to false, and vote, add comments then follow that thread, if this is a potential issue, Visual Studio Product Team will help to fix it.
Feel free to contact us if you have any concern.
Best Regards,
Tianyu
- If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.