2017-01-03 76 views
-1

我在使用Clipr nuget包的Windows上构建了一个演示项目。我得到一个运行时异常,我不知道如何解决。我在哪里开始调试? POC的代码是如此简单:.NET Core控制台应用程序在使用Clipr包时抛出MissingManifestResourceException

来源

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 
    { 
    } 
} 

输出继电器

[email protected] 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

既然你在GitHub上得到了答案,你会考虑在这里发布它作为答案,然后接受它吗? – svick

+0

@svick刚刚做到了 –

回答

1

ClipR nuget包支持.NET核心没有正式发布(基本上,隐藏在nuget feed列表中)。 随着v1.6.0的发布,此问题已解决。

相关问题