Skip to content

Crash from LSR #180

@builder-main

Description

@builder-main

Hi Chris,
We found there are crash from here
in LSR, DynamicCompilationBase.cs:66

AssemblyCsharpFullPath = SessionStateCache.GetOrCreateString(
                $"FSR:AssemblyCsharpFullPath", 
                () => AssetDatabase.FindAssets("Microsoft.CSharp")
                                .Select(g => new System.IO.FileInfo(UnityEngine.Application.dataPath + "/../" + AssetDatabase.GUIDToAssetPath(g)))
                                .First(fi => fi.Name.ToLower() == "Microsoft.CSharp.dll".ToLower()).FullName

`Sequence contains no matching element

Microsoft.CSharp wont find anything in assets as FSR is in package

We tried this
() => AssetDatabase.FindAssets("Microsoft.CSharp", new string[]{ "Packages", "Assets"})

from https://discussions.unity.com/t/assetdatabase-findassets-not-working-for-packages/707087/10

But seems it was not enough and it still can't find it, we're on unity 6.1.14f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions