GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 设置端口 · ISmallCode/SmallCode.Web@10fb690

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/SmallCode.Web
    • Program.cs
    • Properties/PublishProfiles
      • local-publish.ps1
      • local.pubxml
      • publish-module.psm1
    • project.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/SmallCode.Web/Program.cs‎

Copy file name to clipboardExpand all lines: src/SmallCode.Web/Program.cs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static void Main(string[] args)
1616
.UseContentRoot(Directory.GetCurrentDirectory())
1717
.UseIISIntegration()
1818
.UseStartup<Startup>()
19+
.UseUrls("http://*:8000")
1920
.Build();
2021

2122
host.Run();
Collapse file

‎src/SmallCode.Web/Properties/PublishProfiles/local-publish.ps1‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

‎src/SmallCode.Web/Properties/PublishProfiles/local.pubxml‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.