Örnek Web Api Yaratmak
.NET ile Web Api projesi oluşturmak istediğimizde, aşağıdaki dotnet komutlarını kullanarak bir Web Api projesi yaratabiliriz.
Tüm proje dosyalarımızla ilgili bilgileri bir arada tutmamıza yarayan solution dosyamızı ise dotnet new sln {SolutionAdi} komutu ile oluşturabiliriz.
- Örnek:
dotnet new sln BookStoreSoln
Oluşturdumuz solution dosyasına kullanacağımız projeleri eklemek için aşağıdaki gibi dotnet sln add {ProjeAdi} komutunu kullanabiliriz.
- Örnek :
dotnet sln add BookStoreWebApi
Inceleme Önerisi: dotnet new --list komutu ile webapi proje tipi dışında oluşturabileceğimiz tüm proje tiplerini incelemek için tıklayınız.
Quiz
Answer the questions to check your understanding.
This lesson includes a short quiz.
Lesson discussion
Swap insights and ask questions about .Net Core
Be the first to start the discussion
Ask a question or share your thoughts about this lesson.