ecommercesite/tasks/scrapeall.cs
Код: Выделить всё
using System;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Tasks
{
public class ScrapeAll : Task
{
public override bool Execute()
{
return true;
}
}
}
Strong> ecommercite/ecommercesite.csproj> PrettyPrint-Override ">
Код: Выделить всё
netcoreapp2.0
< /code>
Итак, теперь, в моей командной строке, я могу вызвать: dotnet msbuild /t: scrapeall < /code> И все же я получаю эту ошибку: < /p>
error MSB4062: The "Tasks.ScrapeAll" task could not be loaded from the assembly
[redacted]/EcommerceSite/bin/Debug/netcoreapp2.0/EcommerceSite.dll.
Could not load file or assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
The system cannot find the file specified.
[redacted]/EcommerceSite/EcommerceSite.csproj(33,5): error MSB4062:
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
< /code>
Итак, мои вопросы: < /p>
Почему моя задача < /code> пытается загрузить microsoft.aspnetcore.mvc.viewfeatures < /code>, что согласно документам Nuget, содержит: < /li>
< /ol>
< /p, что < /li>
< /ol>
Двигатели, представления, компоненты представлений и HTML -помощники
, из которой моя задача Подробнее здесь: https://stackoverflow.com/questions/469 ... ld-missing
Мобильная версия