Steps to create Repo and push to Repo
dotnet new sln -o HelloWorldApp
cd HelloWorldApp
dotnet new mvc -n HelloWorldApp.Web
dotnet sln HelloWorldApp.sln add HelloWorldApp.Web\HelloWorldApp.Web.csproj
dotnet restore
dotnet build --no-restore --configuration release
dotnet publish --no-build --configuration release
cd HelloWorldApp.Web
dotnet C:\Temp\azuredevops\HelloWorldApp\HelloWorldApp.Web\bin\Release\net5.0\HelloWorldApp.Web.dll
Goto browser and localhost:5000\
code .
Create a project in Organization (Azure Devops) and make a private project
- Lets create a Repo
- Push an existing repository from command line and copy Https URL
- Goto command line and cd C:\Temp\azuredevops\HelloWorldApp
- Initialize git with
git init - add a .gitignore file for visual studio (https://github.com/github/gitignore/blob/master/VisualStudio.gitignore)
- git add .
- git commit -m "version1 of code is added"
- git push -u origin --all
COMMENTS