ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Ilspy About unity

Open zclucas opened this issue 1 year ago • 3 comments

I want to use this plug-in in vs. I use the unity platform C # language for development, but when I right-click vs ->open the code with ilspy, I prompt:

ILSpy Addln

The project output for 'Assembly CSharp' could not be found for nlysis

Expected path:

"D://Unity//Projects//XXX//Project Path//Temp//Bin//Debug//Assembly-CSharp.dll", Would you like to build the solution?

But in fact, the default assembly of Unity is: project path//Library//ScriptAssemblies//xxxx.dll, not: project path//Temp//Bin//Debug//Assembly-CSharp.dll. I want to modify the default assembly of Unity, but it is fruitless. It seems that it is impossible to modify the relevant configurations of ilspy in vs.

So you can only open ilspy through VS, open the relevant assembly according to the directory, and find the corresponding code block. This is undoubtedly very tedious. If you can handle this problem, it would be great

zclucas avatar Oct 05 '23 17:10 zclucas

@Rpinski most likely something with project type guids I presume?

christophwille avatar Oct 07 '23 13:10 christophwille

Looks like we get the Temp path as output path from project system. Don't know what's special with Unity projects here, maybe they compile the assembly to Temp and move it later. I have to investigate more, in worst case we'll need to hardcode this for Unity case.

Rpinski avatar Oct 08 '23 11:10 Rpinski

i meet the same problem, i agree to let user to customize the dll path

zhuangce avatar Oct 12 '23 09:10 zhuangce