vi: .NET Core SDKと使う
Debian/ARMで.NET Core に書きましたが、 .NET Coreを少しいじってます。
(自己啓発で)
vim + ALEでC#を書くときの設定を書いておきます
let s:path = "/home/.../install/dotnet/shared/Microsoft.NETCore.App/3.1.3" let s:root = "bin/Debug/netcoreapp3.1" let g:ale_linters = {'cs': ['csc']} let g:ale_cs_csc_assemblies = [ \ "netstandard.dll", \ "System.dll", \ "System.Runtime.dll", \ "System.Runtime.Extensions.dll", \ "System.Core.dll", \ "System.Data.Common.dll", \ "System.Console.dll", \ "System.Private.CoreLib.dll", \ "System.Reflection.dll", \ "System.Collections.dll", \ "System.IO.dll", \ "System.IO.FileSystem.dll", \ "System.Linq.dll", \ "System.Linq.Expressions.dll", \ "System.ComponentModel.dll", \ "System.ComponentModel.TypeConverter.dll", \ "OxyPlot.dll", \ ] let g:ale_cs_csc_assembly_path = [ \ s:path, \ s:root, \ ]
参照するライブラリを書いていくとwarningがなくなって いい感じになりますが、どんどん増えていきます。
うちのはこんな感じになりました。
.vimrcいじるのは嫌なので、 .vimrc.local に書くようにしています
let s:path = "/home/.../install/dotnet/shared/Microsoft.NETCore.App/3.1.3" let s:root = "bin/Debug/netcoreapp3.1" let g:ale_linters = {'cs': ['csc']} let g:ale_cs_csc_assemblies = [ \ "netstandard.dll", \ "System.dll", \ "System.Runtime.dll", \ "System.Runtime.Extensions.dll", \ "System.Core.dll", \ "System.Data.Common.dll", \ "System.Console.dll", \ "System.Private.CoreLib.dll", \ "System.Reflection.dll", \ "System.Collections.dll", \ "System.IO.dll", \ "System.IO.FileSystem.dll", \ "System.Linq.dll", \ "System.Linq.Expressions.dll", \ "System.ComponentModel.dll", \ "System.ComponentModel.TypeConverter.dll", \ "Microsoft.EntityFrameworkCore.dll", \ "Microsoft.EntityFrameworkCore.Design.dll", \ "Microsoft.EntityFrameworkCore.Abstractions.dll", \ "Microsoft.EntityFrameworkCore.Design.dll", \ "Microsoft.EntityFrameworkCore.Relational.dll", \ "Microsoft.EntityFrameworkCore.Sqlite.dll", \ "Microsoft.AspNetCore.Html.Abstractions.dll", \ "Microsoft.AspNetCore.Razor.Language.dll", \ "Microsoft.AspNetCore.Razor.Runtime.dll", \ "Microsoft.AspNetCore.Razor.dll", \ "Microsoft.Bcl.AsyncInterfaces.dll", \ "Microsoft.Bcl.HashCode.dll", \ "Microsoft.CodeAnalysis.CSharp.dll", \ "Microsoft.CodeAnalysis.dll", \ "Microsoft.Data.Sqlite.dll", \ "Microsoft.DotNet.PlatformAbstractions.dll", \ "Microsoft.EntityFrameworkCore.Abstractions.dll", \ "Microsoft.EntityFrameworkCore.Design.dll", \ "Microsoft.EntityFrameworkCore.Relational.dll", \ "Microsoft.EntityFrameworkCore.Sqlite.dll", \ "Microsoft.EntityFrameworkCore.dll", \ "Microsoft.Extensions.Caching.Abstractions.dll", \ "Microsoft.Extensions.Caching.Memory.dll", \ "Microsoft.Extensions.Configuration.Abstractions.dll", \ "Microsoft.Extensions.Configuration.Binder.dll", \ "Microsoft.Extensions.Configuration.dll", \ "Microsoft.Extensions.DependencyInjection.Abstractions.dll", \ "Microsoft.Extensions.DependencyInjection.dll", \ "Microsoft.Extensions.DependencyModel.dll", \ "Microsoft.Extensions.Logging.Abstractions.dll", \ "Microsoft.Extensions.Logging.dll", \ "Microsoft.Extensions.Options.dll", \ "Microsoft.Extensions.Primitives.dll", \ "OxyPlot.dll", \ "RazorEngine.NetCore.dll", \ "SQLitePCLRaw.batteries_v2.dll", \ "SQLitePCLRaw.core.dll", \ "SQLitePCLRaw.nativelibrary.dll", \ "SQLitePCLRaw.provider.dynamic_cdecl.dll", \ "System.CommandLine.dll", \ "System.Security.Permissions.dll", \ "System.Text.Json.dll", \ ] let g:ale_cs_csc_assembly_path = [ \ s:path, \ s:root, \ ]
コメント
Comments powered by Disqus