質問

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