Add project files.
This commit is contained in:
21
paperless-ngx-export.terminal/TerminalProgram.cs
Normal file
21
paperless-ngx-export.terminal/TerminalProgram.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace paperless_ngx_export.terminal
|
||||
{
|
||||
internal class TerminalProgram
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
api.init("cfa320a52bec92cc7bef74415238ee000fc42a3c", "https://paperless.camcass.ca/api/");
|
||||
|
||||
var outputString = api.getExpirationDatesCalDAVAsync().Result;
|
||||
|
||||
using (var writer = new StreamWriter("Z:\\paperless_expirationdates.ics", false))
|
||||
{
|
||||
writer.Write(outputString);
|
||||
writer.Flush();
|
||||
writer.Close();
|
||||
}
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>paperless_ngx_export.terminal</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\paperless-ngx-export\paperless-ngx-export.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user