Skip to content

Microsoft.Build.NoTargets creates outupt directories #278

@davidhunter22

Description

@davidhunter22

I created a new C# SDK solution and modified the .csproj to be

<Project Sdk="Microsoft.Build.NoTargets/3.1.0"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> </PropertyGroup> </Project>

I noticed that when I build an obj and a bin directory are still created. They contain various file including a obj\Debug\net6.0\ClassLibrary5.AssemblyInfo.cs. Note that nothing actually gets built as expected.
Is this expected, if I'm not building anything why create these directories and files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions