从VS2017构建C#类库项目.Net Framework 4.0 [英] Building C# Class library project .Net Framework 4.0 from VS2017

查看:684
本文介绍了从VS2017构建C#类库项目.Net Framework 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个C#类库"CL01"使用Visual Studio 2017构建.Net Framework 4.0。我引用了"CL01"。汇编到另一个类(Say"CL02")库项目配置到Target Framework 4.0。

当我从Visual Studio 2017构建CL02时,我打赌下面的警告

I have a C# Class Library "CL01" build against .Net Framework 4.0 using Visual Studio 2017. I am referencing the "CL01" assembly to a another class (Say "CL02") library project configured to Target Framework 4.0.
When I build CL02 from Visual Studio 2017, I am betting the bellow warning

推荐答案

嗨  hhhhhhbalagopinath,

感谢您在此发帖。

代码错误是由CL01和CL02的不同.net框架版本的冲突引起的。

The code is error is caused by the conflict of different .net framework version of CL01 and CL02.

1。请再次检查.net框架版本的CLR01和CL02。  您可以在VS中找到项目属性中的目标版本,如下图所示。

1. Please check again of the .net framework version of CLR01 and CL02. You could find the target version in the properties of the project in VS like the following picture.

2。如果你得到不同的东西,请把它设置为相同的目标框架。

2. If you get something different, please set it to the same target framework.

最好的问候,

Wendy


这篇关于从VS2017构建C#类库项目.Net Framework 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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