Skip to content

Commit

Permalink
add launchSettings.json
Browse files Browse the repository at this point in the history
  • Loading branch information
f2calv committed Sep 20, 2024
1 parent fb89df6 commit 8c8b76a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 37 deletions.
33 changes: 17 additions & 16 deletions CasCap.Apis.GooglePhotos.sln
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29009.5
# Visual Studio Version 17
VisualStudioVersion = 17.12.35309.182
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CasCap.Apis.GooglePhotos", "src\CasCap.Apis.GooglePhotos\CasCap.Apis.GooglePhotos.csproj", "{2A448BCC-84A1-4512-87B3-2685E40B75C4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CasCap.Apis.GooglePhotos.Tests", "src\CasCap.Apis.GooglePhotos.Tests\CasCap.Apis.GooglePhotos.Tests.csproj", "{943A9741-D29D-455F-917F-95FF428F80FD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{1FAD3270-948C-415D-9D2C-63D410E92476}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleApp", "samples\ConsoleApp\ConsoleApp.csproj", "{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericHost", "samples\GenericHost\GenericHost.csproj", "{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "samples\ConsoleApp\ConsoleApp.csproj", "{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -47,17 +47,6 @@ Global
{943A9741-D29D-455F-917F-95FF428F80FD}.Release|x64.Build.0 = Release|Any CPU
{943A9741-D29D-455F-917F-95FF428F80FD}.Release|x86.ActiveCfg = Release|Any CPU
{943A9741-D29D-455F-917F-95FF428F80FD}.Release|x86.Build.0 = Release|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Debug|x64.ActiveCfg = Debug|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Debug|x64.Build.0 = Debug|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Debug|x86.ActiveCfg = Debug|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Debug|x86.Build.0 = Debug|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Release|x64.ActiveCfg = Release|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Release|x64.Build.0 = Release|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Release|x86.ActiveCfg = Release|Any CPU
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA}.Release|x86.Build.0 = Release|Any CPU
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand All @@ -69,13 +58,25 @@ Global
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}.Release|x64.Build.0 = Release|Any CPU
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}.Release|x86.ActiveCfg = Release|Any CPU
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5}.Release|x86.Build.0 = Release|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Debug|x64.ActiveCfg = Debug|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Debug|x64.Build.0 = Debug|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Debug|x86.ActiveCfg = Debug|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Debug|x86.Build.0 = Debug|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Release|Any CPU.Build.0 = Release|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Release|x64.ActiveCfg = Release|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Release|x64.Build.0 = Release|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Release|x86.ActiveCfg = Release|Any CPU
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{2B5E1E09-BAAF-4D66-89BF-D80A1912B6CA} = {1FAD3270-948C-415D-9D2C-63D410E92476}
{A6C54B65-6A2D-4BA9-8A11-6097CC351DA5} = {1FAD3270-948C-415D-9D2C-63D410E92476}
{CACAD45C-8DAF-4E61-B6F3-1C911656DB9D} = {1FAD3270-948C-415D-9D2C-63D410E92476}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {315434A5-DC61-4070-8452-C6695E1B14E0}
Expand Down
26 changes: 5 additions & 21 deletions samples/GenericHost/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
namespace CasCap;
var builder = Host.CreateApplicationBuilder(args);

public class Program
{
static readonly string _environmentName = "Development";
builder.Services.AddGooglePhotos(builder.Configuration);
builder.Services.AddHostedService<MyBackgroundService>();

public static void Main(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseEnvironment(_environmentName)
.ConfigureAppConfiguration((hostContext, configBuilder) =>
{
configBuilder.AddJsonFile($"appsettings.json", optional: false, reloadOnChange: true);
configBuilder.AddJsonFile($"appsettings.{_environmentName}.json", optional: true, reloadOnChange: true);
if (hostContext.HostingEnvironment.IsDevelopment())
configBuilder.AddUserSecrets<Program>();
})
.ConfigureServices((hostContext, services) =>
{
services.AddGooglePhotos(hostContext.Configuration);
services.AddHostedService<MyBackgroundService>();
})
.Build().Run();
}
IHost host = builder.Build();
host.Run();
10 changes: 10 additions & 0 deletions samples/GenericHost/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"profiles": {
"GenericHost": {
"commandName": "Project",
"environmentVariables": {
"NETCORE_ENVIRONMENT": "Development"
}
}
}
}

0 comments on commit 8c8b76a

Please sign in to comment.