coreclr

    9热度

    1回答

    这个代码在.NET罚款(4.6和以前) var types = typeof(SomeType).GetTypeInfo().Assembly.GetTypes() from type in types where !type.IsAbstract 但在.NET核心(DNX核5.0),它是产生编译错误: Error CS1061 'Type' does not contain a defi

    0热度

    1回答

    我按照“http://dotnet.github.io/getting-started/”上的说明在ubuntu.14.04-x64上安装了Dotnet。然后我写了线程一个简单的代码, using System; using System.Threading; namespace mythread { public class threader { public static

    5热度

    2回答

    TL “无法解析coreclr” 路径; DR 我在http://dotnet.github.io/getting-started/文档的Ubuntu 14.04以下。 当我运行dotnet run它输出Could not resolve coreclr path它立即退出非零返回代码,我不能在文档中找到我应该做的事情。 更多细节 事实上,意想不到的事情在这之前发生:即使我加入deb [arch=

    2热度

    1回答

    我有一个通过Nuget分发的库。在那个包中,我有一个.targets文件,它被包含到消费项目的csproj中(由nuget),以便MSBuild可以在构建期间执行任务(这实际上允许我将构建步骤注入到消耗项目中。)该任务基本上调用了包含在nuget包的“工具”文件夹中的可执行文件。 我想知道如何用.Net核心和新的dotnet cli实现这个功能? 参看“导入的MSBuild目标和道具文件插入项目”

    1热度

    2回答

    我把最新的代码https://github.com/aspnet/MusicStore/tree/dev ,而无需对代码进行任何更改。我构建的应用程序为 dnx版本:1.0.0-rc2-16308 coreclr x64 应用程序生成成功,但是当我尝试运行应用程序时,我得到下面的错误。 System.NullReferenceException: Object reference not set

    0热度

    1回答

    我在c#coreclr上使用Dapper,Sqlite。 public async Task<UserPoco> GetFromEmail(string email) { email = email.ToLower(); using (var connection = new SqliteConnection(_configSettings.Connection

    0热度

    1回答

    我也跟着上https://dotnet.github.io/getting-started/ 我在Windows 8.1中安装了.NET的核心指令,并在一个空文件夹执行: dotnet new dotnet restore dotnet run 将包装下载,应用程序编译,但执行完成与异常。 未处理的异常:System.IO.FileNotFoundException:未能加载 文件或程序集

    2热度

    1回答

    我想使用EdgeJS应用程序中的Roslyn库,但不知道如何正确引用它。这是有问题的代码: var edge = require('edge'); var toroslyn = edge.func(function(){/* using System; using System.Threading.Tasks; using Microsoft.CodeAnalysi

    0热度

    1回答

    为什么在project.json中有一个“依赖”元素在任何目标“框架”之外?什么时候依赖去那里与\框架下的\ net451 \ frameworkAssemblies或\框架\ dnxcore50 \依赖 "frameworks": { "net451": { "frameworkAssemblies": { "System": "4.0.0.0",

    1热度

    1回答

    我正在使用碰巧使用Microsoft.Extensions.Logging.ILogger的一些接口。 我想知道如何使用Ilogger指出的是,我只在 这里得到IloggerFactory是我做的一个实例化界面,但我不知道这是否是正确与否 services.AddSingleton<IServiceCache, Cache>(Iapp => new Cache(_loggerFactory.Cre