https://discord.umbraco.com logo
Building the Codebase...
# contributing
c
Hi team, I'd love to make contribution to this project and have one issue. I tried to run it on Visual Studio and the app crashed here. I am using VS 2026 18.4.2. Is there anything I am missing? https://cdn.discordapp.com/attachments/882985025803530332/1486975822672691260/image.png?ex=69c775a6&is=69c62426&hm=788771d9b66b1b2da8287bb258a8d9b61d2b3a3fe7297074cce2b2a6a3afae6f&
m
I presume you ae following? https://docs.umbraco.com/contributing/umbraco-cms/contributing/build ? Although I did just try to step through it and there are maybe some minor mistakes.. > To build the front end you'll need to open the command pallet (Ctrl + Shift + P) and run >Tasks: Run Task followed by Client Watch and then run the Client Build task in the same way. think this should be
Client Install
not
Client Watch
Also the example code to run instead of tasks says
npm run dev
... not
npm run build
?
c
Thanks for your tip
Actually, the project is working fine with manual approach
I just tried to run the project by pressing F5 on Visual Studio
If I ran it with
dotnet run --project .\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj
, it worked fine
m
Was just going to say.. just building the client and login scripts and launching via f5 in vscode has completed though did have to go to the debug console to find the port it's running on...
c
I never tried with VSCode
m
c
I was going to use the debugging feature from VS
I will look into it on VSCode
m
debug in VS Code too.. just depends I guess on your IDE of choice....
c
So have you ever tried with Visual Studio?
m
Aaah.. sorry read your initial post as VS Code.. ๐Ÿ™
Should be the same though.
build the required 2 type script libraries and then launch properites file in the solution is the same.
c
So did you try it with Backoffice Launch option in VSCode?
m
nope just the default .Net Core Launch (web)
as that's well the default one..
c
It works fine on VSCode
m
I wonder if the different options are for the area of the codeebase you want to be working on .. just netcore then no need for Vite?
c
But still nnot working in VS
I think that Vite is needed for client side app
You should run that separately, I guess
m
just looking at the docs for VS and it talks about gulp... which I don't think is in use anymore.. ๐Ÿ™
c
I didn't check it carefully yet
I will look into it a bit further and let you know if I find out the answer
m
From VS Insiders (latest build) I can launch debug session and get to the install screen... I did alter to Umbraco.Web.Ui (for Kestrel) over iis express... just out of habit.
But hopefully you get somewhere too... ๐Ÿ™‚
c
Ooohhhh, that's weird
I am using VS Community version
And can it be the issue?
s
The first build, in the background does a npm install and build, that takes absolutely forever, without you being able to see that it's happening in Visual Studio - so it usually just looks like it's crashed, but it isn't. So I recommend just doing the npm steps beforehand, then VS will skip doing that for you.
m
Heh @Sebastiaan so no need to search for anything to do with gulp... like the docs say.. ๐Ÿ™‚
s
that appschema thing is likely just a warning?
lol no.. ๐Ÿ™ˆ ๐Ÿ˜ฑ that's from the angular days
m
Also we've both already done the npm i, npm run build already...
so launching in vs insiders took 30secs for me..
s
Sorry!! I didnยดt actually read the chat, I just saw the first screenshot and noticed that it was just waiting for the frontend builds to succeed
m
Another one I see.. is VS Code says there is a container.. is that docker and should be somehow running the codebase in docker now? https://cdn.discordapp.com/attachments/1486975822949781504/1487050308604399616/image.png?ex=69c7bb05&is=69c66985&hm=3771561610e2ff5946db239070b67b4001420107c65e77badec6f5807c2be74b&
s
That should be updated, it was a little project that fell off the radar - it was incredibly difficult to maintain at the time, should be much easier these days. It would actually really help with people wanting to contribute as you can just do it from the browser on github.com with a proper devcontainer. https://cdn.discordapp.com/attachments/1486975822949781504/1487051533513392279/image.png?ex=69c7bc29&is=69c66aa9&hm=f3a012481ffcacca38ef424db602922c5713de88f97dd53400370285a2444801&
c
In my case, running debug on Visual Studio will be crashed and closed automatically within 30 seconds
s
If VS closes automatically you're going to have to look at some log files, that doesn't sound healthy.. unfortunately I've never seen anything like that before.
20 Views