Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.0b5
Issue ID
911045
Regression
No
Composition namespace in System.ComponentMode namespace is not recognized by Unity
To reproduce:
1. Open the project, attached by tester (noCompositionBug.zip)
2. Open dllTest.cs script in Monodevelop
3. In Monodevelop, go to Project -> Edit References
4. Add reference to System.ComponentModel.Composition
5. In the script, add line: using System.ComponentModel.Composition
6. Go back to Unity
7. Observe the console
Expected: references added in Monodevelop are recognized when compiling code in Unity
Actual: Unity does not recognize System.ComponentMode.Composition namespace even though it is added in Monodevelop
Reproduced in 2017.1.0b1, 2017.1.0b2, 2017.1.0b3, 2017.1.0b4, 2017.1.0b5
Could not test for regression, because System.ComponentModel.Composition was introduced in .NET 4.6 and you could not use .NET 4.6 Scripting Runtime Version in 5.6 or 5.5.
Won't fix: The synchronization between the .csproj file and the Unity editor is only one-way, from Unity to the .csproj. So changes made in Visual Studio to add a project reference will not be seen by Unity. To add a reference to an assembly in the class libraries, the mcs.rsp file must be used. In general, mcs.rsp can provide the C# compiler with many different command line arguments to control the build
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
- Crash on DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate when opening a specific project
- Crash on memset_repstos when pressing a UI button while in Play Mode
Add comment