VS 2010中项目的平台配置

发布于 2024-08-30 00:57:21 字数 596 浏览 2 评论 0原文

我在 Visual Studio 中有一个第三方项目类型,由于某种原因,它仅支持构建的 .NET 平台配置,对于解决方案中的所有其他(标准 C#)项目,我只有 任何CPU。不幸的是,自从升级到 VS 2010 后,它在构建时会产生以下错误:

错误 39 OutputPath 属性是 没有为项目设置 'ReferencedBusinessProject.csproj'。 请检查以确保您 已指定有效组合 配置和平台 项目。配置='调试' 平台='.NET'。这个错误也可能 如果其他项目正在尝试,则会出现 跟踪一个项目到另一个项目 参考这个项目,这个 项目已卸载或未卸载 包含在解决方案中,并且 引用项目未构建 使用相同或等效的 配置或 平台。 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 483 10 CustomTypeProject

它几乎描述了所缺少的内容,但到目前为止我还没有找到任何方法来修复它。您知道如何解决这个问题或者可能出现什么问题吗?

I have a third-party project type in Visual Studio which for some reason only supports the .NET Platform configuration for the build, for all other (standard C#) projects in the solution I only have AnyCPU. Unfortunately, ever since upgrading to VS 2010 it produces following error when built :

Error 39 The OutputPath property is
not set for project
'ReferencedBusinessProject.csproj'.
Please check to make sure that you
have specified a valid combination of
Configuration and Platform for this
project. Configuration='Debug'
Platform='.NET'. This error may also
appear if some other project is trying
to follow a project-to-project
reference to this project, this
project has been unloaded or is not
included in the solution, and the
referencing project does not build
using the same or an equivalent
Configuration or
Platform. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 483 10 CustomTypeProject

It's pretty much descriptive in what is missing but I haven't found any way to fix it so far. Do you have any idea how this can be resolved or what can be the problem ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

再可℃爱ぅ一点好了 2024-09-06 00:57:21

出于透明度原因,在您收到项目之前,必须已为该项目创建了 .Net 平台,请检查项目设置,如果它正在构建任何 cpu,则修复项目配置。 (标准是 AnyCPU、x86、x64、win32)等...

我建议您右键单击“.sln”文件,然后在配置管理器中设置您调用平台时想要构建的属性。即,

此示例最好使用名为“混合平台”的配置,

csproj1    platform=AnyCPU configuration=debug  build checkbox (checked)
csproj2    platform=.net   configuration=debug  build checkbox (checked)

这将允许您使用 msbuild 进行构建
呼吁将是

msbuild my.sln /p:configuration="Debug" /p:platform="Mixed Platforms"

两个项目都将建设。

The .Net Platform must have been created for the project before you received it for transparency reasons check the project settings and if it's building any cpu then fix the project configuration. (Standards are AnyCPU, x86, x64, win32) etc...

I would suggest you right click on the ".sln" file and in configuration manager set the properties of what you would like build when you call a platform. I.e.

This sample is best served with a configuration called "Mixed Platforms"

csproj1    platform=AnyCPU configuration=debug  build checkbox (checked)
csproj2    platform=.net   configuration=debug  build checkbox (checked)

This will allow you to build with msbuild
The call would be

msbuild my.sln /p:configuration="Debug" /p:platform="Mixed Platforms"

Both projects will build.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文