Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong exported assembly type #3408

Open
greenozon opened this issue Feb 23, 2025 · 0 comments
Open

Wrong exported assembly type #3408

greenozon opened this issue Feb 23, 2025 · 0 comments
Labels
Bug Decompiler The decompiler engine itself

Comments

@greenozon
Copy link

Input code

select System.Windows.Forms assembly from GAC
save it as project (CTRL + S)

Erroneous output

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <ProjectGuid>{765CD0C6-8215-4C65-B656-A26F8AFE4F8D}</ProjectGuid>
    <ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <OutputType>Exe</OutputType>
    <LangVersion>9.0</LangVersion>
    <AssemblyName>System.Windows.Forms</AssemblyName>
    <TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <WarningLevel>4</WarningLevel>
    <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
  </PropertyGroup>

for some reason generated csproj is having
Exe
instead of
Library

Details

  • ILSpy version 9.0.0.7915+53522c45f887c4dc8f490815f40a724e4e9e1559
  • .NET version 8.0.11+9cb3b725e3ad2b57ddc9fb2dd48d2d170563a8f5
@greenozon greenozon added Bug Decompiler The decompiler engine itself labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Decompiler The decompiler engine itself
Projects
None yet
Development

No branches or pull requests

1 participant