Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctionsPublishDepsCopy SourceFiles Not Found #256

Closed
robertkety opened this issue Mar 31, 2021 · 1 comment
Closed

FunctionsPublishDepsCopy SourceFiles Not Found #256

robertkety opened this issue Mar 31, 2021 · 1 comment

Comments

@robertkety
Copy link

TargetFramework: netcoreapp3.1
AzureFunctionsVersion: v3
Using the following targets from the Readme:

<Target Name="FunctionsPostBuildDepsCopy" AfterTargets="PostBuildEvent">
    <Copy SourceFiles="$(OutDir)$(AssemblyName).deps.json" DestinationFiles="$(OutDir)bin\$(AssemblyName).deps.json" />
  </Target>

  <Target Name="FunctionsPublishDepsCopy" AfterTargets="Publish">
    <Copy SourceFiles="$(PublishDir)$(AssemblyName).deps.json" DestinationFiles="$(PublishDir)bin\$(AssemblyName).deps.json" />
  </Target>

Result:

error MSB3030: Could not copy the file <elided> because it was not found.

When publishing, the source file appears to be located at "$(OutDir)$(AssemblyName).deps.json" not "$(PublishDir)$(AssemblyName).deps.json"

@skomis-mm
Copy link
Contributor

Thanks, @robertkety!
Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants