Comments (6)
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中不允许。
示例可见
你使用的Unity版本是哪个版本?我测试一下!
from loxodon-framework.
你使用的Unity版本是哪个版本?我测试一下!
2022.3.27f1,理论上 2022.3.12 以后的版本都可以
from loxodon-framework.
你使用的Unity版本是哪个版本?我测试一下!
2022.3.27f1,理论上 2022.3.12 以后的版本都可以
我测试了下,我在[email protected]中配置csc.rsp 的版本为9.0无效啊。
你可以试试,你将 [email protected]从Library/PackageCache 目录下拷贝到
/Packages/ 目录下,变成一个本地的upm包,就可以编辑了。你在里面添加csc.rsp看看,如果有效你可以这样解决这个问题。
from loxodon-framework.
我测试了下,我在[email protected]中配置csc.rsp 的版本为9.0无效啊。 你可以试试,你将 [email protected]从Library/PackageCache 目录下拷贝到 /Packages/ 目录下,变成一个本地的upm包,就可以编辑了。你在里面添加csc.rsp看看,如果有效你可以这样解决这个问题。
我已经解决了,解包[email protected],添加csc.rsp后再打包,使用本地包
from loxodon-framework.
from loxodon-framework.
我把修复后的工程推送到仓库里了,可以看 https://github.com/MonoLogueChi/LoxodonFrameworkCscBug/tree/a1e8b44ba272613c9a7e49e799275ed529c9f5a4
from loxodon-framework.
Related Issues (20)
- What is the reason of catching all exceptions in `Subject<>.Publish` HOT 1
- 請問關於數據綁定,如何注入委託函數 HOT 1
- Databinding Examples HOT 2
- log4 插件导入会报错 HOT 1
- Related to enter play mode settings HOT 6
- Git tag v2.4.5 is not aligned with the version update commit HOT 1
- [Fody]当项目中有其他包引用了Mono.Cecil相关的库文件会报错 HOT 7
- Service container doesn't register generics properly HOT 3
- ProxyType.cs的IsParameterMatch存在问题 HOT 2
- Encryption HOT 3
- Inquiry HOT 3
- [Feature] Split the framework further HOT 1
- Loxodon.Framework.Prefs.DefaultEncryptor带参数的构造函数中key和iv没有赋值啊??? HOT 1
- 请教一下使用ResourcesViewLocator加载的资产什么时候释放呢 HOT 1
- 在FormattableTextMeshProUGUI & TemplateTextMeshProUGUI中Text.text会被自身的OnEnable设置为初始值 HOT 4
- InteractionTargetProxy的Target被意外释放 HOT 4
- 【功能需求】DataBinding:加入数据更新事件监听 HOT 1
- When will v3.0 be released? HOT 1
- Loxodon.Framework.Views.TextMeshPro.GenericParameters在绑定引用类型时有概率崩溃 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loxodon-framework.