无法将类型为“Microsoft.Data.Entity.Build.Tasks.EntityDeploy”的对象强制转换为类型

pxesoft 2023-02-20 09:01:27

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xx
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("初学C#测试");
        }
    }
}
 

错误    1    The "EntityDeploy" task could not be instantiated from the assembly "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Data.Entity.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. 无法将类型为“Microsoft.Data.Entity.Build.Tasks.EntityDeploy”的对象强制转换为类型“Microsoft.Build.Framework.ITask”。

错误    2    The "EntityDeploy" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.   
VS2017中运行正常,但在VS2008就提示这个错误,请大家帮忙看看,这2个错误怎么解决,谢谢!

...全文
463 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
Book Description to Finelybook sorting Learn how to build web applications from three Microsoft MVPs. After building the data application layer using Entity Framework Core and a RESTful service using ASP.NET Core, you will then build the client side web application three ways: first, using ASP.NET Core, then using Angular 2, and, finally, using React. You will be able to compare and contrast these UI frameworks and select the best one for your needs. .NET Core is a complete rewrite of the popular .NET and its related frameworks. While many concepts are similar between .NET Core and the .NET 4.6 framework, there are revolutionary changes as well, including updates to Entity Framework Core and ASP.NET Core. The first section of this book covers the three main parts of building applications with C#: Entity Framework, ASP.NET Core Services, and ASP.NET Core Web Applications. There is also an explosion in popularity of JavaScript frameworks for client side development, and the authors cover two of the most popular UI frameworks. Start with TypeScript for developing clean JavaScript, along with a client side build tool such as Gulp, Grunt, and WebPack. Using the same data access layer and RESTful service from the .NET Core application, you can rebuild the UI using Angular 2. Then, repeat the process using React, for a true comparison of building client side applications using ASP.NET Core, Angular 2, and React. What You’ll Learn Understand the fundamentals of .NET Core and what that means to the traditional .NET developer Build a data access layer with Entity Framework Core, a RESTful service with ASP.NET Core MVC, and a website with ASP.NET Core MVC and Bootstrap Automate many build tasks with client side build utilities Who This Book Is For Intermediate to advanced .NET developers Contents Part I: Visual Studio 2017 and .NET Core Chapter 1: Introducing Entity Framework Core Chapter 2: Building the Data Access Layer with Entity Framework Core Chapter 3: Building the RES
Book Description NHibernate is an innovative, flexible, scalable, and feature-complete open source project for data access. Although it sounds like an easy task to build and maintain database applications, it can be challenging to get beyond the basics and develop applications that meet your needs perfectly. The NHibernate Cookbook explains each feature of NHibernate 3.0 in detail through example recipes that you can quickly apply to your applications. Set yourself free from stored procedures and inline SQL. Quite simply, if you build .NET applications that use databases, this book is for you. The book will take you from the absolute basics of NHibernate through its most advanced features and beyond, showing you how to take full advantage of each concept to quickly create amazing database applications. Beginners will learn several techniques for each of the 4 core NHibernate tasks – mapping, configuration, session & transaction management, and querying – and which techniques fit best with various types of applications. In short, you will be able to build an application using NHibernate. Intermediate level readers will learn how to best implement enterprise application architecture patterns using NHibernate, leading to clean, easy-to-understand code, and increased productivity. In addition to new v3.0 features, advanced readers will learn creative ways to extend NHibernate core, as well as techniques using the NHibernate search, shards, spatial, and validation projects. Get solutions to common NHibernate problems to develop high-quality performance-critical data access applications What you will learn from this book : Create a persistent object model for moving data in and out of your database Build the database from your model automatically Configure NHibernate for use with WebForms, MVC, WPF, and WinForms applications Create database queries using a variety of methods, including the new LINQ to NHibernate and QueryOver APIs Build an enterprise-level data access layer Improve the performance of your applications using a variety of techniques Build an infrastructure for fast, easy test-driven development of your data access layer Extend NHibernate to add data encryption and auditing Implement entity validation, full-text search, horizontal partitioning (sharding), and spatial queries using NHibernate Contrib projects Approach This book contains quick-paced self-explanatory recipes organized in progressive skill levels and functional areas. Each recipe contains step-by-step instructions about everything necessary to execute a particular task. The book is designed so that you can read it from start to end or just open up any chapter and start following the recipes. In short this book is meant to be the ultimate “how-to” reference for NHibernate 3.0, covering every major feature of NHibernate for all experience levels. Who this book is written for This book is written for NHibernate users at all levels of experience. Examples are written in C# and XML. Some basic knowledge of SQL is assumed. Book Details Paperback: 328 pages Publisher: Packt Publishing (October, 2010) Language: English ISBN-10: 184951304X ISBN-13: 978-1849513043 File Size: 5.9 MiB Hits: 1,048 times

1,979

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧