简体   繁体   English

如何将带有devexpress组件的ASP.NET MVC应用程序部署到Azure网站

[英]How to deploy ASP.NET MVC application with devexpress components to Azure websites

Is there a way to deploy asp net application with dexexpress components other than using virtual machine with installed libs on it? 除了使用带有已安装库的虚拟机之外,是否可以使用dexexpress组件来部署asp net应用程序? I want to deploy it to azure websites but get an error that .dll are missing (dont get that error during debugging on localhost where devexpress installed). 我想将其部署到azure网站上,但收到一个.dll丢失的错误(在安装了devexpress的localhost上调试期间,请勿出现该错误)。

Be sure, that you marked the referenced assemblies that you want to publish on the vm as "copy local = true". 确保将要发布在虚拟机上的引用程序集标记为“ copy local = true”。 You can find that option in the properties of a reference. 您可以在参考的属性中找到该选项。

The output folder of your web app will be automatically copied over to azure websites. Web应用程序的输出文件夹将被自动复制到Azure网站上。 For more information how web pages are packaged have a look How to: Create a Web Deployment Package in Visual Studio 有关更多信息,请参见如何打包网页。 如何:在Visual Studio中创建Web部署程序包

You can try one of these options: 您可以尝试以下选项之一:

  • Find a NuGet package which includes the dll's you need. 找到包含所需dll的NuGet软件包。 I don't know which components you use but NuGet contains a lot of packages -> https://www.nuget.org/packages?q=devexpress 我不知道您使用哪个组件,但是NuGet包含很多软件包-> https://www.nuget.org/packages?q=devexpress
  • Include the dll's you need in a 3thPartyLib in your project and then reference these assemblies (with copy local = true) from your project. 在项目的3thPartyLib中包含所需的dll,然后从您的项目中引用这些程序集(副本为local = true)。

Be sure to include the license file in your deployment. 确保在您的部署中包括许可证文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM