gpt4 book ai didi

c# - 当解决方案包含 Office 应用程序时,从 Github 部署 MVC 站点的 Azure 部署失败

转载 作者:行者123 更新时间:2023-12-03 03:17:03 24 4
gpt4 key购买 nike

我有一个 github 存储库和一个解决方案,其中包含:

  1. 用于域/共享基础设施的通用 C# 库
  2. C# MVC 5 Web 应用程序
  3. Xunit 测试项目
  4. Office 应用程序

此存储库连接到 azure 站点并自动部署 MVC Web 应用程序项目。

由于我已将 Office 应用添加到解决方案中,自动部署失败并出现以下错误。

Command: D:\home\site\deployments\tools\deploy.cmd 
Handling .NET Web Application deployment.
Installing 'jQuery 1.9.1'.
Successfully installed 'jQuery 1.9.1'.
Unable to find version '1.1.0' of package 'Microsoft.Office.js'.
Failed exitCode=1, command="D:\Program Files (x86)\SiteExtensions\Kudu\1.26.30329.722\bin\scripts\nuget.exe" restore "D:\home\site\repository\src\MySolution.sln"
An error has occurred during web site deployment.

我不太确定为什么会发生这种情况,因为这是一个非常普遍的情况。这也是一个完美的 nuget 包:http://www.nuget.org/packages/Microsoft.Office.js/

最佳答案

您的链接显示当前版本是1.0.1

Office Javascript API 1.0.1

The Office JavaScript API includes objects, methods, properties, events, and enumerations that can be used from apps for Office to interact with Microsoft Office 2013 documents or mail items content.

查看包含此行的错误日志:

Unable to find version '1.1.0' of package 'Microsoft.Office.js'.

看起来像是在某个配置文件中您指定使用版本1.1.0

将其更改为1.0.1,应该没问题

关于c# - 当解决方案包含 Office 应用程序时,从 Github 部署 MVC 站点的 Azure 部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23407022/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com