Created
July 11, 2012 04:27
-
-
Save jstangroome/3087991 to your computer and use it in GitHub Desktop.
MSBuild snippet to disable the default DLL output of a C# class library project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<!-- the usual stuff --> | |
<!-- BEGIN disable default compile and copy binary behaviour --> | |
<Target Name="CoreCompile" /> | |
<PropertyGroup> | |
<SkipCopyBuildProduct>true</SkipCopyBuildProduct> | |
</PropertyGroup> | |
<!-- END disable default compile and copy binary behaviour --> | |
</Project> |
<GenerateDependencyFile>False%lt;/GenerateDependencyFile> does nothing.
Note you may also want to turn of debug symbols to also stop generation of a .pdb file.
EDIT: and if you're doing that, use the following code, both need these values:
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a Core project you might want to add the following to prevent the .deps.json file from being created:
<GenerateDependencyFile>False</GenerateDependencyFile>