nuget-package

The content folder in my nuget package isn't adding the files to the root when installing the package

血红的双手。 提交于 2019-12-22 08:36:15
问题 I am running .net core 1.1 and nuget 3.5. Here is my nuspec: <?xml version="1.0"?> <package > <metadata> <id>ClassLibrary1</id> <version>1.0.0.4</version> <title>Class Library Test Content</title> <authors>name</authors> <owners>name</owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>package to test config file transfer</description> <copyright>Copyright 2017</copyright> <tags>TagUno TagDos</tags> <contentFiles> <files include="appsettings.json" buildAction=

Nuget pack does not honor number of digits on assembly version

我与影子孤独终老i 提交于 2019-12-22 05:14:37
问题 I need nuget pack to generate a package version with only 3 digits (we want to do semantic versioning on it) but when I call it on a csproj which has an AssemblyVersion attribute set to "1.0.0", the resulting nupkg file ends with version "1.0.0.0" in it's metadata (and file name). Why doesn't the command line tool honor the amount of digits specified on the AssemblyVersion attribute? I started this with a call to nuget spec against the csproj file, which generates a stub nuspec file like this

How do I change target filename in NuGet Package?

帅比萌擦擦* 提交于 2019-12-22 04:51:09
问题 JavaScript naming convention requires version number in the file name such as jQuery.1.34.min.js , and I have text template which will output my-library.js in output folder. I want to create NuGet Package with my-library.js in such way that on installation it should be deployed as my-library.1.34.js If I build nuget package as part of msbuild process, there is no way I can rename my output js file. I already have a long workaround, in which I have a console app which copies files to folder

NuGet Pack: ignore default includes

点点圈 提交于 2019-12-22 04:49:07
问题 This is the opposite problem from what I usually read about, which is people trying to get files included in the NuGet package. I'm trying to stop file from being included automatically. I'm creating a library of pre-compiled MVC view templates (using RazorGenerator.Mvc), .less files, and JavaScript to support these as needed. The idea is that these are basic things that go into all of our sites. By default, nuget pack includes any files marked Build Action: Content in your project, which any

the remote name could not be resolved 'www.nuget.org'

泄露秘密 提交于 2019-12-22 04:41:08
问题 Just recently I am having trouble accessing the nuget.org website and using the Package manager inside of Visual Studio 2012. In fact just yesterday evening when I attempted to install some packages I encountered the above error. In addition I can not access www.nuget.org from any of my web browsers or my iPad on the same network. As far as I am aware no changes have taken place on my network. I attempted to navigate to www.nuget.org through a proxy and it did load. So I can only assume there

How to reference related projects in the same solution when Nuget packages are the required output

无人久伴 提交于 2019-12-22 04:33:24
问题 I was wondering what's the best approach to reference a project in the same solution. Do you create the reference using the 'Add reference' feature or do you 'manage the nuget package' and download a certain published version. Each project in its turn will result in a Nuget package which can be referenced by other solutions. So for other solutions it's clear. They create the reference using Nuget, but how about intrasolution project references? 回答1: The best approach is to create a NuGet

NuGet Package which installs a VSIX

一笑奈何 提交于 2019-12-22 01:15:01
问题 We developed a "Custom Tool" type VSIX Visual Studio Extension in our company. This extension generates C# code from certain xml files. Right now I have a projects which produces the VSIX as the result of the build. Goal: I would like to also wrap this VSIX into a NuGet package, what my fellow developers can install onto their solution. So I'm searching for some kind of Project Template or something for that. Or it is even good if there's something which triggers the process in the existing

How to use Bootstrap in an ASP.Net Core 2.0 Application?

吃可爱长大的小学妹 提交于 2019-12-21 17:25:26
问题 I know that Bower is not recommended to be used with ASP.Net Core 2.0. Instead, I used NuGet to download Bootstrap dependency into my project. Therefore, I can't reference the files in my Layout view like I used to do with Bower using: <link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet" /> I am trying to use NuGet to get a cleaner code. However, I can't seem to be able to reference this package in my project. Anyone has an idea how to use/reference bootstrap installed through

How do I access TypeScript definitions in ASP.NET 5 with the NuGet package manager?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 07:16:32
问题 I am having trouble understanding how I can access the TypeScript definition files which I installed with the NuGet package manager. I installed the TypeScript definition files for Angular with the following command: Install-Package angularjs.TypeScript.DefinitelyTyped And it shows up in the project.json file: "dependencies": { "Microsoft.AspNet.Server.IIS": "1.0.0-beta3", "Microsoft.AspNet.Mvc": "6.0.0-beta3", "Microsoft.AspNet.StaticFiles": "1.0.0-beta3", "Microsoft.AspNet.Server

System.Net.Http NuGet package 4.3.0 reference generates System.IO.FileLoadException on System.Diagnostics.DiagnosticSource ver 4.0.0.0 reference

只谈情不闲聊 提交于 2019-12-21 07:04:53
问题 Description of the problem: A shared library "shared.dll" project references System.Net.Http NuGet package 4.3.0. The application that references "shared.dll" fails with System.IO.FileLoadException Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at System.Net