如何修复 Rational Rhapsody 错误:“当前值为“VC11",但在目录“"中找不到 Visual Studio 安装." [英] How to fix Rational Rhapsody error :"Current value is "VC11", but no Visual Studio installation was not found in the directory ""."

查看:40
本文介绍了如何修复 Rational Rhapsody 错误:“当前值为“VC11",但在目录“"中找不到 Visual Studio 安装."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 64 位 Windows 7 上工作,我正在尝试使用 Visual Studio Professional 2013 为 C++ 运行 Rational Rhapsody 8.0.5.在为一个类创建一个简单的编码示例后,我尝试编译它,但我得到以下错误:

Im working on Windows 7, 64-bit and I'm trying to run Rational Rhapsody 8.0.5 for C++ with Visual Studio Professional 2013. After creating a simple coding example for a class, I tried to compile it, but I got the following error :

当前值为VC11",但在目录"中未找到Visual Studio安装.

Current value is "VC11", but no Visual Studio installation was not found in the directory "".

我的安装有问题吗,或者我需要旧版本的 Visual Studios?我已经尝试了一切,但我所做的一切都不起作用.任何帮助将不胜感激

Is there something wrong with my installation, or do I need an older version of Visual Studios? I've tried everything, but nothing I've done is working. Any help will be appreciated

推荐答案

按照以下步骤配置 IBM Rational Rhapsody 8.x 以使用 Microsoft Visual Studio 2013 编译器,从 此处:

Follow these steps to configure IBM Rational Rhapsody 8.x to use the Microsoft Visual Studio 2013 compiler, borrowed from here:

  1. 安装 Rational Rhapsody 8.x 和 Microsoft Visual Studio 2013.

  1. Install Rational Rhapsody 8.x and Microsoft Visual Studio 2013.

\Share\Properties 中,将 factoryC++.prp 文件设置为读/写权限并在文本编辑器中打开该文件.

In <RHAPSODY _ROOT>\Share\Properties, set the factoryC++.prp file to read/write permissions and open the file in a text editor.

在元类部分:MSVC、MSVCDLL、MSVCStandardLibrary 下,将字符串 VC12 添加到属性 IDEVersion.例如,

Under the metaclass sections: MSVC, MSVCDLL, MSVCStandardLibrary add the string VC12 to the Property IDEVersion. For example,

Metaclass MSVC
Property IDEVersion Enum "VC9,VC10,VC11,VC12" "VC10"

  • 浏览到 \Share\etc 文件夹并打开 msvcmake.bat 文件

  • Browse to the <RHAPSODY _ROOT>\Share\etc folder and open the msvcmake.bat file

    复制一行

    if "%4"=="VC11" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 11.0\
    

    并在下面粘贴一个新行,并进行以下更改

    and paste a new line beneath with the following changes

    if "%4"=="VC12" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\6
    

  • 复制一行

  • Copy the line

    @echo VC11 - Visual Studio 2012
    

    并粘贴更改

    @echo VC12 - Visual Studio 2013
    

  • 打开 Rational Rhapsody8.1 并加载示例项目.例如,\Samples\CppSamples\Dishwasher

    选择项目的活动组件/配置.例如,EXEHost

    Select the Project’s Active Component/Configuration. For example, EXE and Host

    双击浏览器中的配置并打开功能窗口.选择属性选项卡并找到CPP_CG::MSVC::IDEVersion 属性.将值切换为 VC12

    Double-click the configuration in the browser and open the features window. Select the Properties tab and find the CPP_CG::MSVC::IDEVersion property. Switch the value to VC12

    代码菜单中运行构建框架命令.您会看到很多弃用警告.

    Run the Build Framework command in the Code menu. You will see a lot of deprecation warnings.

    完成后,您可以通过代码>生成/制作/运行命令

    Once this is completed you can then build and run the sample project via the Code > Generate/Make/Run command

    这篇关于如何修复 Rational Rhapsody 错误:“当前值为“VC11",但在目录“"中找不到 Visual Studio 安装."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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