How do you publish a website with dotnet cli and upload to server?
See original GitHub issueWhat i mean is that before, when using dnx publish
it would create 3 folders, wwwroot, approot and logs. You then uploaded these 3 folders to your server, and pointing the IIS at the wwwroot folder that you just uploaded. Boom website running.
Now it seems to create a folder called publis in the following path MyProject\bin\Debug\net451\win7-x64
Now if i upload the contents of this folder, which consists of 3 folders called refs, Views, wwwroot and lots of dlls to my website, and point IIS at the wwwroot folder i uploaded. IIS doesnt work.
Part of my project.json file is as follows in my website project
"compilationOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"commands": {
"web": "My.Web.App"
},
"content": [
"wwwroot",
"Views"
],
"frameworks": {
"net451": {
"frameworkAssemblies": {
"System.ComponentModel": ""
}
}
},
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (13 by maintainers)
Top Results From Across the Web
How do you publish a website with dotnet cli and upload to ...
You then uploaded these 3 folders to your server, and pointing the IIS at the wwwroot folder that you just uploaded. Boom website...
Read more >dotnet publish command - .NET CLI
The dotnet publish command publishes a .NET project or solution to a directory.
Read more >Host and deploy ASP.NET Core
Deploy the published app to a folder on the hosting server. ... The dotnet publish command compiles app code and copies the files...
Read more >Publish a .NET console application using Visual Studio
Run the published app · In Solution Explorer, right-click the publish folder, and select Copy Full Path. · Open a command prompt and...
Read more >NET application publishing overview
.NET can publish platform-specific or cross-platform apps. You can publish an app as self-contained or as framework-dependent.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
^^^ warrior … wwwroot … stupid phone! 😄
@moozzyk STAR! I changed my IIS to point to the application, and not the wwwroot folder, then moved the web.config into that same folder and it works. Thanks again!