DocumentFile.Service/DocumentFile.Service.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DocumentFile.Service/Program.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DocumentFile.Service/Properties/PublishProfiles/FolderProfile.pubxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DocumentFile.Service/Properties/launchSettings.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DocumentFile.Service/DocumentFile.Service.csproj
@@ -4,7 +4,8 @@ <TargetFramework>net6.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <PlatformTarget>x64</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget> <IsPublishable>True</IsPublishable> </PropertyGroup> <ItemGroup> @@ -14,4 +15,12 @@ <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" /> </ItemGroup> <ItemGroup> <None Update="Properties\launchSettings.json"> <CopyToOutputDirectory>Never</CopyToOutputDirectory> <ExcludeFromSingleFile>true</ExcludeFromSingleFile> <CopyToPublishDirectory>Never</CopyToPublishDirectory> </None> </ItemGroup> </Project> DocumentFile.Service/Program.cs
@@ -37,11 +37,14 @@ var app = builder.Build(); // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { app.UseSwagger(); app.UseSwaggerUI(); } app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "V1 Docs"); c.RoutePrefix = string.Empty; c.DocExpansion(Swashbuckle.AspNetCore.SwaggerUI.DocExpansion.None); c.DefaultModelsExpandDepth(-1); }); app.UseHttpsRedirection(); DocumentFile.Service/Properties/PublishProfiles/FolderProfile.pubxml
New file @@ -0,0 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> <!-- https://go.microsoft.com/fwlink/?LinkID=208121. --> <Project> <PropertyGroup> <DeleteExistingFiles>true</DeleteExistingFiles> <ExcludeApp_Data>false</ExcludeApp_Data> <LaunchSiteAfterPublish>true</LaunchSiteAfterPublish> <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform> <PublishProvider>FileSystem</PublishProvider> <PublishUrl>bin\Debug\net6.0\publish\</PublishUrl> <WebPublishMethod>FileSystem</WebPublishMethod> <_TargetId>Folder</_TargetId> <SiteUrlToLaunchAfterPublish /> <TargetFramework>net6.0</TargetFramework> <RuntimeIdentifier>win-x64</RuntimeIdentifier> <ProjectGuid>f3449ef6-8e3f-492f-832f-f5f2e1f2503c</ProjectGuid> <SelfContained>false</SelfContained> </PropertyGroup> </Project> DocumentFile.Service/Properties/launchSettings.json
@@ -1,12 +1,31 @@ { "profiles": { "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "launchUrl": "http://localhost:54000/index.html", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "DocumentFile.Service": { "commandName": "Project", "launchBrowser": true, "launchUrl": "https://localhost:6001/index.html", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:52095;http://localhost:52096" "dotnetRunMessages": true, "applicationUrl": "https://localhost:6001;http://localhost:6000" } }, "$schema": "http://json.schemastore.org/launchsettings.json", "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:54000/", "sslPort": 0 } } }