Need to move one of my files to the tools directory #103
-
First: thanks for this tool! I'm trying to put a file that is in /bin/debug/file.dacpac into the /tools directory, as this is a requirement for a specific type of build described in msbuild.sdk.sqlproj project
The problem is the file is copied with the whole relative dir Is there a way I can remove the RelativeDir ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sure thing, just build the full path you want to have: <PackageFile Include="**\bin\**\*.dacpac" PackagePath="tools\%(RelativeDir)%(Filename)%(Extension)" /> Note that since you're using double |
Beta Was this translation helpful? Give feedback.
Sure thing, just build the full path you want to have:
Note that since you're using double
**
I'm not sure what the%(RelativeDir)
metadata will be, but you can build the actual final location for every item you want to include. This is plain MSBuild syntax 👍