I have a c# project made in visual studio 2019, i have the following post build script:…
- User
I have a c# project made in visual studio 2019, i have the following post build script:
mkdir (OutDir)x86 2> NUL echo F|xcopy "(OutDir)x64\SQLite.Interop.dll" /d /y echo F|xcopy "(OutDir)x86\SQLite.Interop.dll" /d /y
- Assistant
The issue is with the paths used in the post-build script. It seems like the paths are not correctly configured for the current output directory.
Update your post-build script to use relative paths instead of the absolute paths. Here's an example of how you can modify the script:
mkdir "$(OutDir)x64" 2> NUL mkdir "$(OutDir)x86" 2> NUL xcopy "$(ProjectDir)..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.118.0\build\net46\x64\SQLite.Interop.dll" "$(OutDir)x64\SQLite.Interop.dll" /d /y xcopy "$(ProjectDir)..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.118.0\build\net46\x86\SQLite.Interop.dll" "$(OutDir)x86\SQLite.Interop.dll" /d /yMake sure the post-build script is properly nested within the
PropertyGrouptags in your.csprojfile.