934

Post-build event copy not working

Question:

I have a post-build event to copy a .dll from one project to another on successful build using the following command:

copy $(TargetPath) ....\MainProject\bin

This works fine on my local machine, but it appears to be failing on the build server because when building the MainProject I receive the following:

warning MSB3245: Could not resolve this reference. Could not locate the assembly "Project2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Has anyone experienced similar issues with the copy command in a post-build event?

Answer1:

That warning isn't from the Copy task, it is from the build of a project. Crank up the diagnostic level and log to a file (/fl /flp:v=diag;logfile=diag.txt) to see where the warning is actually coming from.

Recommend

  • maven-cobertura-plugion does not show the sources [closed]
  • How do I get rid of the Eclipse Find/Replace Bar
  • CUDA Debugging - VS on windows workstation, GPUs on Linux server?
  • Titanium doesn't recognize Android SDK on Windows
  • How to move an element within a structure, possibly with zippers?
  • MAVEN : Run Multiple Maven Project using Maven Test
  • Efficient algorithm to find additions and removals from 2 collections
  • How can I prevent the need to copy strings passed to a avr-gcc C++ constructor?
  • read values from form post in jquery or javascript
  • apply a javascript function to draggable copy
  • How to log in to an HTTPS website with Jsoup?
  • Building Qt project for C++11 standard
  • Consuming a WCF service in a Java Client using wsHttpBinding
  • Exception gevent.hub.LoopExit: LoopExit('This operation would block forever',)
  • using System.Speech.Synthesis with Windows10 universal app (XAML-C#)
  • How to use jQuery's $.post() method with async/await and typescript
  • How to autopopulate a field in SugarCRM form
  • Custom preprocessing in caret
  • Overlapping controls in Windows XP
  • GAE: Way to get reference to an HttpSession from its ID?
  • Spring boot 2.0.0.M4 required a bean named 'entityManagerFactory' that could not be found
  • Differences in dis-assembled C code of GCC and Borland?
  • Graphics.CopyFromScreen [Web application] + The handle is invalid
  • What is the purpose of TaskExecutor in spring?
  • ADO and msqli connections very slow
  • Rails Find when some params will be blank
  • PHP buffered output depending on server setting?
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • Get one-time binding to work for ng-if
  • Is there any way to access browser form field suggestions from JavaScript?
  • Jenkins: How To Build multiple projects from a TFS repository?
  • javaw.exe and eclipse startup problems
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • costura.fody for a dll that references another dll