How exclude folder from final build compilation? #3312
trecreator
started this conversation in
General
Replies: 1 comment
|
Automatically? There is no mechanism for auto-detecting what to include or not to include, or I am misunderstanding what you ask for. If what you want is exclude code from the final release build, you can try using preprocessor defines: #if !RELEASE
// What goes here does not get compiled when in Release configuration
#endifor have your own defines, although that would need to modify the #if EXCLUDE_FROM_BUILD
// What goes here does not get compiled when EXCLUDE_FROM_BUILD is defined
#endifand then in the <PropertyGroup>
<DefineConstants>EXCLUDE_FROM_BUILD</DefineConstants>
<!-- Or this if you want to preserve already defined constants -->
<DefineConstants>$(DefineConstants);EXCLUDE_FROM_BUILD</DefineConstants>
</PropertyGroup>Just wondering, why don’t you want to modify the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Então, eu queria criar uma pasta com alguns recursos de debug que só são utilizados no editor. Como excluir automaticamente essa pasta da compilação final do jogo, sem mexer no .csproj?
All reactions