Search Issue Tracker
Fixed in 2022.1.X
Votes
2
Found in
2020.3
2021.1
2021.1.3f1
2021.2
Issue ID
1330363
Regression
No
DLL with Define Constraint included in BuildPlayerOptions.extraScriptingDefines is not included in Build
Steps to reproduce:
1. Download and open the user's attached project ("DefineConstraintsIssue-2021.1.zip")
2. In the menu bar click Test > Build
Expected results: build completes successfully
Actual result: build fails with the error "The name 'NLog' does not exist in the current context"
Reproducible with: 2020.3.8f1, 2021.1.7f1, 2021.2.0a16
Could not test: 2019.4, 2018.4 - BuildPlayerOptions.extraScriptingDefines are not introduced in these versions
Notes:
- The issue does not reproduce when building for Windows or MacOS Standalone
- The issue reproduces when building for Android or IOS
- The issue does not reproduce when building through Unity's Build Settings window
Comments (3)
-
StinkySteak
May 10, 2024 10:43
Still happened on 2021.3.38f1, this is LTS Version Up The Issue!
-
Eldrih
Feb 27, 2023 17:15
This bug still remains in 2021.3.16f1 while building from cli.
-
Peter77
May 06, 2021 18:37
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
- “ReferenceError: Pointer_stringify is not defined” error is thrown when downloading a file
- GameObjects are not rendered when using a fragment shader with RWStructuredBuffer in URP
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12