Reputation: 1176
I have a C# .Net Core project and when I run this project the executable creates log file in it working directory which is same as project directory (where .csproj and other files are placed)
It is a rolling file, so every day it creates a new file with Date in the file name.
Problem is: Visual Studio adds this files into solution automatically:
How can I prevent this behavior? (This files are already in .tfignore file for TFVC but of course it has no impact on VS behavior).
UPDATE: I can exclude it from project manually but I don't like to do it every day.
Upvotes: 0
Views: 604
Reputation: 1176
I found solution:
<ItemGroup>
<None Remove="log*.txt" />
</ItemGroup>
Upvotes: 1