在控制台应用程序引用DBML项目(.NET) [英] Referencing DBML project in Console App (.net)

查看:128
本文介绍了在控制台应用程序引用DBML项目(.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个软件工程师的工作与它的.dbml项目。它是由一个ASP.Net的网站,因为它是数据访问层引用,但我负责创建一个控制台应用程序,可以利用大量的数据访问类项目。

I inherited a software engineering job with a .DBML project in it. It was being referenced by an ASP.Net website as it's data access layer, but I'm tasked with creating a Console app that could utilize the extensive data access classes in the project.

然而,当我引用的项目,我得到IntelliSense和所有,但在建设中,但得到的错误,因为如果我没有提到它。

However, when I reference the project I get intellisense and all but on building it, get errors as if I don't have reference to it.

我不熟悉这个类型的项目和种类是在丢了怎么进行。我一直在尝试不同的东西过去的几个小时,但似乎没有任何工作。

I am not that familiar with this kind of project and am kind of at a lost how to proceed. I have been trying out different stuffs for past few hours, but nothing seems to work.

任何人都可以指导我如何解决这个问题,或者说可以点我在正确的方向上的文章?谢谢!

Can anyone guide me to how to solve this, or perhaps an article that could point me to the right direction? Thanks!

推荐答案

右键点击您的控制台应用程序,然后单击属性。更改目标框架从.Net框架客户端配置文件到.NET框架。

Right click on your console application and then click on properties. Change the target framework from .Net Framework Client Profile to .NET Framework.

Visual Studio中的这一特点咬了很多人......我浪费了几乎整整一天就可以了最近。

This "feature" of Visual Studio has bitten a lot of people... I wasted almost a full day on it recently.

这篇关于在控制台应用程序引用DBML项目(.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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