程序集引用的MSBuild错误 [英] MSBuild error for assembly reference

查看:69
本文介绍了程序集引用的MSBuild错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试通过Atlassian Bamboo构建一个基于4.6.0构建的wpf应用程序。我正在使用MSBuild任务。


即使我明确指定了框架,我也会收到以下错误。


build  20-Feb-2018 17: 20:25  Interest\InterestPeakInput.cs(5,11):错误CS0246:找不到类型或命名空间名称'Caliburn'(您是否缺少using指令或程序集引用?)


build  20-Feb-2018 17:20:25  Interest\InterestPeaks.cs(15,6):错误CS0012:类型'PropertyChangedBase'是在未引用的程序集中定义的。您必须添加对程序集'Caliburn.Micro,Version = 3.0.2.0,Culture = neutral,PublicKeyToken = 8e5891231f2ed21f'的引用。



I我正在使用MSbuild14.0(64位)。也试过其他变种。


请帮忙解决。谢谢!

解决方案

你好Leena684, 我发现我必须使用VM作为模型并配置VM以支持我的特定场景。 我的情况类似于我们针对较新版本的框架,但这是在不久之前。  Bamboo有
合理的文件:  https://confluence.atlassian.com/bamboo/creating-a-custom-elastic-image-windows-296093042.htm l


在我的特殊情况下,我对Bamboo的投资有限,所以我发现转向VSTS可以更简单地构建.net应用程序。


 

Hi,

I am trying to build a wpf application built on 4.6.0 through Atlassian Bamboo. I am using MSBuild task for this.

even though I specified the framework explicitly, I am getting following error.

build 20-Feb-2018 17:20:25 Interest\InterestPeakInput.cs(5,11): error CS0246: The type or namespace name 'Caliburn' could not be found (are you missing a using directive or an assembly reference?)
build 20-Feb-2018 17:20:25 Interest\InterestPeaks.cs(15,6): error CS0012: The type 'PropertyChangedBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Caliburn.Micro, Version=3.0.2.0, Culture=neutral, PublicKeyToken=8e5891231f2ed21f'.

I am using MSbuild14.0(64 Bit). Tried with other variants also.

please help to resolve. Thanks!

解决方案

hello Leena684,  I found that I had to use the VM as a model and configure the VM to support my particular scenario.  My situation was similar where we were targeting a newer version of the framework but this was sometime ago.  Bamboo has reasonable documentation: https://confluence.atlassian.com/bamboo/creating-a-custom-elastic-image-windows-296093042.html

In my particular situation I had limited investment in Bamboo so I found moving to VSTS a much simpler experience for building .net apps.

 


这篇关于程序集引用的MSBuild错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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