.NET Core Application using SQLite and Running on Raspberry Pi / Linux / ARM

Console .NET Core Application using SQLite.


# create new console .net core application using command line
dotnet new console -o DotNet.RaspberryPi.App2

# change directory
cd DotNet.RaspberryPi.App2

# add ef nuget package to project
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet restore

# open project in vs code – open vs code using command line
code . #run visual studio code from current directory

# build database using entity framework migrations / update command
dotnet ef migrations add InitialCreate
dotnet ef database update


dotnet publish -c Release -r linux-arm


To Raspberry Pi / Linux / ARM device using SCP / SSH remote connection. Important part: the executable file is located in bin/Release/netcoreapp2.1/linux-arm/publish. You will also need to run chmod +x if run under other user than root.

Example: scp -r ./bin/Release/netcoreapp2.1/linux-arm root@

More on this can be read on previous published article: Create .NET Core Application And Deploy it to Raspberry Pi / ARM Device / Linux







Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s