Skip to content

Commit 5c8c84e

Browse files
committed
Fixing nugets shitty decisions
1 parent 9ca1030 commit 5c8c84e

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<PropertyGroup>
3+
<DisableCheckingDuplicateNuGetItems>true</DisableCheckingDuplicateNuGetItems>
4+
<NoWarn>$(NoWarn);NU1504;NU1505;NU1701;FS2003</NoWarn>
5+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
<WarningsAsErrors />
7+
</PropertyGroup>
8+
</Project>

src/Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
2-
<!-- <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> -->
2+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
33

44
<PropertyGroup>
55
<Description>FsToolkit.ErrorHandling is a utility library to work with the Result type in F#, and allows you to do clear, simple and powerful error handling.</Description>
@@ -11,12 +11,11 @@
1111
</ItemGroup>
1212

1313
<PropertyGroup>
14-
<DisableCheckingDuplicateNuGetItems>true</DisableCheckingDuplicateNuGetItems>
14+
1515
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1616
<IsPackable>true</IsPackable>
1717
<IsTestProject>false</IsTestProject>
1818
<PackageReadmeFile>README.md</PackageReadmeFile> <!--https://docs.microsoft.com/en-gb/nuget/reference/msbuild-targets#packagereadmefile -->
19-
<NoWarn>$(NoWarn);NU1504;NU1505;NU1701</NoWarn>
2019
<!-- Sourcelink -->
2120
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2221
<EmbedUntrackedSources>true</EmbedUntrackedSources>

tests/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
2-
<!-- <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> -->
2+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
33
<PropertyGroup>
44
<IsPackable>false</IsPackable>
55
<IsTestProject>true</IsTestProject>
66
<GenerateProgramFile>false</GenerateProgramFile>
77
</PropertyGroup>
8-
</Project>
8+
</Project>

0 commit comments

Comments
 (0)