Entity framework core Azure函数生成后文件副本丢失
我正在Visual Studio中对C#Azure函数进行MSBuild。大部分内容放在$(TargetDir)/bin中。我需要将Api.dll从那里复制到$(TargetDir)以进行实体框架迁移。例如:Entity framework core Azure函数生成后文件副本丢失,entity-framework-core,msbuild,azure-functions,Entity Framework Core,Msbuild,Azure Functions,我正在Visual Studio中对C#Azure函数进行MSBuild。大部分内容放在$(TargetDir)/bin中。我需要将Api.dll从那里复制到$(TargetDir)以进行实体框架迁移。例如: <Target Name="PostBuild" AfterTargets="PostBuildEvent"> <Exec Command="echo copy /Y "$(Tar
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="echo copy /Y "$(TargetDir)bin\Api.dll" "$(TargetDir)"" />
</Target>
dll不在$(TargetDir)中,而是在$(TargetDir)bin中较低的一个文件夹中
An assembly specified in the application dependencies manifest (Api.deps.json) was not found:
package: 'Api', version: '1.0.0'
path: 'Api.dll'