Skip to content

Commit

Permalink
Update Directory.Build.targets
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-edmondson committed Jun 3, 2024
1 parent cba1905 commit eb9b9b1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<PropertyGroup>
<IsPrerelease Condition="$(Version.Contains('-'))">True</IsPrerelease>
<IsExecutable Condition="$(OutputType) == 'exe'">True</IsExecutable>
<IsTest Condition="$(IsTestProject) == true">True</IsTest>
Expand All @@ -8,14 +8,12 @@
</PropertyGroup>

<PropertyGroup Condition="$(IsTest) != true">
<RootNamespace>$(NamespacePrefix).$(NamespaceSuffix)</RootNamespace>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<AnalysisLevel>latest-all</AnalysisLevel>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="$(IsTest) == true">
<RootNamespace>Test</RootNamespace>
<AnalysisLevel>latest</AnalysisLevel>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;CA2225;</NoWarn>
Expand All @@ -36,15 +34,6 @@
<AnalysisLevel>latest-recommended</AnalysisLevel>
</PropertyGroup>

<PropertyGroup>
<AssemblyName>$(RootNamespace)</AssemblyName>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="$(RootNamespace).Test" />
<InternalsVisibleTo Include="Test" />
</ItemGroup>

<ItemGroup Condition="$(IsTest) != true">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
<InternalsVisibleTo Include="$(RootNamespace).Test" />
Expand Down

0 comments on commit eb9b9b1

Please sign in to comment.