question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do you publish a website with dotnet cli and upload to server?

See original GitHub issue

What 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:closed
  • Created 7 years ago
  • Comments:24 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
guardrexcommented, May 10, 2016

^^^ warrior … wwwroot … stupid phone! 😄

1reaction
Gillardocommented, May 10, 2016

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found