-
Notifications
You must be signed in to change notification settings - Fork 201
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
[NativeAOT] LNK1181: cannot open input file / Code 1181 #1748
Comments
If I downgrade the IlCompiler version to |
Could plese you open Do the instructions from https://github.com/dotnet/runtimelab/tree/feature/NativeAOT/samples/NativeLibrary work for you? The publish line from those instructions is |
It comes from Newtonsoft.Json but I don't reference/use this library at all 🤔
Using exactly this line has no effect, it produces the same error: |
It looks like another manifestation of dotnet/runtime#60061. Can you try setting |
Yep that did the trick. Not sure why it only happens with version |
Yes, it is VS bug that will be fixed in the next VS update. |
The older versions did not look for VS 2022. They used VS 2019 that did not have this bug. |
I'm using VS 2022 and I have Desktop C++ package installed. I have a DLL project with literally nothing in it. Trying to publish always errors with:
dotnet publish /p:NativeLib=Shared -c Release --self-contained -r win-x64
Trying to publish without
--self-contained
results in:error NETSDK1102: Assembly sizing is not supported for the selected publishing configuration. Make sure to publish a standalone app.
The text was updated successfully, but these errors were encountered: