Skip to content

[AOT]LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 [ #2281

Closed

Description

@lozn00

image

I TRY uninstall 7.0.5 but 7.0.302 for visual studio cannot to uninstall or replase 7.0.202 for visual studio

C:\Program Files\dotnet\sdk\7.0.302\Sdks\Microsoft.DotNet.ILCompiler\build\Microsoft.NETCore.Native.targets(350,5): err
or MSB3073: 命令“"D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\link.
exe" @"obj\YTLSX_R\net7.0\win-x64\native\link.rsp"”已退出,代码为 1123。 [D:\dev\company_project\WEB_webapi\webapi_mes\webap
i_mes.csproj]

image

Activity

  1. lozn00 commented on May 19, 2023

    @lozn00
    Author

    if from visual studio uninstall ,will uninstall all package

  2. yowl commented on May 19, 2023

    @yowl
    Contributor

    Hi, this repo is for the experimental branches of NativeAOT. It looks like you are targeting win-x64 which is now supported by https://github.com/dotnet/runtime . You should post issues with .net 7 NativeAOT there, thanks.

  3. lozn00 commented on May 19, 2023

    @lozn00
    Author

    oh thank you ,i delete too file

  4. lozn00 commented on May 19, 2023

    @lozn00
    Author

    Because there was a problem with the code running after AOT was compiled, I deleted many 7.0 folders on the computer and uninstalled it, resulting in this problem that cannot be fixed regardless of whether it is reinstalled or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions