我正在Windows上构建一个使用Clipr nuget包的演示项目。我得到一个运行时异常,我不知道如何解决。我从哪里开始调试呢? POC的代码就像这样简单:
来源
using System;
using clipr;
namespace CliprTest
{
public class Program
{
public static void Main(string[] args)
{
var parsed = CliParser.StrictParse<Options>(args);
Console.WriteLine("Ran without params first");
}
}
[ApplicationInfo(Description = "Test")]
public class Options
{
}
}
输出继电器
soloy@DESKTOP-MRND0KT MINGW64 /c/GitHub/CliprTest/src/CliprTest
$ dotnet build && dotnet run bin/Debug/netcoreapp1.0/CliprTest.dll
Project CliprTest (.NETCoreApp,Version=v1.0) will be compiled because inputs were modified
Compiling CliprTest for .NETCoreApp,Version=v1.0
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:02.2712506
Project CliprTest (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Unhandled Exception: System.Resources.MissingManifestResourceException:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "clipr.Properties.Resources.resources" was correctly embedded or linked into assembly "clipr.NetCore" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at clipr.Usage.AutomaticHelpGenerator`1.get_UsageTitle()
at clipr.Usage.AutomaticHelpGenerator`1.GetUsage(IParserConfig config)
at clipr.CliParser`1.StrictParse(String[] args)
at clipr.CliParser.StrictParse[TS](String[] args)
at CliprTest.Program.Main(String[] args)
我确实开了一个issue on Clipr's github repo,但不确定我多久会得到一个答案以及问题是否在我身边
答案 0 :(得分:1)
支持.NET核心的ClipR nuget包未正式发布(基本上隐藏在nuget feed列表中)。 随着v1.6.0的发布,这个问题得到了解决。