error on new WPF project
When I make a new WPF app project, I immediately get an error. I have made other WPF apps today which didnt give me that error. I don't know what is wrong.
Could not find a part of the path 'C:\Users\Gebruiker\Documents.Howest graduaat programmeren.Programming .Basics\PRB-02-Variabelen\Prb.Variables.Operators\Prb.Variables.Operators.Wpf\obj\Debug\net9.0-windows\Prb.Variables.Operators.Wpf_pw112xig_wpftmp.GeneratedMSBuildEditorConfig.editorconfig'.
38 Replies
I just deleted the solution and created it again and debugged and it just gives me the same error. I didn't even do anything yet except debugging
ero
REPL Result: Success
Result: int
Compile: 153.526ms | Execution: 17.972ms | React with â to remove this embed.
I just switched courses and Im starting next week. I missed 2 weeks so I have to fix it so I can follow next week
whats this
Your file path is too long
bruh
How do you even manage that đ
how can it even be too long
lemme try smth
whats the limit
Just gotta disable path length limit
256
https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html
You could just rename your insanely long documents folder
By default, paths on Windows are limited to 260 characters for historical reasons.
yeah I changed the project and solution name and it works now
Imma increase the limit
256 is the file name, 260 for the full path
drive letter,
:
, \
, null terminatorAh, gotcha
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
should do the trick to enable long pathsNeeds a reboot too, iirc
why is that even a thing
Historical reasons.
Basically thereâs a constant, MAX_PATH in the Windows headers used to build C and C++ apps.
Apps would make path buffers of that size for use with OS calls involving paths.
Thatâs 260.
And for those apps, you canât put a larger path in those buffers, otherwise theyâll blow up.
So, to protect existing apps, Windows doesnât do >260 character paths unless you
1. Enable that registry setting, and
2. (iirc) Your applicationâs manifest indicates it has long path support
well I put everything in my OneDrive folder and now its fine
just fyi, you should learn and use a version control system like git for code
yeah I will learn that throughout this semester
thing is
I did engineering this first semester but I didnt rly like it
I was first planning on just continuing it but realized I didnt have much classes that interest me
I did some research to find another course or whatever its called and put my mind on a bachelor in software engineering. However I cant start that in february but can only start in september
So then I went to a study coach and asked for help and she told me I could do a graduate in programming for the rest of this year for some exemptions when I go study software engineering next year
Problem is they already started 2 weeks ago so now Im learning what they learnt in those weeks
I will learn how to use git and github but I gotta wait making an account till I get my school email
Can't you just use your own email?
This is what he told me:
Git install - please wait with your account until you have received a howest email address
that seems like a bad idea. you'll likely want to use the account for things that aren't school related. and you'll probably lose access to the email address once you leave the school
I'll probably make another account for myself too yeah
Im reading through the first 2 chapters of "continuous integration basics" right now so I'll probably see what to do
apparently u can add multiple email adresses? Or so it says in this presentation.
Out school email has to be our primary but I think we can add our personal as secondary or smth
When it comes to Git, you can even set different emails per repo if you want, and you can always change it
Just
git config user.email "[email protected]"
When it comes to Github, the account you make requires an email, yes
Like any other online servicei think this is what the instructions mean anyway
It, too, can be changed
these
it mentions git install, not github account setup
so when I leave the school I can change the emails to my personal and I will keep everything
Yeah
You will need access to your school email to approve that change tho
this email can also be changed when I leave?
So you won't be able to change it after you lose access to your school email
I will ask the profs next week they will provide me more information probably
btw
Even if you disable this max path limitation I believe VS has its own hard limit
It's unable to build if the path exceeds a certain limit. I believe this is by itself not fixable unless this was (finally) fixed at a later point
Best thing you can do here is to just use shorter folder paths.
Documents.Howest graduaat programmeren.Programming .Basics
by itself is nuts đ
Also the reason why I just put everything in C:\Projects
just to be sureteacher got some jokes

Lol, I got a Displate of something similar
Succes met je project đ
ohh u speak dutch too?
Yup
nice