在控制台应用程序引用DBML项目(.NET)控制台、应用程序、项目、DBML

2023-09-06 17:46:54 作者:叼着奶瓶的潴

我继承了一个软件工程师的工作与它的.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.

 
精彩推荐
图片推荐