How to disable generating dll in VS2013 Database Project?
I don't use SQLCLR at all.
Assuming that the goal is simply to not have the DLL in the output folder (e.g. \bin\{configuration}) along with the .SQL and .DACPAC files, the cleanest way to prevent this seems to be adding the following XML element under the main <PropertyGroup>
element in your project's .sqlproj file:
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
The DLL is technically still generated, but that happens in the \obj\{configuration} folder.
EDIT:
If you also want to prevent the PDB file from being copied into the output folder, then use the following element in the same location as noted above:
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With