Skip to content

[Refactor] Use LibraryImport instead of DllImport. #375

[Refactor] Use LibraryImport instead of DllImport.

[Refactor] Use LibraryImport instead of DllImport. #375

Triggered via push May 1, 2024 04:36
Status Failure
Total duration 2m 29s
Artifacts

dotnet.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 11 warnings
build: Aaru.Compression/FLAC.cs#L51
Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'. The generated source will not handle marshalling of parameter 'apodization'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1051)
build: Aaru.Compression/FLAC.cs#L55
Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'. The generated source will not handle marshalling of parameter 'applicationID'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1051)
build: Aaru.CommonTypes/Interop/DetectOS.cs#L103
The type 'Aaru.CommonTypes.Interop.DetectOS.UtsName' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'name'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1051)
build: Aaru.Compression/FLAC.cs#L51
Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'. The generated source will not handle marshalling of parameter 'apodization'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1051)
build: Aaru.Compression/FLAC.cs#L55
Marshalling string or char without explicit marshalling information is not supported. Specify 'LibraryImportAttribute.StringMarshalling', 'LibraryImportAttribute.StringMarshallingCustomType', 'MarshalUsingAttribute' or 'MarshalAsAttribute'. The generated source will not handle marshalling of parameter 'applicationID'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1051)
build: Aaru.CommonTypes/Interop/DetectOS.cs#L103
The type 'Aaru.CommonTypes.Interop.DetectOS.UtsName' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'name'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1051)
build
Process completed with exit code 1.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-dotnet@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build: Aaru.Helpers/IO/ForcedSeekStream.cs#L58
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The generic parameter 'T' of 'Aaru.Helpers.IO.ForcedSeekStream<T>' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build: Aaru.Helpers/IO/ForcedSeekStream.cs#L70
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The generic parameter 'T' of 'Aaru.Helpers.IO.ForcedSeekStream<T>' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build: Aaru.Compression/cuetools.net/CUETools.Codecs/LPC.cs#L5
The type name 'lpc' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: Aaru.Compression/cuetools.net/CUETools.Codecs.Flake/AudioEncoder.cs#L2680
'MD5CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.' (https://aka.ms/dotnet-warnings/SYSLIB0021)
build: Aaru.Compression/cuetools.net/CUETools.Codecs.Flake/AudioEncoder.cs#L48
Field 'AudioEncoder.sr_code1' is never assigned to, and will always have its default value 0
build: Aaru.Compression/cuetools.net/CUETools.Codecs/AudioDecoderSettings.cs#L29
Using member 'System.ComponentModel.TypeDescriptor.GetProperties(Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.
build: Aaru.Compression/cuetools.net/CUETools.Codecs.Flake/AudioEncoder.cs#L477
Potential stack overflow. Move the stackalloc out of the loop. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2014)
build: Aaru.Compression/cuetools.net/CUETools.Codecs/AudioDecoderSettings.cs#L45
Using member 'System.ComponentModel.TypeDescriptor.GetProperties(Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.
build: Aaru.Compression/cuetools.net/CUETools.Codecs/AudioDecoderSettings.cs#L51
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Activator.CreateInstance(Type, params Object[])'. The return value of method 'CUETools.Codecs.IAudioDecoderSettings.DecoderType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
build: Aaru.Compression/cuetools.net/CUETools.Codecs.Flake/AudioEncoder.cs#L867
Potential stack overflow. Move the stackalloc out of the loop. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2014)