警告MSB4121:项目“MyProject”的项目配置。未在解决方案文件中为解决方案配置“Release | Any CPU”指定。 [英] Warning MSB4121: The project configuration for project "MyProject" was not specified in the solution file for the solution configuration "Release|Any CPU".

查看:118
本文介绍了警告MSB4121:项目“MyProject”的项目配置。未在解决方案文件中为解决方案配置“Release | Any CPU”指定。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的项目制作了一个构建定义,并且在我对新构建进行排队后收到此警告,遗憾的是我的目标文件夹没有与该版本相关联的文件。

I made a build definition for my project, and I am getting this warning after I en-queue a new build, unfortunately my destination folder doesn't have the files associated with the release.

我的项目在.NET Framework 2.0上运行(这是一个遗留项目,我试图与持续集成方法集成)。它内部没有.csproject,只有.sln

My project runs on the .NET Framework 2.0( is a legacy project that I am trying to integrate with a continuous integration approach ). Also it doesn't have a .csproject inside, just the .sln

 附件是我用来构建的基本步骤的打印屏幕

  Attached is a print screen of the basic step I am using to build

MSBuild参数如下:

The MSBuild Arguments are these:

/ p:DeployOnBuild = true / p :WebPublishMethod = Package / p:PackageAsASingleFile = true / p:SkipInvalidConfigurations = true / p:PackageLocation =" \\DEVWEB01\c $ \ MyyMolderForMyRelease" / p:Configuration = Releas

/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsASingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="\\DEVWEB01\c$\MyFolderForMyRelease" /p:Configuration=Releas

推荐答案

你好izinova,

Hi izinova,

感谢您在此处发帖。

>>警告MSB4121:项目的项目配置" MyProject的"未在解决方案文件中为解决方案配置"Release | Any CPU"指定。

在您的解决方案文件中,缺少{MyProjectGUID} .Release | Any CPU.ActiveCfg =发布|任何CPU。

In your solution file, missing {MyProjectGUID}.Release|Any CPU.ActiveCfg = Release|Any CPU.

您可以使用Visual Studio添加此配置。

You could use Visual Studio to add this configuration.

1。右键单击解决方案名称,选择"属性"。  

1. Right click the solution name, choose Property.  

2。打开配置管理器对话框。

2. Open the Configuration Manager dialog box.

3。在"项目"列中选择 Myproject  。新建一个名为release的配置和一个名为Any CPU的新平台。

3. Select Myproject  in the Project column. New a Configuration named release and new a Platform named Any CPU.

>>当我在这个项目上运行MSBuild时,它会创建一个独立的文件夹解决方案的根目录PrecompiledWeb(文件夹)与解决方案处于同一级别。它们不能在同一路径下共存。这是另一个
问题,如何从那里获取文件?

您能否告诉我有关如何运行MSBbuild的更多信息?你能分享像MyProject这样的样本项目吗?什么是Myproject的项目类型?

Could you please give me more information of how you run the MSBbuild? And could you share a sample project which like MyProject? What's the project type of Myproject?


这篇关于警告MSB4121:项目“MyProject”的项目配置。未在解决方案文件中为解决方案配置“Release | Any CPU”指定。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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