vscode and mono now the supported dev environment
This commit is contained in:
parent
5427d08dd7
commit
2dbe9cead9
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@ -5,11 +5,12 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch",
|
||||
"type": "xamarin",
|
||||
"request": "launch",
|
||||
"package": "com.your.app.package",
|
||||
"intent": ""
|
||||
"preLaunchTask": "build-and-start-debug-server",
|
||||
"name": "Debug",
|
||||
"type": "mono",
|
||||
"request": "attach",
|
||||
"address": "localhost",
|
||||
"port": 55555
|
||||
}
|
||||
]
|
||||
}
|
50
.vscode/tasks.json
vendored
Normal file
50
.vscode/tasks.json
vendored
Normal 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": ".",
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -450,6 +450,9 @@
|
||||
<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.png" />
|
||||
<None Include="libvlc.dylib">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Aurora\Aurora.csproj">
|
||||
|
BIN
Aurora.gtk/libvlc.dylib
Executable file
BIN
Aurora.gtk/libvlc.dylib
Executable file
Binary file not shown.
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Aurora.Frontend.Views.Main;
|
||||
using LibVLCSharp.Shared;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
@ -10,6 +11,7 @@ namespace Aurora
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
Core.Initialize();
|
||||
|
||||
MainPage = new MainView();
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ namespace Aurora.Backend.Services
|
||||
|
||||
public void Play(BaseSong song)
|
||||
{
|
||||
Core.Initialize();
|
||||
using (var libVLC = new LibVLC())
|
||||
{
|
||||
song.Load();
|
||||
|
Loading…
Reference in New Issue
Block a user