Why am I missing assemblies from the bin directory when compiling with MsBuild?

后端 未结 9 1342
日久生厌
日久生厌 2021-01-13 10:43

I have a solution which contains many class libraries and an ASP .NET website which references those assemblies.

When I build the solution from within the IDE, all a

9条回答
  •  一整个雨季
    2021-01-13 11:18

    You could make use of the Post-Build steps in project properties to copy the output for the project to a particular location.

    This copies to an Assemblies directory in the same directory as the Sln file. I have this in the post-build step of all my projects.

    md "$(SolutionDir)Assemblies"
    del "$(SolutionDir)Assemblies\$(TargetFileName)"
    copy "$(TargetPath)" "$(SolutionDir)Assemblies" /y
    

提交回复
热议问题