views not publishing

lawrence whittemore asked on December 4, 2023 17:27

Has anyone run into an error where their views are not being included in the published version of the site? It just started today, I did install the latest versions of .net on my computer on Friday, but the site as far as I know is still running in 6.

Recent Answers


lawrence whittemore answered on December 4, 2023 18:52

I added this <CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory> to the csproj file and it has caused the views and view component views to all be created as files. NO idea what has caused this.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.