Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AT3 TextureFile.DecodeManaged throws "Could not load file or assembly 'System.Half'" #111

Open
SwingCosmic opened this issue Jul 16, 2023 · 1 comment

Comments

@SwingCosmic
Copy link

Environment:

  • .NET 7
  • AssetsTools.NET.Texture 1.0.0-preview2
  • AssetsTools.NET 3.0.0-preview3
System.IO.FileNotFoundException: Could not load file or assembly 'System.Half, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. 系统找不到指定的文件。
File name: 'System.Half, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at AssetsTools.NET.Texture.TextureFile.DecodeManaged(Byte[] data, TextureFormat format, Int32 width, Int32 height, Boolean useBgra)
   at AssetsTools.NET.Texture.TextureFile.GetTextureData(String rootPath, Boolean useBgra)
   at AssetsTools.NET.Texture.TextureFile.GetTextureData(AssetsFileInstance inst)

If I copy this method code and run directly this exception will not to throw any more.

Actually, System.Half is in System.Runtime.dll, not System.Half.dll

image

@nesrak1
Copy link
Owner

nesrak1 commented Jul 16, 2023

I thought I already fixed this on the last update, but this can be solved by building directly for .net 6 (what I'm doing for UABEA right now.) I'm going to figure out Monobehaviours being broken and make one last prerelease for all the packages. When I do that I'll make sure to build this for .net 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants