Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0b19
Issue ID
663387
Regression
No
Building Asset Bundles causes compile errors in scripts using System.IO.File
Steps to reproduce this issue:
-Open the attached project
-Open the coffeeIpsum scene.
-Press play
-The debug log should read the text file and have the "coffeeIpsum" text.
-Stop the scene.
-Build the Asset Bundles from the Menu: (AssetBundles->Create->CreateNewAssetDatabase)
-Open Script ReadCoffeeIpsum.cs
-Make a minor change (like adding a Debug.Log to the start method)
-Save the file
-Switch back into Unity
-You should now be getting the error message:
Assets/Scripts/ReadCoffeeIpsum.cs(39,55): error CS0117: `System.IO.File' does not contain a definition for `ReadAllText'
This error will be shown until you delete library folder and open project again
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Add comment