diff --git a/.gitignore b/.gitignore index ce3e1b1c..21e5df70 100644 --- a/.gitignore +++ b/.gitignore @@ -253,3 +253,6 @@ paket-files/ #SoundCloud *.sonarqube/ + +#VS Code +.vscode diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 7feff0a1..7b41e313 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,3 @@ # Contributor Code of Conduct -Please refer to the contributor Code of Conduct at the Home repository [here](https://github.com/nanoframework/Home/blob/master/CODE_OF_CONDUCT.md. +Please refer to the contributor Code of Conduct at the Home repository [here](https://github.com/nanoframework/Home/blob/main/CODE_OF_CONDUCT.md. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a6a6c10..bf714b60 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Contributing to **nanoFramework** -Please refer to the contribution guidelines at the Home repository [here](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md). +Please refer to the contribution guidelines at the Home repository [here](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md). diff --git a/README.md b/README.md index df45f1c9..cd453daf 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,25 @@ -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_nf-debugger&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_nf-debugger) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_nf-debugger&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_nf-debugger) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/nanoframework/Home/blob/master/LICENSE) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg)](https://discord.gg/gCyBu8T) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_nf-debugger&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_nf-debugger) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_nf-debugger&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_nf-debugger) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/nanoframework/Home/blob/main/LICENSE) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg)](https://discord.gg/gCyBu8T) -![nanoFramework logo](https://github.com/nanoframework/Home/blob/master/resources/logo/nanoFramework-repo-logo.png) +![nanoFramework logo](https://github.com/nanoframework/Home/blob/main/resources/logo/nanoFramework-repo-logo.png) ----- ### Welcome to the **nanoFramework** debugger libraries repository! -The debugger library provides debugging and communication capabilities for .NET and UWP applications to debug and communicate with **nanoFramework** devices. -It's provided as source code and as a Nuget package that can be integrated on any application. +The debugger library provides debugging and communication capabilities to .NET applications and allows debugging and communicate with .NET **nanoFramework** devices. +It's provided as source code and as a NuGet package that can be integrated on any application. This repo contains: -- **nanoFramework** debugger library for UWP - **nanoFramework** debugger library for .NET ## Build status -| Component | Build Status | NuGet Package (.NET) | NuGet Package (.UWP) | -|:-|---|---|---| -| Debugger Library | [![Build Status](https://dev.azure.com/nanoframework/debugger/_apis/build/status/nanoframework.nf-debugger?branchName=develop)](https://dev.azure.com/nanoframework/debugger/_build/latest?definitionId=33?branchName=master) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.Tools.Debugger.Net.svg)](https://www.nuget.org/packages/nanoFramework.Tools.Debugger.Net/) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.Tools.Debugger.UWP.svg)](https://www.nuget.org/packages/nanoFramework.Tools.Debugger.UWP/) -| Debugger Library (preview) |[![Build Status](https://dev.azure.com/nanoframework/debugger/_apis/build/status/nanoframework.nf-debugger?branchName=develop)](https://dev.azure.com/nanoframework/debugger/_build/latest?definitionId=33?branchName=develop) | [![](https://badgen.net/badge/NuGet/preview/D7B023?icon=https://simpleicons.now.sh/azuredevops/fff)](https://dev.azure.com/nanoframework/feed/_packaging?_a=package&feed=sandbox&package=nanoFramework.Tools.Debugger.Net&protocolType=NuGet&view=overview) | [![](https://badgen.net/badge/NuGet/preview/D7B023?icon=https://simpleicons.now.sh/azuredevops/fff)](https://dev.azure.com/nanoframework/feed/_packaging?_a=package&feed=sandbox&package=nanoFramework.Tools.Debugger.UWP&protocolType=NuGet&view=overview) +| Component | Build Status | NuGet Package (.NET) | +|:-|---|---| +| Debugger Library | [![Build Status](https://dev.azure.com/nanoframework/debugger/_apis/build/status/nanoframework.nf-debugger?repoName=nanoframework%2Fnf-debugger&branchName=main)](https://dev.azure.com/nanoframework/debugger/_build/latest?definitionId=33&repoName=nanoframework%2Fnf-debugger&branchName=main) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.Tools.Debugger.Net.svg)](https://www.nuget.org/packages/nanoFramework.Tools.Debugger.Net/) | +| Debugger Library (preview) | [![Build Status](https://dev.azure.com/nanoframework/debugger/_apis/build/status/nanoframework.nf-debugger?repoName=nanoframework%2Fnf-debugger&branchName=develop)](https://dev.azure.com/nanoframework/debugger/_build/latest?definitionId=33&repoName=nanoframework%2Fnf-debugger&branchName=develop) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.Tools.Debugger.Net.svg)](https://www.nuget.org/packages/nanoFramework.Tools.Debugger.Net/) | ## Feedback and documentation @@ -30,7 +29,7 @@ Join our Discord community [here](https://discord.gg/gCyBu8T). ## Credits -The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md). +The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/main/CONTRIBUTORS.md). ## License diff --git a/Serial Test App UWP/App.xaml b/Serial Test App UWP/App.xaml deleted file mode 100644 index 598f329b..00000000 --- a/Serial Test App UWP/App.xaml +++ /dev/null @@ -1,8 +0,0 @@ - - - diff --git a/Serial Test App UWP/App.xaml.cs b/Serial Test App UWP/App.xaml.cs deleted file mode 100644 index a937c145..00000000 --- a/Serial Test App UWP/App.xaml.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright (c) .NET Foundation and Contributors -// See LICENSE file in the project root for full license information. -// -using nanoFramework.Tools.Debugger; -using System; -using System.Diagnostics; -using Windows.ApplicationModel; -using Windows.ApplicationModel.Activation; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Navigation; - -namespace Test_App_UWP -{ - /// - /// Provides application-specific behavior to supplement the default Application class. - /// - sealed partial class App : Application - { - internal static PortBase NanoFrameworkSerialDebugClient; - - - /// - /// Initializes the singleton application object. This is the first line of authored code - /// executed, and as such is the logical equivalent of main() or WinMain(). - /// - public App() - { - InitializeComponent(); - Suspending += OnSuspending; - } - - /// - /// Invoked when the application is launched normally by the end user. Other entry points - /// will be used such as when the application is launched to open a specific file. - /// - /// Details about the launch request and process. - protected override void OnLaunched(LaunchActivatedEventArgs e) - { - -#if DEBUG - if (Debugger.IsAttached) - { - DebugSettings.EnableFrameRateCounter = true; - } -#endif - - Frame rootFrame = Window.Current.Content as Frame; - - // Do not repeat app initialization when the Window already has content, - // just ensure that the window is active - if (rootFrame == null) - { - // Create a Frame to act as the navigation context and navigate to the first page - rootFrame = new Frame(); - - rootFrame.NavigationFailed += OnNavigationFailed; - - if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) - { - //TODO: Load state from previously suspended application - } - - // Place the frame in the current Window - Window.Current.Content = rootFrame; - } - - if (rootFrame.Content == null) - { - // When the navigation stack isn't restored navigate to the first page, - // configuring the new page by passing required information as a navigation - // parameter - rootFrame.Navigate(typeof(MainPage), e.Arguments); - } - // Ensure the current window is active - Window.Current.Activate(); - - NanoFrameworkSerialDebugClient = PortBase.CreateInstanceForSerial("", this) as PortBase; - NanoFrameworkSerialDebugClient.DeviceEnumerationCompleted += UsbDebugClient_DeviceEnumerationCompleted; - } - - private void UsbDebugClient_DeviceEnumerationCompleted(object sender, EventArgs e) - { - Debug.WriteLine("Serial device enumeration complete, Found {0} devices", NanoFrameworkSerialDebugClient.NanoFrameworkDevices.Count); - } - - /// - /// Invoked when Navigation to a certain page fails - /// - /// The Frame which failed navigation - /// Details about the navigation failure - void OnNavigationFailed(object sender, NavigationFailedEventArgs e) - { - throw new Exception("Failed to load Page " + e.SourcePageType.FullName); - } - - /// - /// Invoked when application execution is being suspended. Application state is saved - /// without knowing whether the application will be terminated or resumed with the contents - /// of memory still intact. - /// - /// The source of the suspend request. - /// Details about the suspend request. - private void OnSuspending(object sender, SuspendingEventArgs e) - { - var deferral = e.SuspendingOperation.GetDeferral(); - //TODO: Save application state and stop any background activity - deferral.Complete(); - } - } -} diff --git a/Serial Test App UWP/Assets/LockScreenLogo.scale-200.png b/Serial Test App UWP/Assets/LockScreenLogo.scale-200.png deleted file mode 100644 index 735f57ad..00000000 Binary files a/Serial Test App UWP/Assets/LockScreenLogo.scale-200.png and /dev/null differ diff --git a/Serial Test App UWP/Assets/SplashScreen.scale-200.png b/Serial Test App UWP/Assets/SplashScreen.scale-200.png deleted file mode 100644 index 023e7f1f..00000000 Binary files a/Serial Test App UWP/Assets/SplashScreen.scale-200.png and /dev/null differ diff --git a/Serial Test App UWP/Assets/Square150x150Logo.scale-200.png b/Serial Test App UWP/Assets/Square150x150Logo.scale-200.png deleted file mode 100644 index af49fec1..00000000 Binary files a/Serial Test App UWP/Assets/Square150x150Logo.scale-200.png and /dev/null differ diff --git a/Serial Test App UWP/Assets/Square44x44Logo.scale-200.png b/Serial Test App UWP/Assets/Square44x44Logo.scale-200.png deleted file mode 100644 index ce342a2e..00000000 Binary files a/Serial Test App UWP/Assets/Square44x44Logo.scale-200.png and /dev/null differ diff --git a/Serial Test App UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/Serial Test App UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png deleted file mode 100644 index f6c02ce9..00000000 Binary files a/Serial Test App UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png and /dev/null differ diff --git a/Serial Test App UWP/Assets/StoreLogo.png b/Serial Test App UWP/Assets/StoreLogo.png deleted file mode 100644 index 7385b56c..00000000 Binary files a/Serial Test App UWP/Assets/StoreLogo.png and /dev/null differ diff --git a/Serial Test App UWP/Assets/Wide310x150Logo.scale-200.png b/Serial Test App UWP/Assets/Wide310x150Logo.scale-200.png deleted file mode 100644 index 288995b3..00000000 Binary files a/Serial Test App UWP/Assets/Wide310x150Logo.scale-200.png and /dev/null differ diff --git a/Serial Test App UWP/MainPage.xaml b/Serial Test App UWP/MainPage.xaml deleted file mode 100644 index 08ca7256..00000000 --- a/Serial Test App UWP/MainPage.xaml +++ /dev/null @@ -1,24 +0,0 @@ - - - -