Offline Content Access
- Install az as per instrcution here https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest
- Make sure to configure the correct IP address in the Program.cs file
- Run the following command from the root folder if on an ubuntu 18.04-x64 machine, otherwise change the runtime evnironment:
dotnet publish CapDeviceManager.sln -c Release -r ubuntu.18.04-x64
##Instructions on developing on Ubuntu
Instructions on configuring and running CapDeviceManager on a linux machine
- Download dotnet SDK for Ubuntu 18.04 using these commands
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
More information about the installation is included here
-
Download monodevelop in order to build the project here
-
Follow the manual install instructions for Azure CLI displayed here
1.Open the Project on MonoDevelop and configure build option
- Right click on CapDeviceManager in the explorer view in MonoDevelop and click on Restore NuGet Packages
- Next, go to Edit > Preferences> Projects> SDK Locations > .NET CORE
- Click on the 3 dots on the right side of the location input field
- Go to /usr/share/dotnet/dotnet and choose it.
- Close preferences and rebuild the project
- Run the project, if the browser doesn't open up, manually go to localhost:5000 or replace localhost with machine's IP address
-
Open up the terminal and navigate to the CapDeviceManager folder
-
Run the following commands:
dotnet restore
dotnet msbuild CapDeviceManager.sln
- Navigate to the CapDeviceManager.csproj and run following command to run project
dotnet run CapDeviceManager.csproj
- Open up
https://localhost:5000
on your machine or replace localhost with machine's IP address =======
Please install azure CLI on machine where you are trying this project. Make sure az verion is 2.1.* and above, and add extension with command: az extension add --name azure-cli-iot-ext