Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2013 Database Project without generating dll

How to disable generating dll in VS2013 Database Project?

I don't use SQLCLR at all.

like image 260
linquize Avatar asked Mar 16 '14 15:03

linquize


1 Answers

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>
like image 120
Solomon Rutzky Avatar answered Sep 28 '22 08:09

Solomon Rutzky