-
-
Notifications
You must be signed in to change notification settings - Fork 219
Development Environment
Huy Nguyen edited this page Apr 5, 2025
·
2 revisions
This guide will help you set up a complete development environment for Mixcore CMS.
- .NET 9.0 SDK
-
Visual Studio 2022 (Windows)
- Workloads:
- ASP.NET and web development
- .NET desktop development
- Azure development
- Workloads:
-
Visual Studio Code (Cross-platform)
- Extensions:
- C# for Visual Studio Code
- .NET Core Tools
- C# Extensions
- NuGet Package Manager
- GitLens
- Extensions:
- Git
- GitHub Desktop (Optional)
-
Install Chocolatey (Package Manager):
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
-
Install required tools using Chocolatey:
choco install dotnetcore-sdk visualstudio2022community git docker-desktop sql-server-express ssms
-
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install required tools:
brew install --cask visual-studio-code dotnet docker brew install git
- Install required tools:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install -y dotnet-sdk-9.0 git docker.io docker-compose
- Open Visual Studio Installer
- Modify your installation
- Select these workloads:
- ASP.NET and web development
- .NET desktop development
- Azure development
- Install the following extensions:
code --install-extension ms-dotnettools.csharp code --install-extension ms-dotnettools.vscode-dotnet-runtime code --install-extension formulahendry.dotnet-test-explorer code --install-extension jmrog.vscode-nuget-package-manager
-
Install SQL Server
-
Create a new database:
CREATE DATABASE mixcore;
-
Update connection string in
appsettings.json
:{ "ConnectionStrings": { "DefaultConnection": "Server=localhost;Database=mixcore;Trusted_Connection=True;" } }
-
Install Docker Desktop
-
Verify installation:
docker --version docker-compose --version
-
Test Docker:
docker run hello-world
-
Configure Git:
git config --global user.name "Your Name" git config --global user.email "[email protected]"
-
Generate SSH key (if needed):
ssh-keygen -t ed25519 -C "[email protected]"
If you encounter any issues during setup:
- Check the Common Issues guide
- Visit our Community Forum
- Contact Support for enterprise assistance