The problem of not finding the view file after the. NET Core Publish

Source: Internet
Author: User

The weekend upgrades vs from 15.3 to 15.5, then the VS version from the Community edition, to the Enterprise Edition.
So here's the question:

Can't find the view file after project publish???

The problem is the egg ache, later thought carefully, also did not move anything. See the SKD or 2.0.0 , publish when I use the command line, and VS has no relationship. So there is no careful troubleshooting, the root of the problem, today to see the *.csproj file found the root cause of the problem:

 <PropertyGroup>    <TargetFramework>netcoreapp2.0</TargetFramework>    <MvcRazorCompileOnPublish>True</MvcRazorCompileOnPublish>    <TypeScriptToolsVersion>2.5</TypeScriptToolsVersion>     </PropertyGroup>

Originally here do not know when will be <MvcRazorCompileOnPublish>True</MvcRazorCompileOnPublish> set to True, and then manually changed to False. The familiar view file also appears in the project's Publishing folder.

The problem of not finding the view file after the. NET Core Publish

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.