Skip to content

Commit cfb99b3

Browse files
committed
Adds License and Description
Adds licence and description to nuget package, also uses Directory.Build.props to handle all the common shared fsproj configs
1 parent 27b0af7 commit cfb99b3

File tree

6 files changed

+36
-29
lines changed

6 files changed

+36
-29
lines changed

src/Directory.Build.props

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project>
2+
<!-- <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> -->
3+
4+
<PropertyGroup>
5+
<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>
6+
<PackageLicenseFile>License</PackageLicenseFile>
7+
</PropertyGroup>
8+
<ItemGroup>
9+
<None Include="$(MSBuildThisFileDirectory)..\License" Pack="true" PackagePath=""/>
10+
</ItemGroup>
11+
12+
<PropertyGroup>
13+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
14+
<IsPackable>true</IsPackable>
15+
<IsTestProject>false</IsTestProject>
16+
<!-- Sourcelink -->
17+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
18+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
19+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
20+
</PropertyGroup>
21+
22+
<PropertyGroup>
23+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
24+
<WarningsAsErrors />
25+
<NoWarn>FS2003</NoWarn>
26+
</PropertyGroup>
27+
</Project>

src/FsToolkit.ErrorHandling.JobResult/FsToolkit.ErrorHandling.JobResult.fsproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
<OutputType>Library</OutputType>
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<DebugType>portable</DebugType>
7-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
8-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
9-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
11-
</PropertyGroup>
12-
13-
<PropertyGroup>
14-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
15-
<WarningsAsErrors />
16-
<NoWarn>FS2003</NoWarn>
177
</PropertyGroup>
188

199
<ItemGroup>

src/FsToolkit.ErrorHandling.TaskResult/FsToolkit.ErrorHandling.TaskResult.fsproj

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,8 @@
44
<OutputType>Library</OutputType>
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<DebugType>portable</DebugType>
7-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
8-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
9-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
117
</PropertyGroup>
128

13-
<PropertyGroup>
14-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
15-
<WarningsAsErrors />
16-
<NoWarn>FS2003</NoWarn>
17-
</PropertyGroup>
189

1910
<ItemGroup>
2011
<Compile Include="Result.fs" />

src/FsToolkit.ErrorHandling/FsToolkit.ErrorHandling.fsproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<LangVersion>preview</LangVersion>
77
<DebugType>portable</DebugType>
8-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
9-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
10-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
11-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
12-
</PropertyGroup>
13-
14-
<PropertyGroup>
15-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
16-
<WarningsAsErrors />
17-
<NoWarn>FS2003</NoWarn>
188
</PropertyGroup>
199

2010

tests/Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<!-- <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> -->
3+
<PropertyGroup>
4+
<IsPackable>false</IsPackable>
5+
<IsTestProject>true</IsTestProject>
6+
</PropertyGroup>
7+
</Project>

tools/FunctionMap/FunctionMap.fsproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net5.0</TargetFramework>
6+
<IsPackable>false</IsPackable>
7+
<IsTestProject>false</IsTestProject>
68
</PropertyGroup>
79

810
<ItemGroup>

0 commit comments

Comments
 (0)