GithubHelp home page GithubHelp logo

Comments (6)

vovgou avatar vovgou commented on July 4, 2024

Assets 目录下的 csc.rsp 也会影响到 upm 包安装的插件,可能会导致编译错误。

如使用 C# 11 时会导致 Loxodon Framework TextMeshPro 错误

Library\PackageCache\[email protected]\Runtime\Framework\TextFormatting\DateTimeFormat.cs(1177,26): error CS8347: Cannot use a result of 'DateTimeFormat.ExpandPredefinedFormat(ReadOnlySpan<char>, ref DateTime, ref DateTimeFormatInfo, ref TimeSpan)' in this context because it may expose variables referenced by parameter 'dateTime' outside of their declaration scope

Library\PackageCache\[email protected]\Runtime\Framework\TextFormatting\DateTimeFormat.cs(1177,61): error CS8166: Cannot return a parameter by reference 'dateTime' because it is not a ref parameter

在 C# 9 或 10 语法是允许的,11中不允许。

示例可见

https://github.com/MonoLogueChi/LoxodonFrameworkCscBug.git

你使用的Unity版本是哪个版本?我测试一下!

from loxodon-framework.

MonoLogueChi avatar MonoLogueChi commented on July 4, 2024

你使用的Unity版本是哪个版本?我测试一下!

2022.3.27f1,理论上 2022.3.12 以后的版本都可以

from loxodon-framework.

vovgou avatar vovgou commented on July 4, 2024

你使用的Unity版本是哪个版本?我测试一下!

2022.3.27f1,理论上 2022.3.12 以后的版本都可以

我测试了下,我在[email protected]中配置csc.rsp 的版本为9.0无效啊。
你可以试试,你将 [email protected]从Library/PackageCache 目录下拷贝到
/Packages/ 目录下,变成一个本地的upm包,就可以编辑了。你在里面添加csc.rsp看看,如果有效你可以这样解决这个问题。

from loxodon-framework.

MonoLogueChi avatar MonoLogueChi commented on July 4, 2024

我测试了下,我在[email protected]中配置csc.rsp 的版本为9.0无效啊。 你可以试试,你将 [email protected]从Library/PackageCache 目录下拷贝到 /Packages/ 目录下,变成一个本地的upm包,就可以编辑了。你在里面添加csc.rsp看看,如果有效你可以这样解决这个问题。

我已经解决了,解包[email protected],添加csc.rsp后再打包,使用本地包

from loxodon-framework.

MonoLogueChi avatar MonoLogueChi commented on July 4, 2024

image

from loxodon-framework.

MonoLogueChi avatar MonoLogueChi commented on July 4, 2024

我把修复后的工程推送到仓库里了,可以看 https://github.com/MonoLogueChi/LoxodonFrameworkCscBug/tree/a1e8b44ba272613c9a7e49e799275ed529c9f5a4

from loxodon-framework.

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.