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

pxesoft pxesoft 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

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个错误怎么解决,谢谢!

...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
pxesoft
.NET技术其他语言 1,979 成员 12,447 内容