There is and it is not dependent on post build events.
Add the file to your project, then in the file properties select under “Copy to Output Directory” either “Copy Always” or “Copy if Newer”.
See MSDN.
More Related Contents:
- MSBuild doesn’t copy references (DLL files) if using project dependencies in solution
- Get Visual Studio to run a T4 Template on every build
- Displaying build times in Visual Studio?
- MSDeploy skip rules when using MSBuild PublishProfile with Visual Studio 2012
- How can I exclude a project from a build in MSBuild?
- Project reference VS NuGet
- MS-Build 2017 “Microsoft.WebApplication.targets ” is missing
- How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?
- How can I invoke my MSBuild Target when msbuild.exe starts and when it ends
- Any good PowerShell MSBuild tasks?
- Using Git with Visual Studio [closed]
- Visual Studio Post Build Event – Copy to Relative Directory Location
- Custom Intellisense Extension
- How do I “Add Existing Item” an entire directory structure in Visual Studio?
- Why does the Visual Studio editor show dots in blank spaces?
- RunAs A different user when debugging in Visual Studio
- Unblocking a DLL on a company machine. How?
- Break in Class Module vs. Break on Unhandled Errors (VB6 Error Trapping, Options Setting in IDE)
- How to turn off CodeLens-References
- What does “Register for COM Interop” actually do?
- Break when a value changes using the Visual Studio debugger
- Green Bars in Visual Studio 2010
- How to make visual studio break only on unhandled exceptions?
- Best Practice for Git Repositories with multiple projects in traditional n-tier design
- How to fix “Internal Diagnostics Hub Exception” in VS 2015 Update 1?
- Visual Studio keyboard shortcut to display IntelliSense
- How do I REALLY reset the Visual Studio window layout?
- Visual Studio Deployment Project – Create shortcut to deployed executable
- How do I open a Visual Studio project in design view?
- DataTable visualizer disappeared from my Visual Studio