GeezerVison is showing github.com — 设置端口 · ISmallCode/SmallCode.Web@10fb690
File tree
Expand file treeCollapse file tree
Open diff view settings
Properties/PublishProfiles
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/SmallCode.Web/Program.cs +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -16,6 +16,7 @@ public static void Main(string[] args) |
16 | 16 | .UseContentRoot(Directory.GetCurrentDirectory()) |
17 | 17 | .UseIISIntegration() |
18 | 18 | .UseStartup<Startup>() |
| 19 | + .UseUrls("http://*:8000") |
19 | 20 | .Build(); |
20 | 21 |
|
21 | 22 | host.Run(); |
|
Collapse file
Copy file name to clipboard +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +[cmdletbinding(SupportsShouldProcess=$true)] |
| 2 | +param($publishProperties=@{}, $packOutput, $pubProfilePath) |
| 3 | + |
| 4 | +# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327 |
| 5 | + |
| 6 | +try{ |
| 7 | + if ($publishProperties['ProjectGuid'] -eq $null){ |
| 8 | + $publishProperties['ProjectGuid'] = 'a348e72f-ee15-4159-96ed-c2c56721daab' |
| 9 | + } |
| 10 | + |
| 11 | + $publishModulePath = Join-Path (Split-Path $MyInvocation.MyCommand.Path) 'publish-module.psm1' |
| 12 | + Import-Module $publishModulePath -DisableNameChecking -Force |
| 13 | + |
| 14 | + # call Publish-AspNet to perform the publish operation |
| 15 | + Publish-AspNet -publishProperties $publishProperties -packOutput $packOutput -pubProfilePath $pubProfilePath |
| 16 | +} |
| 17 | +catch{ |
| 18 | + "An error occurred during publish.`n{0}" -f $_.Exception.Message | Write-Error |
| 19 | +} |
Collapse file
Copy file name to clipboard +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- |
| 3 | +您 Web 项目的发布/打包进程将使用此文件。您可以通过编辑此 MSBuild 文件 |
| 4 | +来自定义该进程的行为。若要了解与此相关的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkID=208121。 |
| 5 | +--> |
| 6 | +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 7 | + <PropertyGroup> |
| 8 | + <WebPublishMethod>FileSystem</WebPublishMethod> |
| 9 | + <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
| 10 | + <LastUsedPlatform>Any CPU</LastUsedPlatform> |
| 11 | + <SiteUrlToLaunchAfterPublish /> |
| 12 | + <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> |
| 13 | + <ExcludeApp_Data>False</ExcludeApp_Data> |
| 14 | + <PublishFramework /> |
| 15 | + <UsePowerShell>True</UsePowerShell> |
| 16 | + <publishUrl>D:\publish</publishUrl> |
| 17 | + <DeleteExistingFiles>False</DeleteExistingFiles> |
| 18 | + </PropertyGroup> |
| 19 | +</Project> |