vscode and mono now the supported dev environment

This commit is contained in:
watsonb8 2019-05-22 19:47:27 -04:00
parent 5427d08dd7
commit 2dbe9cead9
7 changed files with 63 additions and 6 deletions

11
.vscode/launch.json vendored
View File

@ -5,11 +5,12 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Launch", "preLaunchTask": "build-and-start-debug-server",
"type": "xamarin", "name": "Debug",
"request": "launch", "type": "mono",
"package": "com.your.app.package", "request": "attach",
"intent": "" "address": "localhost",
"port": 55555
} }
] ]
} }

50
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,50 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "msbuild",
"args": [
// Ask msbuild to generate full paths for file names.
"/property:GenerateFullPaths=true",
"/t:build"
],
"group": "build",
"presentation": {
// Reveal the output only if unrecognized errors occur.
"reveal": "silent"
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile"
},
{
"label": "build-and-start-debug-server",
"type": "shell",
"isBackground": true,
"command": "./start.sh",
// This task is run before some debug tasks.
// Problem is, it's a watch script, and since it never exits, VSCode
// complains. All this is needed so VSCode just lets it run.
"problemMatcher": [
{
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": ".",
}
}
]
}
]
}

View File

@ -450,6 +450,9 @@
<None Include="Themes\assets-dark\treeview-rtl-button-active.png" /> <None Include="Themes\assets-dark\treeview-rtl-button-active.png" />
<None Include="Themes\assets-dark\treeview-rtl-button-hover.png" /> <None Include="Themes\assets-dark\treeview-rtl-button-hover.png" />
<None Include="Themes\assets-dark\treeview-rtl-button.png" /> <None Include="Themes\assets-dark\treeview-rtl-button.png" />
<None Include="libvlc.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Aurora\Aurora.csproj"> <ProjectReference Include="..\Aurora\Aurora.csproj">

BIN
Aurora.gtk/libvlc.dylib Executable file

Binary file not shown.

View File

@ -1,5 +1,6 @@
using System; using System;
using Aurora.Frontend.Views.Main; using Aurora.Frontend.Views.Main;
using LibVLCSharp.Shared;
using Xamarin.Forms; using Xamarin.Forms;
using Xamarin.Forms.Xaml; using Xamarin.Forms.Xaml;
@ -10,6 +11,7 @@ namespace Aurora
public App() public App()
{ {
InitializeComponent(); InitializeComponent();
Core.Initialize();
MainPage = new MainView(); MainPage = new MainView();
} }

View File

@ -12,7 +12,6 @@ namespace Aurora.Backend.Services
public void Play(BaseSong song) public void Play(BaseSong song)
{ {
Core.Initialize();
using (var libVLC = new LibVLC()) using (var libVLC = new LibVLC())
{ {
song.Load(); song.Load();

2
start.sh Executable file
View File

@ -0,0 +1,2 @@
msbuild
mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555 Aurora.gtk/bin/Debug/Aurora.gtk.exe