本文介绍了.net Core 1.0部署问题与dotnet-razor-tooling.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将最近升级的.NET Core 1.0解决方案部署到IIS,但出现了一些似乎找不到任何信息的问题.该站点可以在IIS Express中正常运行.通过命令提示符运行站点花了我几个小时甚至没有解决问题的根源,而且似乎找不到程序集"dotnet-razor-tooling.dll".

I'm trying to deploy a recently upgraded .NET Core 1.0 solution to IIS with a few issues that I can't seem to find any information on. The site runs in IIS Express without issue. It's taken me a few hours to even get to the root of the issue by running the site through command prompt and it seems an assembly "dotnet-razor-tooling.dll" cannot be found.

我已经检查了它试图找到它的位置,但是它根本不存在.在网络上搜索该DLL不会显示任何内容(不是一个好兆头!).有人可以指出我在这里进行任何潜在修复的方向吗?

I've checked the locations it tries to find it and it's simply not present. Searching around the web for that DLL brings up nothing (not a good sign!). Can anyone point me in the direction of any potential fixes here?

我还在盒子上安装了ASP.NET Core模块,并确保在发布后对我的web.config/appsettings.json进行了转换.在那部分看来一切都很好.

I've also installed ASP.NET Core Module on the box and made sure my web.config/appsettings.json are being transformed post-publish. All seems to be fine on that part.

推荐答案

我在本地发布asp.net核心应用程序时遇到了同样的问题.我已经通过安装Microsoft.AspNetCore.Mvc.Razor程序包并更新了包括预发行版的所有程序包来解决了该问题.希望对您有所帮助.

I ran into the same problem when did local publishing of my asp.net core application. I've solved it by installing Microsoft.AspNetCore.Mvc.Razor package and updating all packages included prerelease. I hope that helps you.

这篇关于.net Core 1.0部署问题与dotnet-razor-tooling.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 07:54