编译错误在MSBuild中但在Vs Build中没有错误 [英] compilation Error in MSBuild but no error in Vs Build

查看:108
本文介绍了编译错误在MSBuild中但在Vs Build中没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试自动化我的应用程序的构建过程。

我已经正确地给出了构建定义,并且构建在特定时间被触发。但是当构建通过TFS(msbuild)发生时,我收到错误 -

(179):方法'GetValue'没有重载需要1个参数

(201):当前上下文中不存在名称ZipFile

(5):类型System.Net.Http.HttpMessageHandler在未引用的程序集中定义。您必须添加对程序集'System.Net.Http,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'的引用。



现在这些错误不是当我在Visual Studio编译器中编译我的应用程序时。

并且没有涉及第三方dll,因为GetValue来自反射,而ZipFile来自IO.compression。



任何人都可以建议我在哪里,我做错了什么或我错过了什么?



谢谢

Hi All,

I am trying to automate the build process of my application.
I have properly given the build defination and the build is getting triggered at the specific time. But when the build is happening via TFS(msbuild) i am getting error -
(179): No overload for method 'GetValue' takes 1 arguments
(201): The name 'ZipFile' does not exist in the current context
(5): The type 'System.Net.Http.HttpMessageHandler' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Now these error are not coming when i compile my application in Visual studios compiler.
And there is no 3rd party dlls involved as well, as the GetValue is from reflection and ZipFile is from IO.compression.

Can anyone please suggest where and what i am doing wrong or what i have missed?

Thanks

推荐答案

这篇关于编译错误在MSBuild中但在Vs Build中没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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