.NET Core publish to IIS

① Right Project -> Properties

 

 

 The resulting configuration is Release

② Right Project -> Rebuild

③ prompt generation is successful, the project right -> Publish

 

 

 Click New -> 

 

 

 This step can select the file system, you can also choose IIS FT

 

 With IIS / FTP, for example (folder easier, the default is to generate the bin directory under the project directory), where the need to select a file system, and then specify a directory file generated by the release

Next ->

 

 Select an item corresponding to the target framework version of the SDK, will look for the database connection string options that you define in appsettings.json file,

EF can be applied to any migration, it can directly copy

OK to save !!!

Then come back point release, issued a document to start writing, after the completion of open IIS (open IIS service, you can Baidu)

 

 

Right select Add Site

 

 

 1. Fill a site name

2. Select the file directory just created publication

3. Connect to select a specific user, fill in the current user name and password for the computer (you can click the right side of the test setup, to see if the setting is successful)

4. Identify, build a successful website

 

 

 

 

 Application connection pool, selecting the corresponding item just created site -> right -> Basic Set-eject box select [managed code None] 

OK publishing success, to ensure that the update settings, you can restart the application connection pooling, and the new website will be finished to a browser to visit the site!

 

Guess you like

Origin www.cnblogs.com/gloryhope/p/11535878.html