Coder Social home page Coder Social logo

Comments (10)

arvz avatar arvz commented on July 17, 2024 7

@alffanclub Just FYI I've figured out what the actual problem was - it was just that I was running a slightly older version of Visual Studio which doesn't support asmdefs. Once I updated Visual Studio to the latest version everything is fine. Confirmed this with someone else in the forums mentioning the same thing

from assetbundles-browser.

SyllabusGames avatar SyllabusGames commented on July 17, 2024 4

I was able to fix this error message on my project by opening ProjectName.sln in notepad and deleting the duplicate entries at the top.

from assetbundles-browser.

alffanclub avatar alffanclub commented on July 17, 2024 2

Thanks for all the details. Yeah, asmdef files work in mysterious ways that I also don't fully understand :)

I'll test a few different versions of 17.3. If it's isolated to 0f3, we may be ok, but if it's broken for all of 17.3, I may need to diverge the browser development. Hmm.

Well, thanks again. I'm glad you've got a good workaround, and hopefully I can land on a more permanent fix that doesn't cause people too much grief.

from assetbundles-browser.

AFIDclan avatar AFIDclan commented on July 17, 2024 1

None of these worked. After updating VS to the latest version I had to delete all the .csproj files and the .sln from the project, then it rebuilt and worked.

from assetbundles-browser.

alffanclub avatar alffanclub commented on July 17, 2024

@arvz what version of Unity are you using? We added .asmdef files to the project, but I believe there may be some versions of Unity that have issues creating the VS projects when those are present. As a workaround for now, you can probably delete "Editor/com.unity.assetbundlebrowser.Editor.asmdef" and "Tests/Editor/com.unity.assetbundlebrowser.EditorTests.asmdef".
Please let me know which version you're running, and if deleting the asmdef's fixed it.

Thanks for letting us know about this issue,
Bill

from assetbundles-browser.

arvz avatar arvz commented on July 17, 2024

@alffanclub I'm using Unity 2017.3.0f3, If I delete the 2 .asmdef files, this happens when I open the browser:

image

https://pastebin.com/rJniLSDy

But it's an easy enough fix: Deleting Line 5 of AssetBundleBrowserMain.cs:

[assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute("com.unity.assetbundlebrowser.EditorTests")]

Makes it work properly now.

But I am noticing something strange. After I deleted that line I opened the browser - which is working now - but then I added the line back, recompiled and tried the browser again, and it's still working. I even tried deleting and re-adding the folder back into the project and the browser still works even without having touched that line. I guess .asmdef files work in mysterious ways I don't quite understand

from assetbundles-browser.

GuismoW avatar GuismoW commented on July 17, 2024

Hello, I have approximately the same error when opening a CSharp file from Unity into VS
image

The Unity version is 2018.2 Beta 5
I don't know what to do, IntelliSense doesn't work as it should

from assetbundles-browser.

GuismoW avatar GuismoW commented on July 17, 2024

HI. I reinstalled completely updated Visual Studio, and it worked

from assetbundles-browser.

strebern avatar strebern commented on July 17, 2024

Hey ! I had the same issue and updated my Visual Studio Community to the newest version and it worked.

from assetbundles-browser.

Akeronz avatar Akeronz commented on July 17, 2024

Unity 2018.2 had very similar issue right after upgrading from 2018.1

Solved: Updated Visual Studio 2017 community to V.15.7.6 (previously had V.15.3.x). Thanks for the tips guys!

That's why I don't like upgrades.... (aren't those to have fewer bugs, not more??)

from assetbundles-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.