mirror of
https://github.com/spaytac/linkdingsync.git
synced 2026-01-21 16:54:45 +00:00
Merge pull request #4 from spaytac/3-unhandled-exception-systemiofilenotfoundexception-the-configuration-file-appsettingsjson-was-not-found-and-is-not-optional-the-expected-physical-path-was-appappsettingsjson
**fixed** debug setting was a part of the last commit. appsettings.js…
This commit is contained in:
commit
24899bfec3
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,4 +5,5 @@ riderModule.iml
|
|||||||
/_ReSharper.Caches/
|
/_ReSharper.Caches/
|
||||||
**/.env
|
**/.env
|
||||||
.env
|
.env
|
||||||
compose/
|
compose/
|
||||||
|
compose-test/
|
||||||
@ -1 +0,0 @@
|
|||||||
Linkding.Sync
|
|
||||||
@ -10,10 +10,12 @@ IHost host = Host.CreateDefaultBuilder(args)
|
|||||||
{
|
{
|
||||||
builder
|
builder
|
||||||
.AddEnvironmentVariables()
|
.AddEnvironmentVariables()
|
||||||
.AddCommandLine(args)
|
#if DEBUG
|
||||||
.AddJsonFile("appsettings.json")
|
.AddJsonFile("appsettings.json")
|
||||||
.AddJsonFile("appsettings.Development.json")
|
.AddJsonFile("appsettings.Development.json")
|
||||||
.AddUserSecrets<Program>(true);
|
#endif
|
||||||
|
.AddUserSecrets<Program>(true)
|
||||||
|
.AddCommandLine(args);
|
||||||
})
|
})
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,7 @@ public partial class WallabagService
|
|||||||
while (allQuery.QueryLinks.Next != null && !string.IsNullOrEmpty(allQuery.QueryLinks.Next.Href))
|
while (allQuery.QueryLinks.Next != null && !string.IsNullOrEmpty(allQuery.QueryLinks.Next.Href))
|
||||||
{
|
{
|
||||||
// url = allQuery.QueryLinks.Next.Href.Replace(_settings.Url, "");
|
// url = allQuery.QueryLinks.Next.Href.Replace(_settings.Url, "");
|
||||||
|
url = allQuery.QueryLinks.Next.Href;
|
||||||
if (_client.BaseAddress.Scheme == "https")
|
if (_client.BaseAddress.Scheme == "https")
|
||||||
{
|
{
|
||||||
url = allQuery.QueryLinks.Next.Href.Replace("http://", "https://");
|
url = allQuery.QueryLinks.Next.Href.Replace("http://", "https://");
|
||||||
|
|||||||
@ -11,10 +11,12 @@ IHost host = Host.CreateDefaultBuilder(args)
|
|||||||
{
|
{
|
||||||
builder
|
builder
|
||||||
.AddEnvironmentVariables()
|
.AddEnvironmentVariables()
|
||||||
.AddCommandLine(args)
|
#if DEBUG
|
||||||
.AddJsonFile("appsettings.json")
|
.AddJsonFile("appsettings.json")
|
||||||
.AddJsonFile("appsettings.Development.json")
|
.AddJsonFile("appsettings.Development.json")
|
||||||
.AddUserSecrets<Program>(true);
|
#endif
|
||||||
|
.AddUserSecrets<Program>(true)
|
||||||
|
.AddCommandLine(args);
|
||||||
})
|
})
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|||||||
@ -18,4 +18,13 @@
|
|||||||
<ProjectReference Include="..\Services\Linkding.Client\Linkding.Client.csproj" />
|
<ProjectReference Include="..\Services\Linkding.Client\Linkding.Client.csproj" />
|
||||||
<ProjectReference Include="..\Services\Wallabag.Client\Wallabag.Client.csproj" />
|
<ProjectReference Include="..\Services\Wallabag.Client\Wallabag.Client.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Update="appsettings.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Update="appsettings.Development.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user