问题标签 [target-platform]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
148 浏览

eclipse - Missing platform-specific plugins in new RCP app

If I use New -> Eclipse 4 Application Project, and look into my .product file, there's this

enter image description here

Right. So I know I'm using Eclipse 4.5.1 RCP for Windows x64, but if I configure my target platform so that it points to the Eclipse update sites, I still get the same result.

Mind you that there's no delta pack since 4.5.x! All platform-specific plugins should be in the target platform's update sites.

enter image description here

Am I not including the correct features in the target platform?

Related question here

0 投票
1 回答
63 浏览

c# - 使用 Framework 3.5 和 Platform x86 时未在参考中检测到 xml

我目前正在使用 WPF Web 浏览器,但无法运行我的程序,因为它不断给出错误“无法构建特定于平台的 XAML 浏览器应用程序... ”我的程序设置为 3.5 的 .net 框架并且还应该设置为 x86 的目标平台,因为我的 .dll 是 32 位和框架 3.5 兼容.. .dll 在使用“任何 CPU”时不返回任何内容

有没有办法解决这个问题?

0 投票
6 回答
7720 浏览

c++ - 重定向解决方案没有效果

我从这里安装了最新的 Windows 10 SDK: https ://developer.microsoft.com/de-de/windows/downloads/windows-10-sdk

当我尝试重建我的解决方案时,我收到错误“MSB8036 未找到 Windows SDK 版本 10.0.10069.0。安装所需版本的 Windows SDK 或更改项目属性页面中的 SDK 版本或右键单击解决方案并选择“重新定位解决方案”。

这就是我所做的: 在此处输入图像描述

IDE 告诉我:“重定向结束:2 完成,0 失败,0 跳过”。

但是,当我尝试重建解决方案时,我又遇到了同样的错误。

有没有人有任何提示如何解决这个问题?

0 投票
0 回答
413 浏览

target-platform - Eclipse neon 解析目标定义很慢

上周我安装了 Eclipse Neon。我从一个新的工作区开始,因为我不喜欢旧东西的任何麻烦。在我们的项目中,我们有自己的目标定义,看起来像

在此处输入图像描述

您会注意到,我们依赖于 p2 目录而不是软件端。我们确实有 15 个。没我想的那么多。但是每次我们更改现有目录时,都需要很长时间 > 3-4-5 分钟才能解决目标定义。

在此处输入图像描述

我所看到的是,在 45% 的进度中,第二个进度条出现在许多不同的 http 站点中。但为什么?我们使用的是 p2 目录而不是软件方面。有谁知道发生了什么以及我是否需要设置任何设置?因为我确信在目标定义中所有必要的东西都是可用的。

0 投票
1 回答
207 浏览

java - Eclipse 有效的目标平台,但插件中的类无法解析

从 Kepler.2 IDE 迁移到 Mar.2 IDE 我需要构建一个目标文件,这样我仍然可以使用我们所依赖的旧插件。

我设法手动构建了一个目标文件,它满足我项目中 30 多个插件中的所有依赖项,只有 10 个不相关的错误。但是我切换到目标定义对话框,它做了一些我看不到的事情,而不是我在 1 个插件中出现的 10 个错误,我突然在我的 30 多个插件中出现了超过 54000 个错误。导入中未解析的类都由目标平台中的插件满足。我已经尝试重新启动 Eclipse,清理构建,重新加载目标文件,现在没有任何改变大量错误。

关于可能导致这种情况的任何想法。目标文件在目标平台对话框中加载并看起来很好。位置和内容选项卡显示正常。

以下是内容

0 投票
0 回答
1225 浏览

winapi - Visual C++:将目标平台版本更改为 Windows 7

在用 Visual C++ 构建项目之前,当我检查目标平台版本时,我只看到 8.1。我无法将其更改为 7,这是我的目标平台。
这是一个镜头:http://i.imgur.com/jH4XG9B.jpg

为此,我正在构建的 directx 项目没有成功运行。它寻找此类 dll(即:d3dcompiler_47.dll 和其他...),这些 dll 存在于 windows 8.1 中,但不存在于 windows 7 中(windows 7 具有 d3dcompiler_33.dll 到 d3dcompiler_43.dll)。我只得到很多 dll 丢失错误。
我也尝试过:
#define _WIN32_WINNT_WIN7 0x0601 //windows 7
在 targetver.h 文件中但没有成功。我不想为 Windows 7 构建它,以便我可以在 7、8、8.1 和 10 上顺利运行它。

我正在使用:

  1. 带有更新 3 的 Visual Studio 2015 社区
  2. Windows 7 32 位 SP1
  3. 与 Visual Studio 一起安装的 Windows 8.1 SDK

    这个问题对我没有帮助。
0 投票
0 回答
1578 浏览

qt - 如何在 64 位操作系统上编译 32 位 Qt 项目?

我在 64 位 Windows 10 上使用 Qt5.7。我使用 64 位编译选项制作了我的项目。但现在我必须切换到 32 位编译选项。我在 VS2015 中的 Qt 插件显示“没有为平台 Win32 分配给该项目的 Qt 版本。请使用更改 Qt 版本功能并为此平台选择有效的 Qt 版本。但 Qt 插件仅显示 64 位 (msvc2015_64) 的选项。如何将其更改为 32 位?

0 投票
2 回答
798 浏览

c# - c#visual studio build exe 与目标anycpu 但这决定了它在调用进程平台(x86/x64)上的平台(x86/x64)

我们有一个 32 位和 64 位的软件,它调用我们的 exe 并将事件传递给它(如插件)。

问题是我们的 exe 必须以与调用软件相同的位数(x86/x64)执行(如果软件以 32 位版本运行,我们的 exe 必须以 32 位运行,如果软件以 64 位版本运行,我们的 exe必须以 64 位运行)。windows 版本为 64 位,但客户端可以运行 32 位或 64 位版本的软件。

在 Visual Studio(2015) 中,Target AnyCPU 选项仅取决于 windows 版本(+ 首选 32 位复选框),但我们需要依赖于调用软件进程。

有没有我们可以实施的选项或解决方案,而不是编译到每个平台(x86 和 x64)?

0 投票
0 回答
105 浏览

eclipse - 通过命令行配置 Eclipse Equinox 目标平台

给定一个目标平台定义文件:

从这个定义生成目标平台的 eclipse SDK 命令行是什么?

我目前的解决方案相当难看:解压单元,解压存储库并运行以下命令。它可以工作,但显然会将所有这些进一步的参数放到位置和存储库(例如源包含等),并且当单元列表变长时会爆炸:

我正在寻找的是类似的东西:

我只对命令行解决方案感兴趣。

0 投票
3 回答
45399 浏览

c# - BadImageFormatException Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format

I am getting following runtime error, with my console application(VS2012) which refers to "dcasdk.dll". .Net Framework of the console app is 4.5, platform target is "Any CPU".

I used CorFlags application to check the target platform of the dll. Below are the details..

As per the information above, i think the dll is also built using "Any CPU" target. So it should work with the console app having the same target platform. I am not sure why i get this error when i run.

I also tried changing the target platform to x86 which gives the following "FileNotFoundException". I checked for the dll's references in reflector. It only shows System.Xml and System.Data. Which are already added as a reference in the console app.

Any help regarding this will be greatly appreciated.

Thanks in advance.

Below is the Assembly Binding Log from Fusion.. as per the last three lines of error information, this seems to be an issue with assembly platform. But as this is a third party dll, i cannot recompile this to any specific platform. Please share your thoughts on what can be done here..

Please note that i am running this console app on Windows7, 64bit OS.

If i set "Prefer 32-bit" ON, then the error above disappears. However i still get "FileNotFoundException", "Could not load file or assembly 'dcasdk.dll' or one of its dependencies. The specified module could not be found.". But this time no error in Fusion logs!

"FileNotFoundException" stacktrace..


The ISSUE and fix:

It turned out to be an issue of dcasdk dll's dependencies not being found. I did contact the third party provider and they confirmed that the dcasdk dll had dependency with two more dlls(provided by them later) which after adding resolved the issue!

Thanks everyone for helping me understand the issue.


I am getting FileNotFoundException again when i try to deploy this as a windows service in a machine runs on Windows server R2.

I tried compiling with "Prefer 32" On which resulted in the "BadImageFormatException".

If i compile using x86 platform target i am getting FileNotFoundException, though all the dlls required are present in the service folder.

Can someone help me understand whats going wrong with the deployment. It works in the development system as expected with "Any CPU, Prefer 32bit ON".