无法从程序集中加载 BuildTasks.Csc 任务? [英] BuildTasks.Csc task could not be loaded from the assembly?

查看:22
本文介绍了无法从程序集中加载 BuildTasks.Csc 任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里问这样的问题让我感到内疚,但我不知所措,希望得到一些帮助.

I feel guilty asking a question like this around here, but I'm at a loss and would appreciate some help.

类似 Web 应用程序的概念验证是在一台 PC 上构建的,并放置在存储库中,以便在不同位置的另一台 PC 上下载.最初有一个自动构建功能设置,Azure 会在签入时自动构建和发布,但后来被删除了.事情在两端都在起作用,直到一侧包含大量被排除的更改.现在我看到以下错误:

A proof-of-concept like web application was built on one PC and put up on a repo to download on another PC at a different location. There was originally an auto-build feature set up where Azure would build and publish automatically on check-in, but that was removed. Things were working on both ends until one side included a bulk of excluded changes. Now I'm seeing the following error:

Microsoft.CodeAnalysis.BuildTasks.Csc"任务不能
从程序集加载...packagesMicrosoft.Net.Compilers.1.0.0uild.. oolsMicrosoft.Build.Tasks.CodeAnalysis.dll.无法加载文件或程序集'file:///...packagesMicrosoft.Net.Compilers.1.0.0 oolsMicrosoft.Build.Tasks.CodeAnalysis.dll'或其依赖项之一.该系统找不到指定的文件.确认声明正确,组装并且它的所有依赖项都可用,并且该任务包含一个实现 Microsoft.Build.Framework.ITask 的公共类.

The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be
loaded from the assembly ...packagesMicrosoft.Net.Compilers.1.0.0uild.. oolsMicrosoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'file:///...packagesMicrosoft.Net.Compilers.1.0.0 oolsMicrosoft.Build.Tasks.CodeAnalysis.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

有人对从哪里开始寻找问题有任何建议吗?

Does anyone have any suggestions on where to begin looking for the issue?

推荐答案

事实证明,NuGet 包已提交到存储库并破坏了所有内容.从存储库中删除 projectprojectpackages 目录解决了所有构建问题,因为 NuGet 在构建时自动获取包.

It turns out that NuGet packages were committed to the repository and breaking everything. Deleting the projectprojectpackages directory from the repo solved all build problems since NuGet fetches the packages automatically on build.

这篇关于无法从程序集中加载 BuildTasks.Csc 任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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