90 Replies
i don't have any linker option
trying to run dotnet publush
Does it build if you explicitly set the Platform to x64?
Or is something in one of the csproj files explicitly targeting x86?
@mtreit 64 doesn't change anything. i tried that before and all of my files have the platforms tag in it
I don't suppose you can share the entire solution (on github for example)?
Because from what you've said you shouldn't be getting those errors.
https://github.com/thebasedtaka/testpls
let me know if you can see that
No, I don't have access.
ok its public
Hmm, still 404
i jumped the gun the mobile auth isn't getting triggered lol
ok its public now
What exact command are you running and from which folder?
dotnet publish
in the aot folder:harold:
this is what i get
do you think its a config error somewhere?
What .NET SDK do you have installed? Looks like you might be missing some native build tools.
dotnet --list-sdks
Are you running from a developer command prompt?
Although actually it builds fine for me even if I don't.
im running it in powershell inside of vscode
What is the output of
where.exe link.exe
?You didn't pass it link.exe as an argument:
Run that as one line
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx86\x86\link.exe
x86
idk why comand prompt worked
Does
where.exe link.exe
print something different in command prompt?
Best guess if you have some environment variables set differently between the two CLI environments.C:\Users\Taka\source\repos\Chapter07\Aot>where.exe link.exe
INFO: Could not find files for the given pattern(s).
```
Huh
I would probably dump the environment variables in each environment to text files and then diff them to see what's different.
is this the wrong path?
Not sure but VSCode might be setting something different? I would check the environment variables on the CLI.
You can run
dir:env
in pwsh or set
in cmd.exeI remember running into an issue of VSC using different env vars than Pwsh
So entirely possible that one uses
System
variables and the other uses User
, for exampleidk if i can diff these i think they have too different outputs
did you remember how to sync them?
Can't say I remember what I did... I think I just edited the variables manually
User and System environment variables get merged together, it should usually be deterministic. Something else might be overriding them though.
Here's the start of my convo with @TeBeCo, maybe it'll help: https://discord.com/channels/143867839282020352/143867839282020352/1246544814166511627
Angius
Great, VS Code's terminal is borked
Quoted by
<@85903769203642368> from #chat (click here)
React with ❌ to remove this embed.
Or TeBe will pop in here and help
its been too long, did i set up my environment variables or did the .net installer do it
The VSCode powershell looks like it's a developer prompt
Which sets a ton of environment variables.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
@TheBasedTaka do you have one of these on your start menu?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
If so, if you open that and try to build does it work?
lol the hell
should i just restart my computer or something
lmfao
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
The max length should be 32K
tl;dr: this was my issue, VSC was using different vars
been doing too much javascript oops
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
mine?
More reason to never use the cursed built-in terminal in VSCode and just use the terminal outside of it like a sane person.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
using vs2022 btw
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
1,897 characters is nothing for a PATH environment variable.
Path can be arbitrarily long
Just the editor in Windows settings cannot handle more than, like, 2k chars
My path is over 5,000 chracters.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
It's not irrelevant.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Windows supports up to 32K characters. If your'e using tools that don't support even a fraction of that, use better tools.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Right, so use a terminal outside of the editor and you're good to go.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
If they want to shoot themselves in the foot that's fine I guess.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
these aren't too long no?
System and User path get combined together
That will give you the real length
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
so you're saying to %razer%/whatever
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
put %USERPROFILE%.dotnet\tools into system env and it works btw
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
oh
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
:harold:
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
oh
i get what you mean
think i should just re install that then
or should i just change the env
idk why i would even click the 86 checkbox
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
weird
i don't think i did any of that manually
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
i think that one was probably me somehow
i changed that
Rate my path : https://paste.mod.gg/cnkjcyailcgj/0
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
In my defense: timezones
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
:this_is_fine:
If you have no further questions, please use /close to mark the forum thread as answered