Skip to content

Commit

Permalink
Allow for Fsharp code to be included
Browse files Browse the repository at this point in the history
  • Loading branch information
9p4 committed Nov 5, 2024
1 parent b8e56ce commit 91c57b1
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions SSO-Auth/Api/SSOController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SSO_Auth.Lib;

namespace Jellyfin.Plugin.SSO_Auth.Api;

Expand Down
13 changes: 13 additions & 0 deletions SSO-Auth/Lib/Lib.fsproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>SSO_Auth</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<Compile Include="Library.fs" />
</ItemGroup>

</Project>
5 changes: 5 additions & 0 deletions SSO-Auth/Lib/Library.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace SSO_Auth.Lib

module Say =
let hello name =
printfn "Hello %s" name
4 changes: 4 additions & 0 deletions SSO-Auth/SSO-Auth.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="Lib\Lib.fsproj" />
</ItemGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91c57b1

Please sign in to comment.