kosh
kosh
Explore posts from servers
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
went with the Di approach and it's gif related
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
love you guys, thanks a lot
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
last and final question. when I deploy this, how will it know to look for a keyvault rather than my secrets
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
sorry
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
lol
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
alright I got it
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
C:\Users\jonat\AppData\Local\Microsoft C:\Users\jonat\AppData\Roaming\Microsoft I do not see a UserSecrets directory
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
alright sweet I see this here
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>356d59b2-7074-4347-8003-dc72d2bc3e57</UserSecretsId>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>356d59b2-7074-4347-8003-dc72d2bc3e57</UserSecretsId>
</PropertyGroup>
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
yeah I ran user-secrets init and I got a GUID back, which is good lol
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
specifically the UserSecrets directory
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
thanks for that. Reading the docs right now, but I currently don't see this directory/file. Do I need to create it? %APPDATA%\Microsoft\UserSecrets<user_secrets_id>\secrets.json
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
where else do I include the two connection strings then? one for local and one for the live server
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
oh god
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
I want to host this API once I get it all flushed out so that's why I was having a hard time wrapping my head aroundit all
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
that's where my confusion lies as well, how does it know between local/production environments
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
if I wanted to pull the value of my connstring from my appsettings.json, how would I do that within the .AddDataAccess method?
89 replies
CC#
Created by kosh on 2/17/2023 in #help
✅ Accessing the appsettings.json that resides in a ASP.NET Core 6 project from another project
honestly it's so tedious
89 replies