문제

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>

다른 팁

SSDT must generate a dll as the MSBuild Key Output to enable other project types to reference SSDT. Unfortunately many project systems in VS assume it's references generate a dll and when they don't unfortunate things happen.

You could just add

del $(TargetPath)

To the post-build event in Database Project.

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top