nuget

Nuget restore in TFS restores packages to different directory

烈酒焚心 提交于 2021-02-09 09:20:50
问题 I placed packages.config and nuget.config to my root folder. When I run nuget restore on my dev machine, packages is restored into root/packages folder as described in nuget.config. However, when I add Nuget Installer build step to my TFS2015 build definition, the packages are restored to ../Nuget/Packages, which is outside my root folder. I have a problem referencing the restored nuget packages in next build steps then. Why nuget restore behaves differently on build server? How to fix it?

Nuget restore in TFS restores packages to different directory

这一生的挚爱 提交于 2021-02-09 09:18:57
问题 I placed packages.config and nuget.config to my root folder. When I run nuget restore on my dev machine, packages is restored into root/packages folder as described in nuget.config. However, when I add Nuget Installer build step to my TFS2015 build definition, the packages are restored to ../Nuget/Packages, which is outside my root folder. I have a problem referencing the restored nuget packages in next build steps then. Why nuget restore behaves differently on build server? How to fix it?

Powershell Find-Package command doesn't work with nuget v3 package source

坚强是说给别人听的谎言 提交于 2021-02-08 19:23:27
问题 As the title says I cannot use the Find-Package command with the nuget v3 url: https://api.nuget.org/v3/index.json If I run the command: Find-Package nuget.versioning -Source https://api.nuget.org/v3/index.json I get an error that no match was found. Changing the command to: Find-Package nuget.versioning -Source https://www.nuget.org/api/v2 Works fine. Do I need to upgrade some software to get this to work? I'm running Powershell version 5 so I'm not sure what steps I need to take to fix this

在.NetCore(C#)中使用ODP.NET Core+Dapper操作Oracle数据库

試著忘記壹切 提交于 2021-02-08 11:55:03
前言 Oracle 关系数据库系统是目前世界上流行的关系数据库管理系统,系统可移植性好、使用方便、功能强,适用于各类大、中、小、微机环境。它是一种高效率、可靠性好的 适应高吞吐量的数据库解决方案。 现在的系统主要的技术栈是Java / .Net Core,Java方面不必说对Oracle支持肯定没问题,.Net Core很少会使用到 Oracle数据库。 目前我现开发的项目是.Net Core与 Oracle 数据库, 所以我想到用.Net Core来写个Oracle数据库访问层,可以方便的使用Oracle的数据和存储过程。 ODP.NET Core是一个ADO.NET驱动程序,提供从Microsoft .NET Core客户端到Oracle数据库的快速数据访问。它可以在Windows和Linux上运行。ODP.NET由一个100%托管代码动态链接库Oracle.ManagedDataAccess.dll组成,可通过NuGet安装获得。 这个 Oracle.ManagedDataAccess.Core 是真的方便,不用安装Oracle客户端,兼容性、便捷性,开箱即用。 简单使用 首先用nuget安装这个 Oracle.ManagedDataAccess.Core ,之后就可以执各类操作了,不过从代码量上看还是比较繁琐的,上代码: var connStr = $"DATA

Copy nuget package content file (of type .exe) to output directory of project using that nuget package

主宰稳场 提交于 2021-02-08 11:16:28
问题 I have some project which has some exe as "dependency" and I build that project as nuget package from .csproj file File looks like this: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> <Nullable>enable</Nullable> <LangVersion>latest</LangVersion> <Version>1.1.2</Version> <PackageId>MyLib</PackageId> <Authors>me</Authors> <Company>me</Company> </PropertyGroup> <ItemGroup> <None Remove="CliInterface\32BitInterface.exe" /> </ItemGroup>

Copy nuget package content file (of type .exe) to output directory of project using that nuget package

允我心安 提交于 2021-02-08 11:14:11
问题 I have some project which has some exe as "dependency" and I build that project as nuget package from .csproj file File looks like this: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> <Nullable>enable</Nullable> <LangVersion>latest</LangVersion> <Version>1.1.2</Version> <PackageId>MyLib</PackageId> <Authors>me</Authors> <Company>me</Company> </PropertyGroup> <ItemGroup> <None Remove="CliInterface\32BitInterface.exe" /> </ItemGroup>

jQuery spinner arrows not visible

别等时光非礼了梦想. 提交于 2021-02-08 11:10:37
问题 I have seen a previous post on this Jquery Spinner arrows not loading (visibility) but I still can't seem to load or see the spinner button images, although the spinner works fine. The css file path is: wwwroot/lib/jquery.ui.combined/Content/themes/base/jquery-ui.css and the images are in: wwwroot/lib/jquery.ui.combined/Content/themes/base/images. I have had no problem in the past using jquery ui and spinners. I again used NuGet (with VS cummunity edition 2015) to get the jquery ui package,

jQuery spinner arrows not visible

大憨熊 提交于 2021-02-08 11:07:29
问题 I have seen a previous post on this Jquery Spinner arrows not loading (visibility) but I still can't seem to load or see the spinner button images, although the spinner works fine. The css file path is: wwwroot/lib/jquery.ui.combined/Content/themes/base/jquery-ui.css and the images are in: wwwroot/lib/jquery.ui.combined/Content/themes/base/images. I have had no problem in the past using jquery ui and spinners. I again used NuGet (with VS cummunity edition 2015) to get the jquery ui package,

jQuery spinner arrows not visible

雨燕双飞 提交于 2021-02-08 11:05:38
问题 I have seen a previous post on this Jquery Spinner arrows not loading (visibility) but I still can't seem to load or see the spinner button images, although the spinner works fine. The css file path is: wwwroot/lib/jquery.ui.combined/Content/themes/base/jquery-ui.css and the images are in: wwwroot/lib/jquery.ui.combined/Content/themes/base/images. I have had no problem in the past using jquery ui and spinners. I again used NuGet (with VS cummunity edition 2015) to get the jquery ui package,

How do I distribute a font in a nuget package using the new csproj approach to create nuget packages?

我是研究僧i 提交于 2021-02-08 09:36:05
问题 I have a nuget package for Xamarin Forms (ios and android) with which I want to distribute a custom font. I can't find from the nuget documentation how I can include the font in the nuget package so that it gets added to the iOS or Android project that consumes the package. Is this even possible? If so, how? 回答1: How do I distribute a font in a nuget package using the new csproj approach to create nuget packages? To include the font in the nuget package and use it in the new csproj iOS or