From db68ded117e80111edbde428994072946d74f961 Mon Sep 17 00:00:00 2001 From: Luce Carter Date: Mon, 8 Jan 2018 09:06:18 +0000 Subject: [PATCH 1/2] Removed reference to dotnet run As it stands, Xamarin Forms is not supported by DotNet CLI so on all 3 machines I tried, I got the same error about Forms when doing dotnet run so I have updated the readme to reflect what I found was the easiest way to run the samples. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7dbe022..76fe372 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,11 @@ git clone git@github.com:praeclarum/Ooui.git cd Ooui dotnet restore -dotnet run --project Samples/Samples.csproj ``` -Now point your browser at [http://localhost:8080/shared-button](http://localhost:8080/shared-button) +Now open the .sln file in Visual Studio for Mac or Visual Studio 2017 (note: you may need to ensure it is being run as administrator) and ensure Samples is set as the start up project and run it. + +This will open the default starting page for the Samples. Now point your browser at [http://localhost:8080/shared-button](http://localhost:8080/shared-button) You should see a button that tracks the number of times it was clicked. The source code for that button is shown in the example below. From da3e0355715056af3ddc09c7b05517810f7bab71 Mon Sep 17 00:00:00 2001 From: Luce Carter Date: Tue, 9 Jan 2018 08:37:04 +0000 Subject: [PATCH 2/2] Updated build steps to use msbuild Instead of the convoluted method of opening in VS, have updated to use msbuild and the --no-build flag as suggested by Andrew Hoefling --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76fe372..910b313 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,11 @@ git clone git@github.com:praeclarum/Ooui.git cd Ooui dotnet restore +msbuild +dotnet run --project Samples/Samples.csproj --no-build ``` -Now open the .sln file in Visual Studio for Mac or Visual Studio 2017 (note: you may need to ensure it is being run as administrator) and ensure Samples is set as the start up project and run it. +There is currently an issue with Xamarin.Forms and building from the dotnet cli, so for now we use the msbuild command and then set the --no-build flag on dotnet run but this will eventually change when the issue is resolved. This will open the default starting page for the Samples. Now point your browser at [http://localhost:8080/shared-button](http://localhost:8080/shared-button)