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.

Publishing doesn't publish modified Views when compilation is skipped

See original GitHub issue

If I modify a View manually (and that’s all I do), then perform a dotnet publish, the modified View is not moved into the published output. Therefore, a deployment will deploy a stale View. This one is easy to repro: Just mod a View file and do nothing else, re-publish … you will get …

Project www_XXXXX_com (.NETStandardApp,Version=v1.5) was previously compiled.
Skipping compilation.

… check the published output. The View you modded will not get published to the output.

capture1

capture2

[EDIT] This prob also applies to any content file that is modified.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
guardrexcommented, Aug 1, 2016

Solved by adding back .UseContentRoot(Directory.GetCurrentDirectory()) to WebHostBuilder. Never take that off there you silly green dino!

Thanks @davidfowl – Truly, one of the greatest.

0reactions
guardrexcommented, May 11, 2016

Might be a problem after all: https://github.com/dotnet/cli/issues/2989

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sitecore is skipping items during publishing. How to ...
Go to the item in Content Editor and on the Publish tab, click Change in the restrictions section. Click the Targets tab. On...
Read more >
Publishing is skipped [closed]
There is a stage publishing target. I have published to Stage Database many times in the past (incremental, smart, all republish) and there...
Read more >
`skip in publish` · Issue #3136 · sbt/sbt
I propose that we implement a flag named skip in publish to mark a subproject as non-publishing. steps skip in publish := true...
Read more >
Visual Studio publish profiles (.pubxml) for ASP.NET Core ...
Learn how to create publish profiles in Visual Studio and use them for managing ASP.NET Core app deployments to various targets.
Read more >
Release pipelines and artifact sources - Azure
By default, build artifacts are downloaded to the agent running the pipeline. You can also configure a step in your stage to skip...
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