在 VS2010 中创建 WCF 项目时,出现“错误:无法打开 WcfProject.csproj”。此安装不支持该项目类型”
嘿。因此,我们在一台机器上有一个 VS2010 项目和 VisualSVN 服务器。我们添加了一台新机器,其中包含客户端视觉 svn 和预计加载的内容。WCF 服务除外。我收到...
“错误:无法打开项目文件 c:/..../wcfProject.csproj。
此安装不支持该项目类型。”
我检查了目录,文件和文件结构都在那里,并且与主开发机器相同。有什么提示/解决方案吗?
谢谢 大卫·K.
hey there. So, we have a VS2010 project and the VisualSVN server on one machine. We added a new machine with the client visual svn and the projected loaded in. except for the WCF service. i'm getting a...
" error : the project file c:/..../wcfProject.csproj cannot be opened.
The project type is not supported by this installation."
i've checked the directory, the files and file structure are there and the same as the main development machine. any tips/solutions?
thanks
David K.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对某些 WCF 解决方案也有类似的问题,我 从博客下载。
使用交换机运行 deveng 的解决方案并没有解决我的问题。经过更多搜索后发现,Ralph Willgoss 的答案中的以下线索可以解决我的问题:
我还必须(手动)安装 Web 平台安装程序 以(自动)下载项目正确加载。
I had a similar problem with some WCF solution which I downloaded from a blog.
The solutions of running deveng with the switches did not resolve my issues. After some more searching it turned out that the following clue in the answer of Ralph Willgoss lead to the solution of my problem:
I also had to (manually) install the Web Platform Installer to (automatically) download the last requirements for the project to properly load.
在尝试创建以下类型的新项目时,我遇到了类似的问题:
我使用的是 Windows 7 Ultimate 64 位,没有安装其他版本的 Visual Studio。
我还尝试了许多其他选项,例如:
我通过安装 Visual Web Developer 解决了这个问题。
I had a similar problem when trying to create a new project of the following types:
I was using Windows 7 Ultimate 64bit, with no other versions of Visual Studio installed.
I also had tried many other options, such as:
I resolved it by installing the Visual Web Developer.
这可能有几个原因,所以我无法给你一个具体的答案。但是,您可以在引发错误的计算机上尝试执行以下操作:
首先,验证将哪个版本的 Visual Studio 设置为打开 csproj 文件的默认版本。可能是您安装了 SQL 或其他使用旧版本 Visual Studio 的程序。有时这可能会出错。即使默认值是 Visual Studio 版本选择器,我也看到它抛出错误。打开正确版本的 Visual Studio(通过“程序”菜单),然后在 Visual Studio 中尝试打开该包。如果有效,您就知道问题出在打开文件的版本上。
如果这不起作用,您可以尝试重置 Visual Studio 设置。从运行菜单中输入
devenv /setup
这应该会重置 Visual Studio 环境,并有望解决该问题。如果这不起作用,请尝试从“运行”菜单运行devenv /ResetSkipPkgs
。这将尝试加载 Visual Studio 之前跳过的任何包。如果这些步骤不起作用,请告诉我们。请向我们提供尝试这些步骤后出现的任何进一步的错误消息。
There are a few things this could be so I can't give you one specific answer. However, here are a few things to try on your machine that is throwing the error:
First, verify which version of Visual Studio is set as the default for opening csproj files. It could be that you installed SQL or something else that uses an older version of Visual Studio. Sometimes that can give an error. Even if the default is the Visual Studio version selector I've seen it throw an error. Open up the correct version of Visual Studio (through the Programs menu) and then inside Visual Studio try to open the package. If that works, you know the issue is with which version is opening the file.
If that doesn't work, you could try resetting the Visual Studio settings. From the run menu type
devenv /setup
This should reset the Visual Studio environment and hopefully it will fix the issue. If this does not work, try runningdevenv /ResetSkipPkgs
from the Run menu. This will try to load any packages that Visual Studio previously skipped.If these steps don't work, let us know. Give us any further error messages that come up after attempting these steps.