nuget

NuGet package from PCL

廉价感情. 提交于 2021-02-20 03:42:26
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

NuGet package from PCL

流过昼夜 提交于 2021-02-20 03:40:38
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

NuGet package from PCL

拜拜、爱过 提交于 2021-02-20 03:40:26
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

NuGet package from PCL

别来无恙 提交于 2021-02-20 03:39:12
问题 I have a PCL library I want to distribute as NuGet package. Screenshot of the PCL application library properties page: csproj file: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Steps to reproduce my problem: Clone both repos from: NuGet package Console application + PCL library Build the NugetPackage project +

asp.net core3.0 mvc 用 autofac

邮差的信 提交于 2021-02-19 02:20:19
好久没有写文章了,最近在用.net core3.0,一些开发中问题顺便记录; 1.首先nuget引入 Autofac Autofac.Extensions.DependencyInjection 2.修改Program.cs 添加.UseServiceProviderFactory(new AutofacServiceProviderFactory()) public class Program { public static void Main( string [] args) { CreateHostBuilder(args).Build().Run(); } public static IHostBuilder CreateHostBuilder( string [] args) => Host.CreateDefaultBuilder(args) .UseServiceProviderFactory( new AutofacServiceProviderFactory()) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup <Startup> (); }); } 3.修改Startup.cs 添加 services.AddControllersWithViews()

How to add private nuget source in dotnet dockerfile?

大城市里の小女人 提交于 2021-02-19 01:59:50
问题 I try to add (override) a private nuget source to my build script in order to add the user/pw - and keep it out of my source control. What I tried so far: nuget is not recognized as command inside the image dotnet nuget does not have the command to add additional sources installing nuget does not effect dotnet restore FROM mcr.microsoft.com/dotnet/core/sdk:2.2 RUN apt-get update && apt-get install -y nuget RUN nuget source Add -Name "Private Feed" -Source ".." -UserName "UserVAR" -Password

Connecting to an Azure Devops private NuGet in vs code

自古美人都是妖i 提交于 2021-02-18 11:58:51
问题 We have a private NuGet feed. It has been working well with Visual Studio . Our developers connect through their Azure account with the private feed. I'd like to keep this same functionality when moving to vs code. Using the documentation found here I added a nuget.config to my solution folder. The config looks exactly like the documentation except it has our private feed there. <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <!-- remove any machine-wide sources with

Add-Migration command only prompt “ScriptHalted”

巧了我就是萌 提交于 2021-02-16 16:31:27
问题 I'm trying to learn how to make App.Net Core application using Razor pages, using this tutorial : https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/model?view=aspnetcore-3.0&tabs=visual-studio After I made the Movie model and scaffold it successfully, I try to make the initial migration of the database. However, every time I'm using the command Add-Migration , it just prompts ScriptHalted , even when using the verbose option, same with Update-Database . I tried other commands

Jenkins 搭建 .NET Core 持续集成环境

百般思念 提交于 2021-02-16 10:50:57
关于c#的.Net FrameWork 的集成环境以及MsBuild的配置可以看 jenkins搭建.NET FrameWork持续集成环境 这篇文章 关于.NET Core 这个项目我搭了很久 其实很简单 因为不懂.NET FrameWork 和.NetCore 所以走了很大的弯 我们用NuGet还原.NET Core项目会报以下错误: error NETSDK1064: 未找到版本为 1.8.2 的包 BouncyCastle.NetCore。它可能已在 NuGet 还原后删除。否则,NuGet 还原可能只是部分完成,这种情况可能是最大路径长度限制所导致。 关于这个问题我找了好久 也是google到一条信息才明白 这里就直接放解决办法,其实网上就有方法,有的简短,有的笼统 我们这里用到的是dotnet命令来还原、构建、以及部署 从 .NET Core 2.0 开始,无需运行 dotnet restore ,因为它由需有还原的所有命令隐式运行,如 dotnet build 和 dotnet run 。 dotnet build 生成项目及依赖项 dotnet publish 输出编译指定依赖,发送到指定目录 详细其他命令可以查看 官方文档 比我的详细的多 所以我们只用到 dotnet build dotnet publish 就可以成功编译 原文出处:https://www

SmartSql V3 重磅发布

随声附和 提交于 2021-02-15 03:59:08
超轻量级的ORM框架! 107kb 更新内容 移除Dapper依赖 支持存储过程 增强扩展性 重构代码 优化缓存策略 动态实现仓储接口 支持 参数&结果映射 & TypeHandler 高性能 性能测评 BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134 Intel Core i7-6700K CPU 4.00GHz (Skylake), 1 CPU, 8 logical and 4 physical cores .NET Core SDK=2.1.201 [Host] : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT DefaultJob : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT ORM Type Method Return Mean Error StdDev Rank Gen 0 Gen 1 Gen 2 Allocated Native NativeBenchmarks Query_GetValue_DbNull IEnumerable`1 78.39 ms 0.8935 ms 0.7921 ms 1 3000.0000