Skip to content

Commit

Permalink
fix(.NET::Build): Fix issue with warnings about API not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Sep 29, 2021
1 parent 7470f7b commit 987043e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 75 deletions.
9 changes: 5 additions & 4 deletions SoundSwitch.Audio.Manager/AudioSwitcher.cs
Expand Up @@ -13,11 +13,11 @@ namespace SoundSwitch.Audio.Manager
{
public class AudioSwitcher
{
private static AudioSwitcher _instance;
private PolicyClient _policyClient;
private EnumeratorClient _enumerator;
private static AudioSwitcher? _instance;
private PolicyClient? _policyClient;
private EnumeratorClient? _enumerator;

private ExtendedPolicyClient _extendedPolicyClient;
private ExtendedPolicyClient? _extendedPolicyClient;

private EnumeratorClient EnumeratorClient
{
Expand Down Expand Up @@ -118,6 +118,7 @@ public void SwitchProcessTo(string deviceId, ERole role, EDataFlow flow, uint pr
{
Trace.TraceError($"Can't get process info: {e}");
}

Trace.TraceInformation($"Attempt to switch [{processId}:{processName}] to {deviceId}");
var roles = new[]
{
Expand Down
34 changes: 0 additions & 34 deletions SoundSwitch.Audio.Manager/Properties/AssemblyInfo.cs

This file was deleted.

5 changes: 3 additions & 2 deletions SoundSwitch.Audio.Manager/SoundSwitch.Audio.Manager.csproj
Expand Up @@ -3,10 +3,11 @@
<TargetFramework>net6.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<LangVersion>latest</LangVersion>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Deterministic>false</Deterministic>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Configurations>Debug;Release;Nightly</Configurations>
<Platforms>AnyCPU</Platforms>
<AssemblyTitle>SoundSwitch.Audio.Manager</AssemblyTitle>
<Version>3.2.1</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
Expand Down
34 changes: 0 additions & 34 deletions SoundSwitch.Common/Properties/AssemblyInfo.cs

This file was deleted.

4 changes: 3 additions & 1 deletion SoundSwitch.Common/SoundSwitch.Common.csproj
Expand Up @@ -3,13 +3,15 @@
<TargetFramework>netstandard2.1</TargetFramework>
<OutputType>Library</OutputType>
<Deterministic>false</Deterministic>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
<Deterministic>false</Deterministic>
<LangVersion>latest</LangVersion>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<Configurations>Debug;Release;Nightly</Configurations>
<Platforms>AnyCPU</Platforms>
<AssemblyTitle>SoundSwitch.Common</AssemblyTitle>
<Version>2.2.0</Version>
</PropertyGroup>
<ItemGroup>
<Content Include="Resources\defaultMicrophone.ico" />
Expand Down
1 change: 1 addition & 0 deletions SoundSwitch/Properties/AssemblyInfo.cs
Expand Up @@ -11,6 +11,7 @@
[assembly: AssemblyCopyright("Antoine Aflalo")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: System.Runtime.Versioning.SupportedOSPlatform("windows7.0")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand Down

0 comments on commit 987043e

Please sign in to comment.