Summarize local PDF, Word, and plain text files via a new DocumentService (PdfPig + DocumentFormat.OpenXml), and add a Custom summary mode that uses the user's own instructions as the system prompt. Update the console UI, transcript saving, and README to match. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
1.7 KiB
XML
39 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<RootNamespace>YoutubeSummarizer</RootNamespace>
|
|
<AssemblyName>YoutubeSummarizer</AssemblyName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="appsettings.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- OpenAI .NET SDK (official) -->
|
|
<PackageReference Include="DocumentFormat.OpenXml" Version="3.5.1" />
|
|
<PackageReference Include="OpenAI" Version="2.1.0" />
|
|
|
|
<!-- Microsoft.Extensions for config/DI patterns without full host overhead -->
|
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="10.0.0" />
|
|
<!-- Binder provides the .Bind(object) extension method on IConfiguration -->
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
|
|
<!-- Http provides AddHttpClient() / IHttpClientFactory -->
|
|
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
|
|
<PackageReference Include="PdfPig" Version="0.1.16" />
|
|
|
|
<!-- Polly for resilient HTTP retry logic -->
|
|
<PackageReference Include="Polly" Version="8.4.1" />
|
|
<PackageReference Include="Spectre.Console" Version="0.57.2" />
|
|
</ItemGroup>
|
|
|
|
</Project> |