mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-02 17:03:41 -04:00
Migrate to .NET 6
This commit is contained in:
@ -19,7 +19,7 @@ namespace NetCoreAudio.Players
|
||||
[DllImport("winmm.dll")]
|
||||
public static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume);
|
||||
|
||||
private Timer _playbackTimer;
|
||||
private System.Timers.Timer _playbackTimer;
|
||||
private Stopwatch _playStopwatch;
|
||||
|
||||
private string _fileName;
|
||||
@ -32,7 +32,7 @@ namespace NetCoreAudio.Players
|
||||
public Task Play(string fileName)
|
||||
{
|
||||
_fileName = $"\"{fileName}\"";
|
||||
_playbackTimer = new Timer
|
||||
_playbackTimer = new System.Timers.Timer
|
||||
{
|
||||
AutoReset = false
|
||||
};
|
||||
|
@ -1,7 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -16,7 +17,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="ObservatoryFramework">
|
||||
<HintPath>..\ObservatoryFramework\bin\Release\net5.0\ObservatoryFramework.dll</HintPath>
|
||||
<HintPath>..\ObservatoryFramework\bin\Release\net6.0\ObservatoryFramework.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
|
Reference in New Issue
Block a user