AvaloniaILSpy icon indicating copy to clipboard operation
AvaloniaILSpy copied to clipboard

Save Code not working for "C# Project"

Open andrfgs opened this issue 3 years ago • 3 comments

When trying to save an assembly code with the option selected as "C# Project", ILSpy only exports a single file, insead of the supposed multiple individual C# files.

It seems, for some reason, AvaloniaILSpy mixes all the code together in a single file, probably, it's ignoring the "C# Project" option.

andrfgs avatar Apr 24 '21 21:04 andrfgs

Anyone know if this is just a temporary bug or a future feature that doesn't exist in this version yet?

KarlOfDuty avatar Dec 31 '21 02:12 KarlOfDuty

I can't reproduce this. Could you give us more information? like version, OS, files, and steps?

jeffreye avatar Jan 01 '22 22:01 jeffreye

Not sure if this is the same issue you're seeing, but it works for me if I manually add a .csproj extension to the default chosen file name in the save dialog. I would have expected it to create a project layout regardless if the "C# project" option is selected, but it only does so if the save file has the right extension, which it doesn't by default.

Running on Ubuntu 21.10 / latest CI build of AvaloniaILSpy

Screenshot from 2022-02-07 22-46-37

Line of code responsible: https://github.com/icsharpcode/AvaloniaILSpy/blob/master/ILSpy.Core/TreeNodes/AssemblyTreeNode.cs#L333

nemec avatar Feb 08 '22 04:02 nemec