Skip to content

Commit

Permalink
fix(project): fix test project not generated with documentation comme…
Browse files Browse the repository at this point in the history
…nts disabled
  • Loading branch information
AdmiringWorm committed Jul 25, 2020
1 parent 35622ed commit be4119f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'!='Unix'">$(TargetFrameworks);net461</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591;SA1600</NoWarn>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'!='Unix'">$(TargetFrameworks);net461</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591;SA1600</NoWarn>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions __tests__/project/space/testProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'!='Unix'">$(TargetFrameworks);net461</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591;SA1600</NoWarn>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<%
let warnings = "$(NoWarn);CS1591;SA1600";
if (licenseType === "Unlicense" || licenseType === "WTFPL") {
warnings += ";SA1633";
}
%><Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'!='Unix'">$(TargetFrameworks);net461</TargetFrameworks>
<% if (licenseType === "Unlicense" || licenseType === "WTFPL") { -%>
<NoWarn>$(NoWarn);SA1633</NoWarn>
<% } %>
<NoWarn><%= warnings %></NoWarn>

<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down

0 comments on commit be4119f

Please sign in to comment.