Skip to content

Commit c8c6644

Browse files
committed
Enable ImplicitUsings via Directory.props
1 parent ca3e0b5 commit c8c6644

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

oss.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@
5656
doc.Root?.Element("PropertyGroup")?.Element("IsPackable")?.Remove();
5757
doc.Save($"src/Tests/Tests.csproj");
5858

59+
File.WriteAllText($"src/Directory.props",
60+
"""
61+
<Project>
62+
<PropertyGroup>
63+
<ImplicitUsings>true</ImplicitUsings>
64+
</PropertyGroup>
65+
</Project>
66+
""");
67+
5968
await RunDotNet($"new solution -n {projectName}", $"Creating solution {projectName}.slnx");
6069
await RunDotNet($"sln {projectName}.slnx add --in-root src/{projectName}/{projectName}.csproj src/Tests/Tests.csproj", $"Adding projects to {projectName}.slnx");
6170

0 commit comments

Comments
 (0)