此计算机上未安装与此项目类型关联的应用程序。 [英] The application associated with this project type isn't installed on this computer.

查看:265
本文介绍了此计算机上未安装与此项目类型关联的应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


第一次在这个论坛上,只是第一次尝试创建一个Excel加载项,并且非常沮丧地遇到这个问题阶段。首先,Excel安装了Excel(从365帐户)并使用VS 2017(因此我猜他们应该是
兼容?)并且运行两者都没有问题。我创建了一个带有默认选项的加载项,当选择"开始"时,我会收到错误窗口:


"此计算机上未安装与此项目类型关联的应用程序。您必须安装与此项目类型关联的Microsoft Office应用程序。"


选择"确定"会提示另一个对话窗口警告"存在部署错误"。并询问我是否要继续。


选择是,显示另一个错误窗口:"无法启动程序"C:\Program Files \ Microsoft Office \root \\ \\ vfs \ProgramFilesX64 \ Microsoft Office \ Office16 \ excel.exe'。系统找不到指定的文件"


错误引用的位置不存在,至少不是 Office16 \ excel.exe 部分。 Excel位于  C:\Program Files \ Microsoft Office \root \Office16


任何人都有关于如何绕过此错误并让VS了解Excel的指示是吗?


谢谢。

解决方案

对于任何有兴趣的人,经过谷歌搜索和尝试不同的东西,我可以通过更改  < TargetOfficeVersion> 15.0< / TargetOfficeVersion>来解决此问题。到< TargetOfficeVersion> 14.0< / TargetOfficeVersion>在
项目的.csproj文件......


对我来说没有多大意义,但它有效...... 


Hello,

First time on this forum, and just trying to create an Excel add-in for the first time ever and very frustrating to run into this issue at this stage. For starters, Excel IS installed (from a 365 account) and using VS 2017 (so I'm guessing they should be compatible?) and running both without problems. I created an Add-in with the default options and when selecting Start I get the error window:

"The application associated with this project type isn't installed on this computer. You must install the Microsoft Office application that is associated with this project type."

Selecting ok prompts another dialog window warning that "There were deployment errors" and asking if I wanted to continue.

Selecting yes, shows yet another error window: "Unable to start the program 'C:\Program Files\Microsoft Office\root\vfs\ProgramFilesX64\Microsoft Office\Office16\excel.exe'. The system cannot find the file specified"

The location the error makes reference to doesn't exist, at least not the Office16\excel.exe part. Excel is located under C:\Program Files\Microsoft Office\root\Office16

Anyone has any pointers as to how to bypass this error and get VS to understand where Excel is?

Thanks.

解决方案

For anyone interested, after much googling and trying different things, I was able to resolve this issue by changing  <TargetOfficeVersion>15.0</TargetOfficeVersion> to <TargetOfficeVersion>14.0</TargetOfficeVersion> in the project's .csproj file...

Doesn't make a lot of sense to me, but it works... 


这篇关于此计算机上未安装与此项目类型关联的应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆