gwbvipvip 10 месяцев назад
Сommit
8ee49b11da
19 измененных файлов: 396 добавлений и 0 удалений
  1. +25
    -0
      BPA.KitChen.StoreManagement.sln
  2. +9
    -0
      BPA.KitChen.StoreManagement/BPA.KitChen.StoreManagement.csproj
  3. +33
    -0
      BPA.KitChen.StoreManagement/Controllers/WeatherForecastController.cs
  4. +17
    -0
      BPA.KitChen.StoreManagement/Program.cs
  5. +31
    -0
      BPA.KitChen.StoreManagement/Properties/launchSettings.json
  6. +13
    -0
      BPA.KitChen.StoreManagement/WeatherForecast.cs
  7. +8
    -0
      BPA.KitChen.StoreManagement/appsettings.Development.json
  8. +9
    -0
      BPA.KitChen.StoreManagement/appsettings.json
  9. +71
    -0
      BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.dgspec.json
  10. +16
    -0
      BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.props
  11. +2
    -0
      BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.targets
  12. +4
    -0
      BPA.KitChen.StoreManagement/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
  13. +23
    -0
      BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.AssemblyInfo.cs
  14. +1
    -0
      BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.AssemblyInfoInputs.cache
  15. +17
    -0
      BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.GeneratedMSBuildEditorConfig.editorconfig
  16. +17
    -0
      BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.GlobalUsings.g.cs
  17. Двоичные данные
     
  18. +85
    -0
      BPA.KitChen.StoreManagement/obj/project.assets.json
  19. +15
    -0
      BPA.KitChen.StoreManagement/obj/project.nuget.cache

+ 25
- 0
BPA.KitChen.StoreManagement.sln Просмотреть файл

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.KitChen.StoreManagement", "BPA.KitChen.StoreManagement\BPA.KitChen.StoreManagement.csproj", "{0D9FD118-54D6-4969-BCC4-B4838BDAE886}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0D9FD118-54D6-4969-BCC4-B4838BDAE886}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0D9FD118-54D6-4969-BCC4-B4838BDAE886}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0D9FD118-54D6-4969-BCC4-B4838BDAE886}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D9FD118-54D6-4969-BCC4-B4838BDAE886}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D04197CA-CC73-484D-96BD-9F5FE718A1F5}
EndGlobalSection
EndGlobal

+ 9
- 0
BPA.KitChen.StoreManagement/BPA.KitChen.StoreManagement.csproj Просмотреть файл

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

</Project>

+ 33
- 0
BPA.KitChen.StoreManagement/Controllers/WeatherForecastController.cs Просмотреть файл

@@ -0,0 +1,33 @@
using Microsoft.AspNetCore.Mvc;

namespace BPA.KitChen.StoreManagement.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};

private readonly ILogger<WeatherForecastController> _logger;

public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}

[HttpGet]
public IEnumerable<WeatherForecast> Get()
{
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
{
Date = DateTime.Now.AddDays(index),
TemperatureC = Random.Shared.Next(-20, 55),
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
})
.ToArray();
}
}
}

+ 17
- 0
BPA.KitChen.StoreManagement/Program.cs Просмотреть файл

@@ -0,0 +1,17 @@
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.

builder.Services.AddControllers();

var app = builder.Build();

// Configure the HTTP request pipeline.

app.UseHttpsRedirection();

app.UseAuthorization();

app.MapControllers();

app.Run();

+ 31
- 0
BPA.KitChen.StoreManagement/Properties/launchSettings.json Просмотреть файл

@@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:9922",
"sslPort": 44371
}
},
"profiles": {
"BPA.KitChen.StoreManagement": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "weatherforecast",
"applicationUrl": "https://localhost:7131;http://localhost:5248",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

+ 13
- 0
BPA.KitChen.StoreManagement/WeatherForecast.cs Просмотреть файл

@@ -0,0 +1,13 @@
namespace BPA.KitChen.StoreManagement
{
public class WeatherForecast
{
public DateTime Date { get; set; }

public int TemperatureC { get; set; }

public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

public string? Summary { get; set; }
}
}

+ 8
- 0
BPA.KitChen.StoreManagement/appsettings.Development.json Просмотреть файл

@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}

+ 9
- 0
BPA.KitChen.StoreManagement/appsettings.json Просмотреть файл

@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

+ 71
- 0
BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.dgspec.json Просмотреть файл

@@ -0,0 +1,71 @@
{
"format": 1,
"restore": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj": {}
},
"projects": {
"D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"projectName": "BPA.KitChen.StoreManagement",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

+ 16
- 0
BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.props Просмотреть файл

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\gwbvi\.nuget\packages\;E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\gwbvi\.nuget\packages\" />
<SourceRoot Include="E:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

+ 2
- 0
BPA.KitChen.StoreManagement/obj/BPA.KitChen.StoreManagement.csproj.nuget.g.targets Просмотреть файл

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

+ 4
- 0
BPA.KitChen.StoreManagement/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs Просмотреть файл

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

+ 23
- 0
BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.AssemblyInfo.cs Просмотреть файл

@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("BPA.KitChen.StoreManagement")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("BPA.KitChen.StoreManagement")]
[assembly: System.Reflection.AssemblyTitleAttribute("BPA.KitChen.StoreManagement")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// 由 MSBuild WriteCodeFragment 类生成。


+ 1
- 0
BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.AssemblyInfoInputs.cache Просмотреть файл

@@ -0,0 +1 @@
51577280f4c201399bb811e0afbf6b91b54df8e1

+ 17
- 0
BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.GeneratedMSBuildEditorConfig.editorconfig Просмотреть файл

@@ -0,0 +1,17 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb = true
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = BPA.KitChen.StoreManagement
build_property.RootNamespace = BPA.KitChen.StoreManagement
build_property.ProjectDir = D:\Work\BPA.KitChen.StoreManagement\BPA.KitChen.StoreManagement\
build_property.RazorLangVersion = 6.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = D:\Work\BPA.KitChen.StoreManagement\BPA.KitChen.StoreManagement
build_property._RazorSourceGeneratorDebug =

+ 17
- 0
BPA.KitChen.StoreManagement/obj/Debug/net6.0/BPA.KitChen.StoreManagement.GlobalUsings.g.cs Просмотреть файл

@@ -0,0 +1,17 @@
// <auto-generated/>
global using global::Microsoft.AspNetCore.Builder;
global using global::Microsoft.AspNetCore.Hosting;
global using global::Microsoft.AspNetCore.Http;
global using global::Microsoft.AspNetCore.Routing;
global using global::Microsoft.Extensions.Configuration;
global using global::Microsoft.Extensions.DependencyInjection;
global using global::Microsoft.Extensions.Hosting;
global using global::Microsoft.Extensions.Logging;
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Net.Http.Json;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Двоичные данные
Просмотреть файл


+ 85
- 0
BPA.KitChen.StoreManagement/obj/project.assets.json Просмотреть файл

@@ -0,0 +1,85 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\gwbvi\\.nuget\\packages\\": {},
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"projectName": "BPA.KitChen.StoreManagement",
"projectPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"packagesPath": "C:\\Users\\gwbvi\\.nuget\\packages\\",
"outputPath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"E:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\gwbvi\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"http://10.2.1.25:10243/repository/bpa/index.json": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

+ 15
- 0
BPA.KitChen.StoreManagement/obj/project.nuget.cache Просмотреть файл

@@ -0,0 +1,15 @@
{
"version": 2,
"dgSpecHash": "SoeraJ77O50s3sC8sOYlnFRF0Uwg9mGVdJhpGJkvt8FYKUDEtuPTu0eZeBcktwEdFdBDAOiSLFitpXtvaryV6w==",
"success": true,
"projectFilePath": "D:\\Work\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement\\BPA.KitChen.StoreManagement.csproj",
"expectedPackageFiles": [],
"logs": [
{
"code": "NU1803",
"level": "Warning",
"warningLevel": 1,
"message": "正在通过 “HTTP” 源“http://10.2.1.25:10243/repository/bpa/index.json”运行“restore”操作。将来的版本中将删除非 HTTPS 访问权限。请考虑迁移到 “HTTPS” 源。"
}
]
}

Загрузка…
Отмена
Сохранить