handzlikchris / handzlikchris/FastScriptReload

Executing compiler command should include /unsafe param if it's compiling unsafe code

オープン
#166 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
2.2k
フォーク
167
PR マージ指標
30日以内にマージされた PR はありません

説明

Trying out the coolest package ever on my codebase.
Found that unsafe will not compile

```
error CS0227: Unsafe code may only appear if compiling with /unsafe'
at FastScriptReload.Editor.Compilation.DotnetExeDynamicCompilation.ExecuteDotnetExeCompilation
```

Fixed at Assets\FastScriptReload\Scripts\Editor\Compilation\DotnetExeCompilator.cs by adding /unsafe flag

![Image](https://github.com/user-attachments/assets/ca7ef0b7-a0e6-428d-873a-453ffcf4ce33)

BTW I am using Unity 6 and everything works fine. Your are the GOAT hehe

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start in Assets\FastScriptReload\Scripts\Editor\Compilation\DotnetExeCompilator.cs, particularly the ExecuteDotnetExeCompilation path mentioned in the error. Reproduce compilation with unsafe C# code and verify that the compiler command includes /unsafe and completes without CS0227.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, unity
領域
compilers, game-dev
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。